├── ProjectSettings ├── ProjectVersion.txt ├── UnityAdsSettings.asset ├── ClusterInputManager.asset ├── EditorBuildSettings.asset ├── NetworkManager.asset ├── TimeManager.asset ├── AudioManager.asset ├── EditorSettings.asset ├── TagManager.asset ├── DynamicsManager.asset ├── UnityConnectSettings.asset ├── Physics2DSettings.asset ├── NavMeshAreas.asset ├── GraphicsSettings.asset ├── QualitySettings.asset ├── InputManager.asset └── ProjectSettings.asset ├── Assets ├── FFMpegUtils │ ├── main.unity.meta │ ├── YUV4.mat.meta │ ├── YUV4Parser.cs.meta │ ├── FFMpegLauncher.cs.meta │ ├── FFMpegYUV4Texture.cs.meta │ ├── RuntimeFFMPEGTexture.cs.meta │ ├── RuntimeFFMPEGTexture.cs │ ├── YUV4.mat │ ├── FFMpegLauncher.cs │ ├── FFMpegYUV4Texture.cs │ ├── YUV4Parser.cs │ └── main.unity ├── FFMpegUtils.meta └── Resources │ └── FFMpegUtils │ ├── YUV4.shader.meta │ └── YUV4.shader ├── .gitignore ├── README.md └── LICENSE /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2017.1.1f1 2 | -------------------------------------------------------------------------------- /ProjectSettings/UnityAdsSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ousttrue/FFMPEG_Texture/HEAD/ProjectSettings/UnityAdsSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!236 &1 4 | ClusterInputManager: 5 | m_ObjectHideFlags: 0 6 | m_Inputs: [] 7 | -------------------------------------------------------------------------------- /ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1045 &1 4 | EditorBuildSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Scenes: [] 8 | -------------------------------------------------------------------------------- /ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!149 &1 4 | NetworkManager: 5 | m_ObjectHideFlags: 0 6 | m_DebugLevel: 0 7 | m_Sendrate: 15 8 | m_AssetToPrefab: {} 9 | -------------------------------------------------------------------------------- /Assets/FFMpegUtils/main.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7ad10f7e57df1b04b91cf4ff484cbb79 3 | timeCreated: 1455553626 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/FFMpegUtils/YUV4.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4b9269e5f7f8c7f459715eca3fd89876 3 | timeCreated: 1455567646 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/FFMpegUtils.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 863a675257f67e845bb148c40a4ecd30 3 | folderAsset: yes 4 | timeCreated: 1455637061 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!5 &1 4 | TimeManager: 5 | m_ObjectHideFlags: 0 6 | Fixed Timestep: 0.02 7 | Maximum Allowed Timestep: 0.33333334 8 | m_TimeScale: 1 9 | Maximum Particle Timestep: 0.03 10 | -------------------------------------------------------------------------------- /Assets/Resources/FFMpegUtils/YUV4.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2a12b5d226f35dd49b9c934153210f46 3 | timeCreated: 1455567999 4 | licenseType: Free 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/FFMpegUtils/YUV4Parser.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ee12393a6d2d28e459b5ff430194a971 3 | timeCreated: 1455638480 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/FFMpegUtils/FFMpegLauncher.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9c559bbc6ca939c4e9cadd32da98654e 3 | timeCreated: 1455637097 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/FFMpegUtils/FFMpegYUV4Texture.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b79c09a849b24e544bc6747ee806f2d3 3 | timeCreated: 1455553210 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/FFMpegUtils/RuntimeFFMPEGTexture.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ca3dda458ca7b134ebf052f50eb4b70c 3 | timeCreated: 1507322897 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!11 &1 4 | AudioManager: 5 | m_ObjectHideFlags: 0 6 | m_Volume: 1 7 | Rolloff Scale: 1 8 | Doppler Factor: 1 9 | Default Speaker Mode: 2 10 | m_SampleRate: 0 11 | m_DSPBufferSize: 0 12 | m_VirtualVoiceCount: 512 13 | m_RealVoiceCount: 32 14 | m_SpatializerPlugin: 15 | m_AmbisonicDecoderPlugin: 16 | m_DisableAudio: 0 17 | m_VirtualizeEffects: 1 18 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /[Ll]ibrary/ 2 | /[Tt]emp/ 3 | /[Oo]bj/ 4 | /[Bb]uild/ 5 | /[Bb]uilds/ 6 | /Assets/AssetStoreTools* 7 | 8 | # Autogenerated VS/MD solution and project files 9 | ExportedObj/ 10 | *.csproj 11 | *.unityproj 12 | *.sln 13 | *.suo 14 | *.tmp 15 | *.user 16 | *.userprefs 17 | *.pidb 18 | *.booproj 19 | *.svd 20 | 21 | 22 | # Unity3D generated meta files 23 | *.pidb.meta 24 | 25 | # Unity3D Generated File On Crash Reports 26 | sysinfo.txt 27 | 28 | # Builds 29 | *.apk 30 | *.unitypackage 31 | 32 | -------------------------------------------------------------------------------- /ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!159 &1 4 | EditorSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 4 7 | m_ExternalVersionControlSupport: Hidden Meta Files 8 | m_SerializationMode: 2 9 | m_DefaultBehaviorMode: 1 10 | m_SpritePackerMode: 2 11 | m_SpritePackerPaddingPower: 1 12 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd 13 | m_ProjectGenerationRootNamespace: 14 | m_UserGeneratedProjectSuffix: 15 | m_CollabEditorSettings: 16 | inProgressEnabled: 1 17 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # FFMPEG_Texture 2 | A Unity dynamic texture experiment using FFMPEG on Windows. 3 | Launch ffmpeg.exe subprocess and get yuv frame from STDOUT. 4 | 5 | * pure C#, not native dll 6 | * [MIT License](LICENSE) 7 | 8 | # Usage 9 | 10 | * Set ``FFMPEG_DIR`` envrionment variable to ``ffmpeg.exe`` directory. 11 | * open Assets/FFFMpegUtils/main.unity scene 12 | * Set Source to movie path 13 | 14 | # ToDo 15 | 16 | * fix Play speed 17 | 18 | # ffmpeg yuv4mpegpipe arguments video format 19 | 20 | * http://wiki.multimedia.cx/index.php?title=YUV4MPEG2 21 | 22 | -------------------------------------------------------------------------------- /ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!78 &1 4 | TagManager: 5 | serializedVersion: 2 6 | tags: [] 7 | layers: 8 | - Default 9 | - TransparentFX 10 | - Ignore Raycast 11 | - 12 | - Water 13 | - UI 14 | - 15 | - 16 | - 17 | - 18 | - 19 | - 20 | - 21 | - 22 | - 23 | - 24 | - 25 | - 26 | - 27 | - 28 | - 29 | - 30 | - 31 | - 32 | - 33 | - 34 | - 35 | - 36 | - 37 | - 38 | - 39 | - 40 | m_SortingLayers: 41 | - name: Default 42 | uniqueID: 0 43 | locked: 0 44 | -------------------------------------------------------------------------------- /ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!55 &1 4 | PhysicsManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 3 7 | m_Gravity: {x: 0, y: -9.81, z: 0} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_BounceThreshold: 2 10 | m_SleepThreshold: 0.005 11 | m_DefaultContactOffset: 0.01 12 | m_DefaultSolverIterations: 6 13 | m_DefaultSolverVelocityIterations: 1 14 | m_QueriesHitBackfaces: 0 15 | m_QueriesHitTriggers: 1 16 | m_EnableAdaptiveForce: 0 17 | m_EnablePCM: 1 18 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 19 | m_AutoSimulation: 1 20 | -------------------------------------------------------------------------------- /ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!310 &1 4 | UnityConnectSettings: 5 | m_ObjectHideFlags: 0 6 | m_Enabled: 0 7 | m_TestMode: 0 8 | m_TestEventUrl: 9 | m_TestConfigUrl: 10 | m_TestInitMode: 0 11 | CrashReportingSettings: 12 | m_EventUrl: https://perf-events.cloud.unity3d.com/api/events/crashes 13 | m_Enabled: 0 14 | m_CaptureEditorExceptions: 1 15 | UnityPurchasingSettings: 16 | m_Enabled: 0 17 | m_TestMode: 0 18 | UnityAnalyticsSettings: 19 | m_Enabled: 0 20 | m_InitializeOnStartup: 1 21 | m_TestMode: 0 22 | m_TestEventUrl: 23 | m_TestConfigUrl: 24 | UnityAdsSettings: 25 | m_Enabled: 0 26 | m_InitializeOnStartup: 1 27 | m_TestMode: 0 28 | m_EnabledPlatforms: 4294967295 29 | m_IosGameId: 30 | m_AndroidGameId: 31 | m_GameIds: {} 32 | m_GameId: 33 | PerformanceReportingSettings: 34 | m_Enabled: 0 35 | -------------------------------------------------------------------------------- /Assets/FFMpegUtils/RuntimeFFMPEGTexture.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | using FFMpegUtils; 6 | 7 | // This is an example of how to setup FFMPEG_Texture at runtime. This can be useful if you want to 8 | // allow the user to enter the URL of a video stream to connect to, start a video on command, or 9 | // anything else that requires that the video not be started immediately. 10 | public class RuntimeFFMPEGTexture : MonoBehaviour 11 | { 12 | FFMpegYUV4Texture ffmpegTexture; 13 | bool initialized = false; 14 | 15 | void Start () 16 | { 17 | // Instantiate the material and assign it to the host object 18 | ffmpegTexture = gameObject.AddComponent(); 19 | this.GetComponent().material = ffmpegTexture.GetMaterial(); 20 | } 21 | 22 | void Update () 23 | { 24 | // wait three seconds and then Initialize 25 | if (Time.time > 3 && !initialized) 26 | { 27 | ffmpegTexture.Initialize("C:\\temp\\sample2.mp4"); 28 | initialized = true; 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 ousttrue 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!19 &1 4 | Physics2DSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 3 7 | m_Gravity: {x: 0, y: -9.81} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_VelocityIterations: 8 10 | m_PositionIterations: 3 11 | m_VelocityThreshold: 1 12 | m_MaxLinearCorrection: 0.2 13 | m_MaxAngularCorrection: 8 14 | m_MaxTranslationSpeed: 100 15 | m_MaxRotationSpeed: 360 16 | m_BaumgarteScale: 0.2 17 | m_BaumgarteTimeOfImpactScale: 0.75 18 | m_TimeToSleep: 0.5 19 | m_LinearSleepTolerance: 0.01 20 | m_AngularSleepTolerance: 2 21 | m_DefaultContactOffset: 0.01 22 | m_AutoSimulation: 1 23 | m_QueriesHitTriggers: 1 24 | m_QueriesStartInColliders: 1 25 | m_ChangeStopsCallbacks: 0 26 | m_CallbacksOnDisable: 1 27 | m_AlwaysShowColliders: 0 28 | m_ShowColliderSleep: 1 29 | m_ShowColliderContacts: 0 30 | m_ShowColliderAABB: 0 31 | m_ContactArrowScale: 0.2 32 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} 33 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} 34 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} 35 | m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} 36 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 37 | -------------------------------------------------------------------------------- /ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!126 &1 4 | NavMeshProjectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | areas: 8 | - name: Walkable 9 | cost: 1 10 | - name: Not Walkable 11 | cost: 1 12 | - name: Jump 13 | cost: 2 14 | - name: 15 | cost: 1 16 | - name: 17 | cost: 1 18 | - name: 19 | cost: 1 20 | - name: 21 | cost: 1 22 | - name: 23 | cost: 1 24 | - name: 25 | cost: 1 26 | - name: 27 | cost: 1 28 | - name: 29 | cost: 1 30 | - name: 31 | cost: 1 32 | - name: 33 | cost: 1 34 | - name: 35 | cost: 1 36 | - name: 37 | cost: 1 38 | - name: 39 | cost: 1 40 | - name: 41 | cost: 1 42 | - name: 43 | cost: 1 44 | - name: 45 | cost: 1 46 | - name: 47 | cost: 1 48 | - name: 49 | cost: 1 50 | - name: 51 | cost: 1 52 | - name: 53 | cost: 1 54 | - name: 55 | cost: 1 56 | - name: 57 | cost: 1 58 | - name: 59 | cost: 1 60 | - name: 61 | cost: 1 62 | - name: 63 | cost: 1 64 | - name: 65 | cost: 1 66 | - name: 67 | cost: 1 68 | - name: 69 | cost: 1 70 | - name: 71 | cost: 1 72 | m_LastAgentTypeID: -887442657 73 | m_Settings: 74 | - serializedVersion: 2 75 | agentTypeID: 0 76 | agentRadius: 0.5 77 | agentHeight: 2 78 | agentSlope: 45 79 | agentClimb: 0.75 80 | ledgeDropHeight: 0 81 | maxJumpAcrossDistance: 0 82 | minRegionArea: 2 83 | manualCellSize: 0 84 | cellSize: 0.16666667 85 | manualTileSize: 0 86 | tileSize: 256 87 | accuratePlacement: 0 88 | m_SettingNames: 89 | - Humanoid 90 | -------------------------------------------------------------------------------- /Assets/FFMpegUtils/YUV4.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: YUV4 10 | m_Shader: {fileID: 4800000, guid: 2a12b5d226f35dd49b9c934153210f46, type: 3} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 5 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: 2000 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _Cutoff: 0.5 60 | - _DetailNormalMapScale: 1 61 | - _DstBlend: 0 62 | - _Glossiness: 0.5 63 | - _Metallic: 0 64 | - _Mode: 0 65 | - _OcclusionStrength: 1 66 | - _Parallax: 0.02 67 | - _SrcBlend: 1 68 | - _UVSec: 0 69 | - _ZWrite: 1 70 | m_Colors: 71 | - _Color: {r: 1, g: 1, b: 1, a: 1} 72 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 73 | -------------------------------------------------------------------------------- /ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!30 &1 4 | GraphicsSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 12 7 | m_Deferred: 8 | m_Mode: 1 9 | m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} 10 | m_DeferredReflections: 11 | m_Mode: 1 12 | m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} 13 | m_ScreenSpaceShadows: 14 | m_Mode: 1 15 | m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0} 16 | m_LegacyDeferred: 17 | m_Mode: 1 18 | m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} 19 | m_DepthNormals: 20 | m_Mode: 1 21 | m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0} 22 | m_MotionVectors: 23 | m_Mode: 1 24 | m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0} 25 | m_LightHalo: 26 | m_Mode: 1 27 | m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0} 28 | m_LensFlare: 29 | m_Mode: 1 30 | m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} 31 | m_AlwaysIncludedShaders: 32 | - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 33 | - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} 34 | - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} 35 | - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} 36 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 37 | - {fileID: 10782, guid: 0000000000000000f000000000000000, type: 0} 38 | - {fileID: 16000, guid: 0000000000000000f000000000000000, type: 0} 39 | m_PreloadedShaders: [] 40 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, 41 | type: 0} 42 | m_CustomRenderPipeline: {fileID: 0} 43 | m_TransparencySortMode: 0 44 | m_TransparencySortAxis: {x: 0, y: 0, z: 1} 45 | m_DefaultRenderingPath: 1 46 | m_DefaultMobileRenderingPath: 1 47 | m_TierSettings: [] 48 | m_LightmapStripping: 0 49 | m_FogStripping: 0 50 | m_InstancingStripping: 0 51 | m_LightmapKeepPlain: 1 52 | m_LightmapKeepDirCombined: 1 53 | m_LightmapKeepDynamicPlain: 1 54 | m_LightmapKeepDynamicDirCombined: 1 55 | m_LightmapKeepShadowMask: 1 56 | m_LightmapKeepSubtractive: 1 57 | m_FogKeepLinear: 1 58 | m_FogKeepExp: 1 59 | m_FogKeepExp2: 1 60 | m_AlbedoSwatchInfos: [] 61 | m_LightsUseLinearIntensity: 0 62 | m_LightsUseColorTemperature: 0 63 | -------------------------------------------------------------------------------- /Assets/Resources/FFMpegUtils/YUV4.shader: -------------------------------------------------------------------------------- 1 | // Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)' 2 | 3 | Shader "Unlit/YUV4" 4 | { 5 | Properties 6 | { 7 | _MainTex ("Texture", 2D) = "white" {} 8 | _UTex("UTexture", 2D) = "white" {} 9 | _VTex("VTexture", 2D) = "white" {} 10 | } 11 | SubShader 12 | { 13 | Tags { "RenderType"="Opaque" } 14 | LOD 100 15 | 16 | Pass 17 | { 18 | CGPROGRAM 19 | #pragma vertex vert 20 | #pragma fragment frag 21 | // make fog work 22 | #pragma multi_compile_fog 23 | 24 | #include "UnityCG.cginc" 25 | 26 | struct appdata 27 | { 28 | float4 vertex : POSITION; 29 | float2 uv : TEXCOORD0; 30 | float2 uv2 : TEXCOORD1; 31 | float2 uv3 : TEXCOORD2; 32 | }; 33 | 34 | struct v2f 35 | { 36 | float2 uv : TEXCOORD0; 37 | float2 uv2 : TEXCOORD1; 38 | float2 uv3 : TEXCOORD2; 39 | UNITY_FOG_COORDS(1) 40 | float4 vertex : SV_POSITION; 41 | }; 42 | 43 | sampler2D _MainTex; 44 | float4 _MainTex_ST; 45 | sampler2D _UTex; 46 | float4 _UTex_ST; 47 | sampler2D _VTex; 48 | float4 _VTex_ST; 49 | 50 | 51 | v2f vert (appdata v) 52 | { 53 | v2f o; 54 | o.vertex = UnityObjectToClipPos(v.vertex); 55 | o.uv = TRANSFORM_TEX(v.uv, _MainTex); 56 | o.uv2 = TRANSFORM_TEX(v.uv2, _UTex); 57 | o.uv3 = TRANSFORM_TEX(v.uv3, _VTex); 58 | UNITY_TRANSFER_FOG(o,o.vertex); 59 | return o; 60 | } 61 | 62 | fixed4 frag (v2f i) : SV_Target 63 | { 64 | // for testing: 65 | // show the y image: 66 | //float4 col = tex2D(_MainTex, i.uv); 67 | //return float4(col.a, col.a, col.a, 1.0); 68 | // show the u image: 69 | //float4 col = tex2D(_UTex, i.uv2); 70 | //return float4(col.a, col.a, col.a, 1.0); 71 | // show the v image: 72 | //float4 col = tex2D(_VTex, i.uv3); 73 | //return float4(col.a, col.a, col.a, 1.0); 74 | 75 | // sample the textures 76 | float2 coord; 77 | coord.x = i.uv.x; 78 | coord.y = 1 - i.uv.y; 79 | float4 y = tex2D(_MainTex, coord); 80 | float4 u = tex2D(_UTex, coord); 81 | float4 v = tex2D(_VTex, coord); 82 | 83 | // apply fog 84 | UNITY_APPLY_FOG(i.fogCoord, col); 85 | 86 | float y_value = y.a; 87 | float u_value = u.a; 88 | float v_value = v.a; 89 | 90 | // based on https://en.wikipedia.org/wiki/YUV#Y.E2.80.B2UV420sp_.28NV21.29_to_RGB_conversion_.28Android.29 91 | float r = y_value + (1.370705 * (v_value - 0.5)); 92 | float g = y_value - (0.698001 * (v_value - 0.5)) - (0.337633 * (u_value - 0.5)); 93 | float b = y_value + (1.732446 * (u_value - 0.5)); 94 | 95 | // clamp the RGB values 0..1 96 | if (r < 0) 97 | r = 0; 98 | else if (r > 1.0) 99 | r = 1.0; 100 | if (g < 0) 101 | g = 0; 102 | else if (g > 1.0) 103 | g = 1.0; 104 | if (b < 0) 105 | b = 0; 106 | else if (b > 1.0) 107 | b = 1.0; 108 | 109 | return float4(r, g, b, 1.0); 110 | } 111 | ENDCG 112 | } 113 | } 114 | } 115 | -------------------------------------------------------------------------------- /Assets/FFMpegUtils/FFMpegLauncher.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System; 3 | using System.IO; 4 | using System.Text; 5 | using System.Diagnostics; 6 | 7 | namespace FFMpegUtils 8 | { 9 | public class Disposable : IDisposable 10 | { 11 | public bool IsDisposed 12 | { 13 | get; 14 | private set; 15 | } 16 | public void Dispose() 17 | { 18 | IsDisposed = true; 19 | } 20 | } 21 | 22 | public static class RecursiveReader 23 | { 24 | public delegate void OnReadFunc(Byte[] bytes, int count); 25 | 26 | public delegate void OnCompleteFunc(); 27 | 28 | public static IDisposable BeginRead(this Stream s, Byte[] buffer, OnReadFunc onRead, OnCompleteFunc onComplete = null) 29 | { 30 | var disposable = new Disposable(); 31 | s.BeginRead(buffer, onRead, onComplete, () => disposable.IsDisposed); 32 | return disposable; 33 | } 34 | 35 | static void BeginRead(this Stream s, Byte[] buffer, OnReadFunc onRead, OnCompleteFunc onComplete, Func IsDisposed) 36 | { 37 | if (IsDisposed()) return; 38 | 39 | AsyncCallback callback = ar => { 40 | var ss = ar.AsyncState as Stream; 41 | var readCount = ss.EndRead(ar); 42 | if (readCount == 0) 43 | { 44 | if (onComplete != null) 45 | { 46 | onComplete(); 47 | } 48 | return; 49 | } 50 | 51 | onRead(buffer, readCount); 52 | 53 | BeginRead(ss, buffer, onRead, onComplete, IsDisposed); 54 | }; 55 | s.BeginRead(buffer, 0, buffer.Length, callback, s); 56 | } 57 | } 58 | 59 | public class FFMpegLauncher : IDisposable 60 | { 61 | Process m_process; 62 | 63 | public Stream StdOut 64 | { 65 | get 66 | { 67 | return m_process.StandardOutput.BaseStream; 68 | } 69 | } 70 | 71 | public Stream StdErr 72 | { 73 | get 74 | { 75 | return m_process.StandardError.BaseStream; 76 | } 77 | } 78 | 79 | FFMpegLauncher(ProcessStartInfo startInfo) 80 | { 81 | m_process=System.Diagnostics.Process.Start(startInfo); 82 | } 83 | 84 | public static FFMpegLauncher Launch(String exec, String Source) 85 | { 86 | var file = new FileInfo(exec); 87 | if (!file.Exists) 88 | { 89 | return null; 90 | } 91 | 92 | var startInfo = new ProcessStartInfo(file.FullName, String.Format("-i \"{0}\" -f yuv4mpegpipe -pix_fmt yuv444p -", Source)) 93 | { 94 | CreateNoWindow = true, 95 | RedirectStandardError = true, 96 | StandardErrorEncoding = Encoding.UTF8, 97 | RedirectStandardOutput = true, 98 | UseShellExecute = false, 99 | }; 100 | 101 | return new FFMpegLauncher(startInfo); 102 | } 103 | 104 | #region IDisposable Support 105 | private bool disposedValue = false; // 重複する呼び出しを検出するには 106 | 107 | protected virtual void Dispose(bool disposing) 108 | { 109 | if (!disposedValue) 110 | { 111 | if (disposing) 112 | { 113 | // TODO: マネージ状態を破棄します (マネージ オブジェクト)。 114 | if (m_process != null) 115 | { 116 | m_process.Dispose(); 117 | m_process = null; 118 | } 119 | } 120 | 121 | // TODO: アンマネージ リソース (アンマネージ オブジェクト) を解放し、下のファイナライザーをオーバーライドします。 122 | // TODO: 大きなフィールドを null に設定します。 123 | 124 | disposedValue = true; 125 | } 126 | } 127 | 128 | // TODO: 上の Dispose(bool disposing) にアンマネージ リソースを解放するコードが含まれる場合にのみ、ファイナライザーをオーバーライドします。 129 | // ~FFMpegLauncher() { 130 | // // このコードを変更しないでください。クリーンアップ コードを上の Dispose(bool disposing) に記述します。 131 | // Dispose(false); 132 | // } 133 | 134 | // このコードは、破棄可能なパターンを正しく実装できるように追加されました。 135 | public void Dispose() 136 | { 137 | // このコードを変更しないでください。クリーンアップ コードを上の Dispose(bool disposing) に記述します。 138 | Dispose(true); 139 | // TODO: 上のファイナライザーがオーバーライドされる場合は、次の行のコメントを解除してください。 140 | // GC.SuppressFinalize(this); 141 | } 142 | #endregion 143 | } 144 | } 145 | -------------------------------------------------------------------------------- /ProjectSettings/QualitySettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!47 &1 4 | QualitySettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 5 7 | m_CurrentQuality: 5 8 | m_QualitySettings: 9 | - serializedVersion: 2 10 | name: Fastest 11 | pixelLightCount: 0 12 | shadows: 0 13 | shadowResolution: 0 14 | shadowProjection: 1 15 | shadowCascades: 1 16 | shadowDistance: 15 17 | shadowNearPlaneOffset: 2 18 | shadowCascade2Split: 0.33333334 19 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 20 | shadowmaskMode: 0 21 | blendWeights: 1 22 | textureQuality: 1 23 | anisotropicTextures: 0 24 | antiAliasing: 0 25 | softParticles: 0 26 | softVegetation: 0 27 | realtimeReflectionProbes: 0 28 | billboardsFaceCameraPosition: 0 29 | vSyncCount: 0 30 | lodBias: 0.3 31 | maximumLODLevel: 0 32 | particleRaycastBudget: 4 33 | asyncUploadTimeSlice: 2 34 | asyncUploadBufferSize: 4 35 | resolutionScalingFixedDPIFactor: 1 36 | excludedTargetPlatforms: [] 37 | - serializedVersion: 2 38 | name: Fast 39 | pixelLightCount: 0 40 | shadows: 0 41 | shadowResolution: 0 42 | shadowProjection: 1 43 | shadowCascades: 1 44 | shadowDistance: 20 45 | shadowNearPlaneOffset: 2 46 | shadowCascade2Split: 0.33333334 47 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 48 | shadowmaskMode: 0 49 | blendWeights: 2 50 | textureQuality: 0 51 | anisotropicTextures: 0 52 | antiAliasing: 0 53 | softParticles: 0 54 | softVegetation: 0 55 | realtimeReflectionProbes: 0 56 | billboardsFaceCameraPosition: 0 57 | vSyncCount: 0 58 | lodBias: 0.4 59 | maximumLODLevel: 0 60 | particleRaycastBudget: 16 61 | asyncUploadTimeSlice: 2 62 | asyncUploadBufferSize: 4 63 | resolutionScalingFixedDPIFactor: 1 64 | excludedTargetPlatforms: [] 65 | - serializedVersion: 2 66 | name: Simple 67 | pixelLightCount: 1 68 | shadows: 1 69 | shadowResolution: 0 70 | shadowProjection: 1 71 | shadowCascades: 1 72 | shadowDistance: 20 73 | shadowNearPlaneOffset: 2 74 | shadowCascade2Split: 0.33333334 75 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 76 | shadowmaskMode: 0 77 | blendWeights: 2 78 | textureQuality: 0 79 | anisotropicTextures: 1 80 | antiAliasing: 0 81 | softParticles: 0 82 | softVegetation: 0 83 | realtimeReflectionProbes: 0 84 | billboardsFaceCameraPosition: 0 85 | vSyncCount: 0 86 | lodBias: 0.7 87 | maximumLODLevel: 0 88 | particleRaycastBudget: 64 89 | asyncUploadTimeSlice: 2 90 | asyncUploadBufferSize: 4 91 | resolutionScalingFixedDPIFactor: 1 92 | excludedTargetPlatforms: [] 93 | - serializedVersion: 2 94 | name: Good 95 | pixelLightCount: 2 96 | shadows: 2 97 | shadowResolution: 1 98 | shadowProjection: 1 99 | shadowCascades: 2 100 | shadowDistance: 40 101 | shadowNearPlaneOffset: 2 102 | shadowCascade2Split: 0.33333334 103 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 104 | shadowmaskMode: 1 105 | blendWeights: 2 106 | textureQuality: 0 107 | anisotropicTextures: 1 108 | antiAliasing: 0 109 | softParticles: 0 110 | softVegetation: 1 111 | realtimeReflectionProbes: 1 112 | billboardsFaceCameraPosition: 1 113 | vSyncCount: 1 114 | lodBias: 1 115 | maximumLODLevel: 0 116 | particleRaycastBudget: 256 117 | asyncUploadTimeSlice: 2 118 | asyncUploadBufferSize: 4 119 | resolutionScalingFixedDPIFactor: 1 120 | excludedTargetPlatforms: [] 121 | - serializedVersion: 2 122 | name: Beautiful 123 | pixelLightCount: 3 124 | shadows: 2 125 | shadowResolution: 2 126 | shadowProjection: 1 127 | shadowCascades: 2 128 | shadowDistance: 70 129 | shadowNearPlaneOffset: 2 130 | shadowCascade2Split: 0.33333334 131 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 132 | shadowmaskMode: 1 133 | blendWeights: 4 134 | textureQuality: 0 135 | anisotropicTextures: 2 136 | antiAliasing: 2 137 | softParticles: 1 138 | softVegetation: 1 139 | realtimeReflectionProbes: 1 140 | billboardsFaceCameraPosition: 1 141 | vSyncCount: 1 142 | lodBias: 1.5 143 | maximumLODLevel: 0 144 | particleRaycastBudget: 1024 145 | asyncUploadTimeSlice: 2 146 | asyncUploadBufferSize: 4 147 | resolutionScalingFixedDPIFactor: 1 148 | excludedTargetPlatforms: [] 149 | - serializedVersion: 2 150 | name: Fantastic 151 | pixelLightCount: 4 152 | shadows: 2 153 | shadowResolution: 2 154 | shadowProjection: 1 155 | shadowCascades: 4 156 | shadowDistance: 150 157 | shadowNearPlaneOffset: 2 158 | shadowCascade2Split: 0.33333334 159 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 160 | shadowmaskMode: 1 161 | blendWeights: 4 162 | textureQuality: 0 163 | anisotropicTextures: 2 164 | antiAliasing: 2 165 | softParticles: 1 166 | softVegetation: 1 167 | realtimeReflectionProbes: 1 168 | billboardsFaceCameraPosition: 1 169 | vSyncCount: 1 170 | lodBias: 2 171 | maximumLODLevel: 0 172 | particleRaycastBudget: 4096 173 | asyncUploadTimeSlice: 2 174 | asyncUploadBufferSize: 4 175 | resolutionScalingFixedDPIFactor: 1 176 | excludedTargetPlatforms: [] 177 | m_PerPlatformDefaultQuality: 178 | Android: 2 179 | BlackBerry: 2 180 | GLES Emulation: 5 181 | Nintendo 3DS: 5 182 | PS3: 5 183 | PS4: 5 184 | PSM: 5 185 | PSP2: 2 186 | Samsung TV: 2 187 | Standalone: 5 188 | Tizen: 2 189 | WP8: 5 190 | Web: 5 191 | WebGL: 3 192 | WiiU: 5 193 | Windows Store Apps: 5 194 | XBOX360: 5 195 | XboxOne: 5 196 | iPhone: 2 197 | tvOS: 5 198 | -------------------------------------------------------------------------------- /Assets/FFMpegUtils/FFMpegYUV4Texture.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.IO; 3 | using System; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Collections.Generic; 7 | using System.Collections; 8 | 9 | 10 | namespace FFMpegUtils 11 | { 12 | public class FFMpegYUV4Texture : MonoBehaviour 13 | { 14 | [SerializeField] 15 | Renderer quad; 16 | 17 | Material material; 18 | 19 | // If the source is specified in the inspector, OnEnable() will call Initialize() to 20 | // start playback 21 | [SerializeField] 22 | string Source; 23 | 24 | const string KEY = "FFMPEG_DIR"; 25 | const string EXE = "ffmpeg.exe"; 26 | 27 | #region StdErrStream 28 | List m_error = new List(); 29 | static void OnRead(List queue, Byte[] buffer, int count) 30 | { 31 | lock (((ICollection)queue).SyncRoot) 32 | { 33 | queue.AddRange(buffer.Take(count)); 34 | } 35 | } 36 | static Byte[] Dequeue(List queue) 37 | { 38 | Byte[] tmp; 39 | lock (((ICollection)queue).SyncRoot) 40 | { 41 | tmp = queue.ToArray(); 42 | queue.Clear(); 43 | } 44 | return tmp; 45 | } 46 | #endregion 47 | 48 | [SerializeField] 49 | Texture2D Texture; 50 | Texture2D UTexture; 51 | Texture2D VTexture; 52 | 53 | FFMpegLauncher m_ffmpeg; 54 | 55 | [SerializeField] 56 | YUVReader m_yuvReader; 57 | 58 | IDisposable m_stdOutDisposable; 59 | IDisposable m_stdErrDisposable; 60 | int m_lastYUVFrame = -1; 61 | 62 | // Initialize the material early so it can be immediately accessed 63 | void Awake() 64 | { 65 | material = new Material(Shader.Find("Unlit/YUV4")); 66 | material.name = "FFMPEGMaterial"; 67 | } 68 | 69 | // If Source is specified in the Inspector (and is non-zero) then Initialize() is called. 70 | void OnEnable() 71 | { 72 | if (Source != null && Source.Length > 0) 73 | { 74 | Initialize(Source); 75 | } 76 | } 77 | 78 | // Creates a YUVReader and FFMpegLauncher to start playback. 79 | // If Source is specified in the Inspector, OnEnable will call Initialize and playback will 80 | // start immediately. Otherwise it can be called manually to start playback on command. 81 | public void Initialize(string Source) 82 | { 83 | m_yuvReader = new YUVReader(); 84 | 85 | // launch 86 | var exec = Path.Combine(Environment.GetEnvironmentVariable(KEY), EXE); 87 | m_ffmpeg = FFMpegLauncher.Launch(exec, Source); 88 | 89 | if (m_ffmpeg == null) 90 | { 91 | Debug.LogWarning("fail to launch ffmpeg"); 92 | return; 93 | } 94 | 95 | m_stdOutDisposable = m_ffmpeg.StdOut.BeginRead(new Byte[8192], (b, c) => m_yuvReader.Push(new ArraySegment(b, 0, c))); 96 | m_stdErrDisposable = m_ffmpeg.StdErr.BeginRead(new Byte[1024], (b, c) => OnRead(m_error, b, c)); 97 | } 98 | 99 | // Allow the Material to be accessed so it can be assigned to geometry at runtime 100 | public Material GetMaterial() 101 | { 102 | return material; 103 | } 104 | 105 | void Update() 106 | { 107 | var error = Dequeue(m_error); 108 | if (error.Any()) 109 | { 110 | var text = Encoding.UTF8.GetString(error, 0, error.Length); 111 | Debug.LogWarning(text); 112 | } 113 | 114 | if (Texture == null) 115 | { 116 | // create textures 117 | if (m_yuvReader != null && m_yuvReader.Header != null) 118 | { 119 | Texture = new Texture2D(m_yuvReader.Header.Width, m_yuvReader.Header.Height, TextureFormat.Alpha8, false); 120 | material.mainTexture = Texture; 121 | UTexture = new Texture2D(m_yuvReader.Header.Width, m_yuvReader.Header.Height, TextureFormat.Alpha8, false); 122 | material.SetTexture("_UTex", UTexture); 123 | VTexture = new Texture2D(m_yuvReader.Header.Width, m_yuvReader.Header.Height, TextureFormat.Alpha8, false); 124 | material.SetTexture("_VTex", VTexture); 125 | 126 | if (quad != null) 127 | { 128 | quad.material = material; 129 | } 130 | } 131 | } 132 | else 133 | { 134 | var frame = m_yuvReader.GetFrame(); 135 | if (frame.FrameNumber != m_lastYUVFrame) 136 | { 137 | Texture.LoadRawTextureData(frame.YBytes); 138 | Texture.Apply(); 139 | UTexture.LoadRawTextureData(frame.UBytes); 140 | UTexture.Apply(); 141 | VTexture.LoadRawTextureData(frame.VBytes); 142 | VTexture.Apply(); 143 | } 144 | } 145 | } 146 | 147 | void OnDisable() 148 | { 149 | Debug.Log("kill"); 150 | if (m_ffmpeg != null) 151 | { 152 | m_ffmpeg.Dispose(); 153 | m_ffmpeg = null; 154 | } 155 | if(m_stdOutDisposable!= null) 156 | { 157 | m_stdOutDisposable.Dispose(); 158 | m_stdOutDisposable = null; 159 | } 160 | if(m_stdErrDisposable!= null) 161 | { 162 | m_stdErrDisposable.Dispose(); 163 | m_stdErrDisposable = null; 164 | } 165 | } 166 | } 167 | } 168 | -------------------------------------------------------------------------------- /ProjectSettings/InputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!13 &1 4 | InputManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Axes: 8 | - serializedVersion: 3 9 | m_Name: Horizontal 10 | descriptiveName: 11 | descriptiveNegativeName: 12 | negativeButton: left 13 | positiveButton: right 14 | altNegativeButton: a 15 | altPositiveButton: d 16 | gravity: 3 17 | dead: 0.001 18 | sensitivity: 3 19 | snap: 1 20 | invert: 0 21 | type: 0 22 | axis: 0 23 | joyNum: 0 24 | - serializedVersion: 3 25 | m_Name: Vertical 26 | descriptiveName: 27 | descriptiveNegativeName: 28 | negativeButton: down 29 | positiveButton: up 30 | altNegativeButton: s 31 | altPositiveButton: w 32 | gravity: 3 33 | dead: 0.001 34 | sensitivity: 3 35 | snap: 1 36 | invert: 0 37 | type: 0 38 | axis: 0 39 | joyNum: 0 40 | - serializedVersion: 3 41 | m_Name: Fire1 42 | descriptiveName: 43 | descriptiveNegativeName: 44 | negativeButton: 45 | positiveButton: left ctrl 46 | altNegativeButton: 47 | altPositiveButton: mouse 0 48 | gravity: 1000 49 | dead: 0.001 50 | sensitivity: 1000 51 | snap: 0 52 | invert: 0 53 | type: 0 54 | axis: 0 55 | joyNum: 0 56 | - serializedVersion: 3 57 | m_Name: Fire2 58 | descriptiveName: 59 | descriptiveNegativeName: 60 | negativeButton: 61 | positiveButton: left alt 62 | altNegativeButton: 63 | altPositiveButton: mouse 1 64 | gravity: 1000 65 | dead: 0.001 66 | sensitivity: 1000 67 | snap: 0 68 | invert: 0 69 | type: 0 70 | axis: 0 71 | joyNum: 0 72 | - serializedVersion: 3 73 | m_Name: Fire3 74 | descriptiveName: 75 | descriptiveNegativeName: 76 | negativeButton: 77 | positiveButton: left shift 78 | altNegativeButton: 79 | altPositiveButton: mouse 2 80 | gravity: 1000 81 | dead: 0.001 82 | sensitivity: 1000 83 | snap: 0 84 | invert: 0 85 | type: 0 86 | axis: 0 87 | joyNum: 0 88 | - serializedVersion: 3 89 | m_Name: Jump 90 | descriptiveName: 91 | descriptiveNegativeName: 92 | negativeButton: 93 | positiveButton: space 94 | altNegativeButton: 95 | altPositiveButton: 96 | gravity: 1000 97 | dead: 0.001 98 | sensitivity: 1000 99 | snap: 0 100 | invert: 0 101 | type: 0 102 | axis: 0 103 | joyNum: 0 104 | - serializedVersion: 3 105 | m_Name: Mouse X 106 | descriptiveName: 107 | descriptiveNegativeName: 108 | negativeButton: 109 | positiveButton: 110 | altNegativeButton: 111 | altPositiveButton: 112 | gravity: 0 113 | dead: 0 114 | sensitivity: 0.1 115 | snap: 0 116 | invert: 0 117 | type: 1 118 | axis: 0 119 | joyNum: 0 120 | - serializedVersion: 3 121 | m_Name: Mouse Y 122 | descriptiveName: 123 | descriptiveNegativeName: 124 | negativeButton: 125 | positiveButton: 126 | altNegativeButton: 127 | altPositiveButton: 128 | gravity: 0 129 | dead: 0 130 | sensitivity: 0.1 131 | snap: 0 132 | invert: 0 133 | type: 1 134 | axis: 1 135 | joyNum: 0 136 | - serializedVersion: 3 137 | m_Name: Mouse ScrollWheel 138 | descriptiveName: 139 | descriptiveNegativeName: 140 | negativeButton: 141 | positiveButton: 142 | altNegativeButton: 143 | altPositiveButton: 144 | gravity: 0 145 | dead: 0 146 | sensitivity: 0.1 147 | snap: 0 148 | invert: 0 149 | type: 1 150 | axis: 2 151 | joyNum: 0 152 | - serializedVersion: 3 153 | m_Name: Horizontal 154 | descriptiveName: 155 | descriptiveNegativeName: 156 | negativeButton: 157 | positiveButton: 158 | altNegativeButton: 159 | altPositiveButton: 160 | gravity: 0 161 | dead: 0.19 162 | sensitivity: 1 163 | snap: 0 164 | invert: 0 165 | type: 2 166 | axis: 0 167 | joyNum: 0 168 | - serializedVersion: 3 169 | m_Name: Vertical 170 | descriptiveName: 171 | descriptiveNegativeName: 172 | negativeButton: 173 | positiveButton: 174 | altNegativeButton: 175 | altPositiveButton: 176 | gravity: 0 177 | dead: 0.19 178 | sensitivity: 1 179 | snap: 0 180 | invert: 1 181 | type: 2 182 | axis: 1 183 | joyNum: 0 184 | - serializedVersion: 3 185 | m_Name: Fire1 186 | descriptiveName: 187 | descriptiveNegativeName: 188 | negativeButton: 189 | positiveButton: joystick button 0 190 | altNegativeButton: 191 | altPositiveButton: 192 | gravity: 1000 193 | dead: 0.001 194 | sensitivity: 1000 195 | snap: 0 196 | invert: 0 197 | type: 0 198 | axis: 0 199 | joyNum: 0 200 | - serializedVersion: 3 201 | m_Name: Fire2 202 | descriptiveName: 203 | descriptiveNegativeName: 204 | negativeButton: 205 | positiveButton: joystick button 1 206 | altNegativeButton: 207 | altPositiveButton: 208 | gravity: 1000 209 | dead: 0.001 210 | sensitivity: 1000 211 | snap: 0 212 | invert: 0 213 | type: 0 214 | axis: 0 215 | joyNum: 0 216 | - serializedVersion: 3 217 | m_Name: Fire3 218 | descriptiveName: 219 | descriptiveNegativeName: 220 | negativeButton: 221 | positiveButton: joystick button 2 222 | altNegativeButton: 223 | altPositiveButton: 224 | gravity: 1000 225 | dead: 0.001 226 | sensitivity: 1000 227 | snap: 0 228 | invert: 0 229 | type: 0 230 | axis: 0 231 | joyNum: 0 232 | - serializedVersion: 3 233 | m_Name: Jump 234 | descriptiveName: 235 | descriptiveNegativeName: 236 | negativeButton: 237 | positiveButton: joystick button 3 238 | altNegativeButton: 239 | altPositiveButton: 240 | gravity: 1000 241 | dead: 0.001 242 | sensitivity: 1000 243 | snap: 0 244 | invert: 0 245 | type: 0 246 | axis: 0 247 | joyNum: 0 248 | - serializedVersion: 3 249 | m_Name: Submit 250 | descriptiveName: 251 | descriptiveNegativeName: 252 | negativeButton: 253 | positiveButton: return 254 | altNegativeButton: 255 | altPositiveButton: joystick button 0 256 | gravity: 1000 257 | dead: 0.001 258 | sensitivity: 1000 259 | snap: 0 260 | invert: 0 261 | type: 0 262 | axis: 0 263 | joyNum: 0 264 | - serializedVersion: 3 265 | m_Name: Submit 266 | descriptiveName: 267 | descriptiveNegativeName: 268 | negativeButton: 269 | positiveButton: enter 270 | altNegativeButton: 271 | altPositiveButton: space 272 | gravity: 1000 273 | dead: 0.001 274 | sensitivity: 1000 275 | snap: 0 276 | invert: 0 277 | type: 0 278 | axis: 0 279 | joyNum: 0 280 | - serializedVersion: 3 281 | m_Name: Cancel 282 | descriptiveName: 283 | descriptiveNegativeName: 284 | negativeButton: 285 | positiveButton: escape 286 | altNegativeButton: 287 | altPositiveButton: joystick button 1 288 | gravity: 1000 289 | dead: 0.001 290 | sensitivity: 1000 291 | snap: 0 292 | invert: 0 293 | type: 0 294 | axis: 0 295 | joyNum: 0 296 | -------------------------------------------------------------------------------- /Assets/FFMpegUtils/YUV4Parser.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using System; 4 | using System.Linq; 5 | using System.Text; 6 | 7 | namespace FFMpegUtils 8 | { 9 | public static class ArraySegmentExtensions 10 | { 11 | public static T Get(this ArraySegment s, int index) 12 | { 13 | if (index >= s.Count) throw new IndexOutOfRangeException(); 14 | return s.Array[s.Offset + index]; 15 | } 16 | 17 | public static IEnumerable ToE(this ArraySegment s) 18 | { 19 | return s.Array.Skip(s.Offset).Take(s.Count); 20 | } 21 | } 22 | 23 | public enum YUVFormat 24 | { 25 | YUV420, 26 | YUV444 27 | } 28 | 29 | [Serializable] 30 | public class YUVHeader 31 | { 32 | public YUVFormat Format; 33 | public int Width; 34 | public int Height; 35 | 36 | public YUVHeader(int w, int h, YUVFormat format) 37 | { 38 | Width = w; 39 | Height = h; 40 | Format = format; 41 | } 42 | 43 | public override string ToString() 44 | { 45 | return String.Format("[{0}]{1}x{2}", Format, Width, Height); 46 | } 47 | 48 | public int BodyByteLength 49 | { 50 | get 51 | { 52 | if (Format == YUVFormat.YUV444) 53 | { 54 | return Width * Height * 3; 55 | } 56 | else 57 | { 58 | return 0; 59 | } 60 | } 61 | } 62 | 63 | public int YBytesLength 64 | { 65 | get 66 | { 67 | return Width * Height; 68 | } 69 | } 70 | 71 | public int YBytesOffset 72 | { 73 | get 74 | { 75 | return 0; 76 | } 77 | } 78 | 79 | public int UBytesLength 80 | { 81 | get 82 | { 83 | if (Format == YUVFormat.YUV444) 84 | { 85 | return YBytesLength; 86 | } 87 | else 88 | { 89 | return 0; 90 | } 91 | } 92 | } 93 | 94 | public int UBytesOffset 95 | { 96 | get 97 | { 98 | return YBytesLength; 99 | } 100 | } 101 | 102 | public int VBytesLength 103 | { 104 | get 105 | { 106 | if (Format == YUVFormat.YUV444) 107 | { 108 | return YBytesLength; 109 | } 110 | else 111 | { 112 | return 0; 113 | } 114 | } 115 | } 116 | 117 | public int VBytesOffset 118 | { 119 | get 120 | { 121 | return UBytesOffset + UBytesLength; 122 | } 123 | } 124 | 125 | public static YUVHeader Parse(String header) 126 | { 127 | int width = 0; 128 | int height = 0; 129 | var format = default(YUVFormat); 130 | foreach (var value in header.Split(' ')) 131 | { 132 | switch (value.FirstOrDefault()) 133 | { 134 | case 'W': 135 | width = int.Parse(value.Substring(1)); 136 | break; 137 | 138 | case 'H': 139 | height = int.Parse(value.Substring(1)); 140 | break; 141 | 142 | case 'C': 143 | if (value.Equals("C420")) 144 | { 145 | format = YUVFormat.YUV420; 146 | } 147 | else if (value.Equals("C444")) 148 | { 149 | format = YUVFormat.YUV444; 150 | } 151 | break; 152 | } 153 | } 154 | return new YUVHeader(width, height, format); 155 | } 156 | } 157 | 158 | public class YUVFrameReader 159 | { 160 | int m_frameNumber = -1; 161 | public int FrameNumber 162 | { 163 | get 164 | { 165 | return m_frameNumber; 166 | } 167 | } 168 | 169 | List m_header = new List(); 170 | 171 | int m_fill; 172 | Byte[] m_body; 173 | public Byte[] Body 174 | { 175 | get { return m_body; } 176 | } 177 | 178 | public bool IsFill 179 | { 180 | get 181 | { 182 | return m_fill >= m_body.Length; 183 | } 184 | } 185 | 186 | bool m_isFrameHeader = true; 187 | 188 | public YUVFrameReader(YUVHeader header) 189 | { 190 | m_body = new Byte[header.BodyByteLength]; 191 | } 192 | 193 | public void Clear(int number) 194 | { 195 | m_isFrameHeader = true; 196 | m_header.Clear(); 197 | m_fill = 0; 198 | m_frameNumber = number; 199 | } 200 | 201 | public int Push(ArraySegment bytes, int i) 202 | { 203 | if (m_isFrameHeader) 204 | { 205 | for (; i < bytes.Count; ++i) 206 | { 207 | if (bytes.Get(i) == 0x0a) 208 | { 209 | m_isFrameHeader = false; 210 | ++i; 211 | break; 212 | } 213 | m_header.Add(bytes.Get(i)); 214 | } 215 | } 216 | 217 | for (; i < bytes.Count && m_fill < m_body.Length; ++i, ++m_fill) 218 | { 219 | m_body[m_fill] = bytes.Get(i); 220 | } 221 | 222 | return i; 223 | } 224 | } 225 | 226 | public class YUVFrame 227 | { 228 | public int FrameNumber; 229 | public Byte[] YBytes; 230 | public Byte[] UBytes; 231 | public Byte[] VBytes; 232 | 233 | public YUVFrame() 234 | { 235 | FrameNumber = -1; 236 | YBytes = null; 237 | UBytes = null; 238 | VBytes = null; 239 | } 240 | } 241 | 242 | [Serializable] 243 | public class YUVReader 244 | { 245 | public YUVHeader Header; 246 | 247 | public List m_buffer = new List(); 248 | 249 | Object m_currentLock = new object(); 250 | YUVFrameReader m_current; 251 | YUVFrameReader m_next; 252 | 253 | YUVFrame m_frame = new YUVFrame(); 254 | public YUVFrame GetFrame() 255 | { 256 | if (m_current == null) 257 | { 258 | return m_frame; 259 | } 260 | 261 | lock (m_current) 262 | { 263 | if (m_frame.FrameNumber != m_current.FrameNumber) 264 | { 265 | // copy 266 | m_frame.FrameNumber = m_current.FrameNumber; 267 | if (m_frame.YBytes == null || m_frame.YBytes.Length != Header.YBytesLength) 268 | { 269 | m_frame.YBytes = new Byte[Header.YBytesLength]; 270 | } 271 | if (m_frame.UBytes == null || m_frame.UBytes.Length != Header.UBytesLength) 272 | { 273 | m_frame.UBytes = new Byte[Header.UBytesLength]; 274 | // for testing set all bytes to zero 275 | //for (int i = 0; i < m_frame.UBytes.Length; i++) 276 | // m_frame.UBytes[i] = 0; 277 | } 278 | if (m_frame.VBytes == null || m_frame.VBytes.Length != Header.VBytesLength) 279 | { 280 | m_frame.VBytes = new Byte[Header.VBytesLength]; 281 | // for testing set all bytes to zero 282 | //for (int i = 0; i < m_frame.UBytes.Length; i++) 283 | // m_frame.UBytes[i] = 0; 284 | } 285 | 286 | Array.Copy(m_current.Body, Header.YBytesOffset, m_frame.YBytes, 0, Header.YBytesLength); 287 | Array.Copy(m_current.Body, Header.UBytesOffset, m_frame.UBytes, 0, Header.UBytesLength); 288 | Array.Copy(m_current.Body, Header.VBytesOffset, m_frame.VBytes, 0, Header.VBytesLength); 289 | } 290 | } 291 | return m_frame; 292 | } 293 | 294 | public YUVReader() 295 | { 296 | } 297 | 298 | public void Push(ArraySegment bytes) 299 | { 300 | if (Header == null) 301 | { 302 | m_buffer.AddRange(bytes.ToE()); 303 | var index = m_buffer.IndexOf(0x0A); 304 | if (index == -1) 305 | { 306 | return; 307 | } 308 | var tmp = m_buffer.Take(index).ToArray(); 309 | Header = YUVHeader.Parse(Encoding.ASCII.GetString(tmp)); 310 | m_current = new YUVFrameReader(Header); 311 | m_next = new YUVFrameReader(Header); 312 | PushBody(new ArraySegment(m_buffer.Skip(index + 1).ToArray())); 313 | m_buffer.Clear(); 314 | } 315 | else 316 | { 317 | PushBody(bytes); 318 | } 319 | } 320 | 321 | public int m_frameNumber; 322 | 323 | bool PushBody(ArraySegment bytes) 324 | { 325 | bool hasNewFrame = false; 326 | 327 | var i = 0; 328 | while (i < bytes.Count) 329 | { 330 | i = m_next.Push(bytes, i); 331 | if (m_next.IsFill) 332 | { 333 | YUVFrameReader tmp; 334 | lock (m_currentLock) 335 | { 336 | tmp = m_current; 337 | m_current = m_next; 338 | } 339 | m_next = tmp; 340 | m_next.Clear(m_frameNumber++); 341 | hasNewFrame = true; 342 | } 343 | } 344 | 345 | return hasNewFrame; 346 | } 347 | } 348 | } 349 | /* 350 | readonly Byte[] frame_header = new[] { (byte)0x46, (byte)0x52, (byte)0x41, (byte)0x4D, (byte)0x45 }; 351 | 352 | 353 | bool IsHead(List src) 354 | { 355 | for (int i = 0; i < frame_header.Length; ++i) 356 | { 357 | if (src[i] != frame_header[i]) return false; 358 | } 359 | return true; 360 | } 361 | */ 362 | -------------------------------------------------------------------------------- /Assets/FFMpegUtils/main.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | OcclusionCullingSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_OcclusionBakeSettings: 8 | smallestOccluder: 5 9 | smallestHole: 0.25 10 | backfaceThreshold: 100 11 | m_SceneGUID: 00000000000000000000000000000000 12 | m_OcclusionCullingData: {fileID: 0} 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 8 17 | m_Fog: 0 18 | m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: 0.01 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} 24 | m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} 25 | m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientMode: 3 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 0} 30 | m_HaloStrength: 0.5 31 | m_FlareStrength: 1 32 | m_FlareFadeSpeed: 3 33 | m_HaloTexture: {fileID: 0} 34 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 35 | m_DefaultReflectionMode: 0 36 | m_DefaultReflectionResolution: 128 37 | m_ReflectionBounces: 1 38 | m_ReflectionIntensity: 1 39 | m_CustomReflection: {fileID: 0} 40 | m_Sun: {fileID: 0} 41 | m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} 42 | --- !u!157 &3 43 | LightmapSettings: 44 | m_ObjectHideFlags: 0 45 | serializedVersion: 11 46 | m_GIWorkflowMode: 1 47 | m_GISettings: 48 | serializedVersion: 2 49 | m_BounceScale: 1 50 | m_IndirectOutputScale: 1 51 | m_AlbedoBoost: 1 52 | m_TemporalCoherenceThreshold: 1 53 | m_EnvironmentLightingMode: 0 54 | m_EnableBakedLightmaps: 0 55 | m_EnableRealtimeLightmaps: 0 56 | m_LightmapEditorSettings: 57 | serializedVersion: 9 58 | m_Resolution: 2 59 | m_BakeResolution: 40 60 | m_TextureWidth: 1024 61 | m_TextureHeight: 1024 62 | m_AO: 0 63 | m_AOMaxDistance: 1 64 | m_CompAOExponent: 0 65 | m_CompAOExponentDirect: 0 66 | m_Padding: 2 67 | m_LightmapParameters: {fileID: 0} 68 | m_LightmapsBakeMode: 1 69 | m_TextureCompression: 1 70 | m_FinalGather: 0 71 | m_FinalGatherFiltering: 1 72 | m_FinalGatherRayCount: 1024 73 | m_ReflectionCompression: 2 74 | m_MixedBakeMode: 1 75 | m_BakeBackend: 0 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 500 79 | m_PVRBounces: 2 80 | m_PVRFiltering: 0 81 | m_PVRFilteringMode: 1 82 | m_PVRCulling: 1 83 | m_PVRFilteringGaussRadiusDirect: 1 84 | m_PVRFilteringGaussRadiusIndirect: 5 85 | m_PVRFilteringGaussRadiusAO: 2 86 | m_PVRFilteringAtrousColorSigma: 1 87 | m_PVRFilteringAtrousNormalSigma: 1 88 | m_PVRFilteringAtrousPositionSigma: 1 89 | m_LightingDataAsset: {fileID: 0} 90 | m_UseShadowmask: 0 91 | --- !u!196 &4 92 | NavMeshSettings: 93 | serializedVersion: 2 94 | m_ObjectHideFlags: 0 95 | m_BuildSettings: 96 | serializedVersion: 2 97 | agentTypeID: 0 98 | agentRadius: 0.5 99 | agentHeight: 2 100 | agentSlope: 45 101 | agentClimb: 0.4 102 | ledgeDropHeight: 0 103 | maxJumpAcrossDistance: 0 104 | minRegionArea: 2 105 | manualCellSize: 0 106 | cellSize: 0.16666667 107 | manualTileSize: 0 108 | tileSize: 256 109 | accuratePlacement: 0 110 | m_NavMeshData: {fileID: 0} 111 | --- !u!1 &17435708 112 | GameObject: 113 | m_ObjectHideFlags: 0 114 | m_PrefabParentObject: {fileID: 0} 115 | m_PrefabInternal: {fileID: 0} 116 | serializedVersion: 5 117 | m_Component: 118 | - component: {fileID: 17435713} 119 | - component: {fileID: 17435712} 120 | - component: {fileID: 17435711} 121 | - component: {fileID: 17435710} 122 | - component: {fileID: 17435709} 123 | m_Layer: 0 124 | m_Name: RuntimeQuad 125 | m_TagString: Untagged 126 | m_Icon: {fileID: 0} 127 | m_NavMeshLayer: 0 128 | m_StaticEditorFlags: 0 129 | m_IsActive: 1 130 | --- !u!114 &17435709 131 | MonoBehaviour: 132 | m_ObjectHideFlags: 0 133 | m_PrefabParentObject: {fileID: 0} 134 | m_PrefabInternal: {fileID: 0} 135 | m_GameObject: {fileID: 17435708} 136 | m_Enabled: 1 137 | m_EditorHideFlags: 0 138 | m_Script: {fileID: 11500000, guid: ca3dda458ca7b134ebf052f50eb4b70c, type: 3} 139 | m_Name: 140 | m_EditorClassIdentifier: 141 | --- !u!23 &17435710 142 | MeshRenderer: 143 | m_ObjectHideFlags: 0 144 | m_PrefabParentObject: {fileID: 0} 145 | m_PrefabInternal: {fileID: 0} 146 | m_GameObject: {fileID: 17435708} 147 | m_Enabled: 1 148 | m_CastShadows: 1 149 | m_ReceiveShadows: 1 150 | m_MotionVectors: 1 151 | m_LightProbeUsage: 1 152 | m_ReflectionProbeUsage: 1 153 | m_Materials: 154 | - {fileID: 2100000, guid: 4b9269e5f7f8c7f459715eca3fd89876, type: 2} 155 | m_StaticBatchInfo: 156 | firstSubMesh: 0 157 | subMeshCount: 0 158 | m_StaticBatchRoot: {fileID: 0} 159 | m_ProbeAnchor: {fileID: 0} 160 | m_LightProbeVolumeOverride: {fileID: 0} 161 | m_ScaleInLightmap: 1 162 | m_PreserveUVs: 1 163 | m_IgnoreNormalsForChartDetection: 0 164 | m_ImportantGI: 0 165 | m_SelectedEditorRenderState: 3 166 | m_MinimumChartSize: 4 167 | m_AutoUVMaxDistance: 0.5 168 | m_AutoUVMaxAngle: 89 169 | m_LightmapParameters: {fileID: 0} 170 | m_SortingLayerID: 0 171 | m_SortingLayer: 0 172 | m_SortingOrder: 0 173 | --- !u!64 &17435711 174 | MeshCollider: 175 | m_ObjectHideFlags: 0 176 | m_PrefabParentObject: {fileID: 0} 177 | m_PrefabInternal: {fileID: 0} 178 | m_GameObject: {fileID: 17435708} 179 | m_Material: {fileID: 0} 180 | m_IsTrigger: 0 181 | m_Enabled: 1 182 | serializedVersion: 2 183 | m_Convex: 0 184 | m_InflateMesh: 0 185 | m_SkinWidth: 0.01 186 | m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} 187 | --- !u!33 &17435712 188 | MeshFilter: 189 | m_ObjectHideFlags: 0 190 | m_PrefabParentObject: {fileID: 0} 191 | m_PrefabInternal: {fileID: 0} 192 | m_GameObject: {fileID: 17435708} 193 | m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} 194 | --- !u!4 &17435713 195 | Transform: 196 | m_ObjectHideFlags: 0 197 | m_PrefabParentObject: {fileID: 0} 198 | m_PrefabInternal: {fileID: 0} 199 | m_GameObject: {fileID: 17435708} 200 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 201 | m_LocalPosition: {x: 4.25, y: 0, z: 0} 202 | m_LocalScale: {x: 8, y: 6, z: 1} 203 | m_Children: [] 204 | m_Father: {fileID: 0} 205 | m_RootOrder: 3 206 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 207 | --- !u!1 &318249591 208 | GameObject: 209 | m_ObjectHideFlags: 0 210 | m_PrefabParentObject: {fileID: 0} 211 | m_PrefabInternal: {fileID: 0} 212 | serializedVersion: 5 213 | m_Component: 214 | - component: {fileID: 318249593} 215 | - component: {fileID: 318249592} 216 | m_Layer: 0 217 | m_Name: ffmpeg 218 | m_TagString: Untagged 219 | m_Icon: {fileID: 0} 220 | m_NavMeshLayer: 0 221 | m_StaticEditorFlags: 0 222 | m_IsActive: 1 223 | --- !u!114 &318249592 224 | MonoBehaviour: 225 | m_ObjectHideFlags: 0 226 | m_PrefabParentObject: {fileID: 0} 227 | m_PrefabInternal: {fileID: 0} 228 | m_GameObject: {fileID: 318249591} 229 | m_Enabled: 1 230 | m_EditorHideFlags: 0 231 | m_Script: {fileID: 11500000, guid: b79c09a849b24e544bc6747ee806f2d3, type: 3} 232 | m_Name: 233 | m_EditorClassIdentifier: 234 | quad: {fileID: 466538115} 235 | Source: c:\temp\sample.mp4 236 | Texture: {fileID: 0} 237 | m_yuvReader: 238 | Header: 239 | Format: 1 240 | Width: 0 241 | Height: 0 242 | m_buffer: 243 | m_frameNumber: 0 244 | --- !u!4 &318249593 245 | Transform: 246 | m_ObjectHideFlags: 0 247 | m_PrefabParentObject: {fileID: 0} 248 | m_PrefabInternal: {fileID: 0} 249 | m_GameObject: {fileID: 318249591} 250 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 251 | m_LocalPosition: {x: 0, y: 0, z: 0} 252 | m_LocalScale: {x: 1, y: 1, z: 1} 253 | m_Children: [] 254 | m_Father: {fileID: 0} 255 | m_RootOrder: 1 256 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 257 | --- !u!1 &466538114 258 | GameObject: 259 | m_ObjectHideFlags: 0 260 | m_PrefabParentObject: {fileID: 0} 261 | m_PrefabInternal: {fileID: 0} 262 | serializedVersion: 5 263 | m_Component: 264 | - component: {fileID: 466538118} 265 | - component: {fileID: 466538117} 266 | - component: {fileID: 466538116} 267 | - component: {fileID: 466538115} 268 | m_Layer: 0 269 | m_Name: Quad 270 | m_TagString: Untagged 271 | m_Icon: {fileID: 0} 272 | m_NavMeshLayer: 0 273 | m_StaticEditorFlags: 0 274 | m_IsActive: 1 275 | --- !u!23 &466538115 276 | MeshRenderer: 277 | m_ObjectHideFlags: 0 278 | m_PrefabParentObject: {fileID: 0} 279 | m_PrefabInternal: {fileID: 0} 280 | m_GameObject: {fileID: 466538114} 281 | m_Enabled: 1 282 | m_CastShadows: 1 283 | m_ReceiveShadows: 1 284 | m_MotionVectors: 1 285 | m_LightProbeUsage: 1 286 | m_ReflectionProbeUsage: 1 287 | m_Materials: 288 | - {fileID: 2100000, guid: 4b9269e5f7f8c7f459715eca3fd89876, type: 2} 289 | m_StaticBatchInfo: 290 | firstSubMesh: 0 291 | subMeshCount: 0 292 | m_StaticBatchRoot: {fileID: 0} 293 | m_ProbeAnchor: {fileID: 0} 294 | m_LightProbeVolumeOverride: {fileID: 0} 295 | m_ScaleInLightmap: 1 296 | m_PreserveUVs: 1 297 | m_IgnoreNormalsForChartDetection: 0 298 | m_ImportantGI: 0 299 | m_SelectedEditorRenderState: 3 300 | m_MinimumChartSize: 4 301 | m_AutoUVMaxDistance: 0.5 302 | m_AutoUVMaxAngle: 89 303 | m_LightmapParameters: {fileID: 0} 304 | m_SortingLayerID: 0 305 | m_SortingLayer: 0 306 | m_SortingOrder: 0 307 | --- !u!64 &466538116 308 | MeshCollider: 309 | m_ObjectHideFlags: 0 310 | m_PrefabParentObject: {fileID: 0} 311 | m_PrefabInternal: {fileID: 0} 312 | m_GameObject: {fileID: 466538114} 313 | m_Material: {fileID: 0} 314 | m_IsTrigger: 0 315 | m_Enabled: 1 316 | serializedVersion: 2 317 | m_Convex: 0 318 | m_InflateMesh: 0 319 | m_SkinWidth: 0.01 320 | m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} 321 | --- !u!33 &466538117 322 | MeshFilter: 323 | m_ObjectHideFlags: 0 324 | m_PrefabParentObject: {fileID: 0} 325 | m_PrefabInternal: {fileID: 0} 326 | m_GameObject: {fileID: 466538114} 327 | m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} 328 | --- !u!4 &466538118 329 | Transform: 330 | m_ObjectHideFlags: 0 331 | m_PrefabParentObject: {fileID: 0} 332 | m_PrefabInternal: {fileID: 0} 333 | m_GameObject: {fileID: 466538114} 334 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 335 | m_LocalPosition: {x: -4.25, y: 0, z: 0} 336 | m_LocalScale: {x: 8, y: 6, z: 1} 337 | m_Children: [] 338 | m_Father: {fileID: 0} 339 | m_RootOrder: 2 340 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 341 | --- !u!1 &752887992 342 | GameObject: 343 | m_ObjectHideFlags: 0 344 | m_PrefabParentObject: {fileID: 0} 345 | m_PrefabInternal: {fileID: 0} 346 | serializedVersion: 5 347 | m_Component: 348 | - component: {fileID: 752887997} 349 | - component: {fileID: 752887996} 350 | - component: {fileID: 752887995} 351 | - component: {fileID: 752887994} 352 | - component: {fileID: 752887993} 353 | m_Layer: 0 354 | m_Name: Main Camera 355 | m_TagString: MainCamera 356 | m_Icon: {fileID: 0} 357 | m_NavMeshLayer: 0 358 | m_StaticEditorFlags: 0 359 | m_IsActive: 1 360 | --- !u!81 &752887993 361 | AudioListener: 362 | m_ObjectHideFlags: 0 363 | m_PrefabParentObject: {fileID: 0} 364 | m_PrefabInternal: {fileID: 0} 365 | m_GameObject: {fileID: 752887992} 366 | m_Enabled: 1 367 | --- !u!124 &752887994 368 | Behaviour: 369 | m_ObjectHideFlags: 0 370 | m_PrefabParentObject: {fileID: 0} 371 | m_PrefabInternal: {fileID: 0} 372 | m_GameObject: {fileID: 752887992} 373 | m_Enabled: 1 374 | --- !u!92 &752887995 375 | Behaviour: 376 | m_ObjectHideFlags: 0 377 | m_PrefabParentObject: {fileID: 0} 378 | m_PrefabInternal: {fileID: 0} 379 | m_GameObject: {fileID: 752887992} 380 | m_Enabled: 1 381 | --- !u!20 &752887996 382 | Camera: 383 | m_ObjectHideFlags: 0 384 | m_PrefabParentObject: {fileID: 0} 385 | m_PrefabInternal: {fileID: 0} 386 | m_GameObject: {fileID: 752887992} 387 | m_Enabled: 1 388 | serializedVersion: 2 389 | m_ClearFlags: 1 390 | m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0.019607844} 391 | m_NormalizedViewPortRect: 392 | serializedVersion: 2 393 | x: 0 394 | y: 0 395 | width: 1 396 | height: 1 397 | near clip plane: 0.3 398 | far clip plane: 1000 399 | field of view: 60 400 | orthographic: 1 401 | orthographic size: 5 402 | m_Depth: -1 403 | m_CullingMask: 404 | serializedVersion: 2 405 | m_Bits: 4294967295 406 | m_RenderingPath: -1 407 | m_TargetTexture: {fileID: 0} 408 | m_TargetDisplay: 0 409 | m_TargetEye: 3 410 | m_HDR: 0 411 | m_AllowMSAA: 1 412 | m_ForceIntoRT: 0 413 | m_OcclusionCulling: 1 414 | m_StereoConvergence: 10 415 | m_StereoSeparation: 0.022 416 | m_StereoMirrorMode: 0 417 | --- !u!4 &752887997 418 | Transform: 419 | m_ObjectHideFlags: 0 420 | m_PrefabParentObject: {fileID: 0} 421 | m_PrefabInternal: {fileID: 0} 422 | m_GameObject: {fileID: 752887992} 423 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 424 | m_LocalPosition: {x: 0, y: 0, z: -10} 425 | m_LocalScale: {x: 1, y: 1, z: 1} 426 | m_Children: [] 427 | m_Father: {fileID: 0} 428 | m_RootOrder: 0 429 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 430 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!129 &1 4 | PlayerSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 12 7 | productGUID: e4c713d2bb24a0448a4fcb9ccf17eec0 8 | AndroidProfiler: 0 9 | defaultScreenOrientation: 4 10 | targetDevice: 2 11 | useOnDemandResources: 0 12 | accelerometerFrequency: 60 13 | companyName: DefaultCompany 14 | productName: FFMPEG_Texture 15 | defaultCursor: {fileID: 0} 16 | cursorHotspot: {x: 0, y: 0} 17 | m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1} 18 | m_ShowUnitySplashScreen: 0 19 | m_ShowUnitySplashLogo: 1 20 | m_SplashScreenOverlayOpacity: 1 21 | m_SplashScreenAnimation: 1 22 | m_SplashScreenLogoStyle: 1 23 | m_SplashScreenDrawMode: 0 24 | m_SplashScreenBackgroundAnimationZoom: 1 25 | m_SplashScreenLogoAnimationZoom: 1 26 | m_SplashScreenBackgroundLandscapeAspect: 1 27 | m_SplashScreenBackgroundPortraitAspect: 1 28 | m_SplashScreenBackgroundLandscapeUvs: 29 | serializedVersion: 2 30 | x: 0 31 | y: 0 32 | width: 1 33 | height: 1 34 | m_SplashScreenBackgroundPortraitUvs: 35 | serializedVersion: 2 36 | x: 0 37 | y: 0 38 | width: 1 39 | height: 1 40 | m_SplashScreenLogos: [] 41 | m_SplashScreenBackgroundLandscape: {fileID: 0} 42 | m_SplashScreenBackgroundPortrait: {fileID: 0} 43 | m_VirtualRealitySplashScreen: {fileID: 0} 44 | m_HolographicTrackingLossScreen: {fileID: 0} 45 | defaultScreenWidth: 1024 46 | defaultScreenHeight: 768 47 | defaultScreenWidthWeb: 960 48 | defaultScreenHeightWeb: 600 49 | m_StereoRenderingPath: 0 50 | m_ActiveColorSpace: 0 51 | m_MTRendering: 1 52 | m_MobileMTRendering: 0 53 | m_StackTraceTypes: 010000000100000001000000010000000100000001000000 54 | iosShowActivityIndicatorOnLoading: -1 55 | androidShowActivityIndicatorOnLoading: -1 56 | tizenShowActivityIndicatorOnLoading: -1 57 | iosAppInBackgroundBehavior: 0 58 | displayResolutionDialog: 1 59 | iosAllowHTTPDownload: 1 60 | allowedAutorotateToPortrait: 1 61 | allowedAutorotateToPortraitUpsideDown: 1 62 | allowedAutorotateToLandscapeRight: 1 63 | allowedAutorotateToLandscapeLeft: 1 64 | useOSAutorotation: 1 65 | use32BitDisplayBuffer: 1 66 | disableDepthAndStencilBuffers: 0 67 | defaultIsFullScreen: 0 68 | defaultIsNativeResolution: 1 69 | runInBackground: 0 70 | captureSingleScreen: 0 71 | muteOtherAudioSources: 0 72 | Prepare IOS For Recording: 0 73 | Force IOS Speakers When Recording: 0 74 | submitAnalytics: 1 75 | usePlayerLog: 1 76 | bakeCollisionMeshes: 0 77 | forceSingleInstance: 0 78 | resizableWindow: 1 79 | useMacAppStoreValidation: 0 80 | macAppStoreCategory: public.app-category.games 81 | gpuSkinning: 0 82 | graphicsJobs: 0 83 | xboxPIXTextureCapture: 0 84 | xboxEnableAvatar: 0 85 | xboxEnableKinect: 0 86 | xboxEnableKinectAutoTracking: 0 87 | xboxEnableFitness: 0 88 | visibleInBackground: 0 89 | allowFullscreenSwitch: 1 90 | graphicsJobMode: 0 91 | macFullscreenMode: 2 92 | d3d9FullscreenMode: 1 93 | d3d11FullscreenMode: 1 94 | xboxSpeechDB: 0 95 | xboxEnableHeadOrientation: 0 96 | xboxEnableGuest: 0 97 | xboxEnablePIXSampling: 0 98 | n3dsDisableStereoscopicView: 0 99 | n3dsEnableSharedListOpt: 1 100 | n3dsEnableVSync: 0 101 | ignoreAlphaClear: 0 102 | xboxOneResolution: 0 103 | xboxOneMonoLoggingLevel: 0 104 | xboxOneLoggingLevel: 1 105 | xboxOneDisableEsram: 0 106 | videoMemoryForVertexBuffers: 0 107 | psp2PowerMode: 0 108 | psp2AcquireBGM: 1 109 | wiiUTVResolution: 0 110 | wiiUGamePadMSAA: 1 111 | wiiUSupportsNunchuk: 0 112 | wiiUSupportsClassicController: 0 113 | wiiUSupportsBalanceBoard: 0 114 | wiiUSupportsMotionPlus: 0 115 | wiiUSupportsProController: 0 116 | wiiUAllowScreenCapture: 1 117 | wiiUControllerCount: 0 118 | m_SupportedAspectRatios: 119 | 4:3: 1 120 | 5:4: 1 121 | 16:10: 1 122 | 16:9: 1 123 | Others: 1 124 | bundleVersion: 1.0 125 | preloadedAssets: [] 126 | metroInputSource: 0 127 | m_HolographicPauseOnTrackingLoss: 1 128 | xboxOneDisableKinectGpuReservation: 0 129 | xboxOneEnable7thCore: 0 130 | vrSettings: 131 | cardboard: 132 | depthFormat: 0 133 | enableTransitionView: 0 134 | daydream: 135 | depthFormat: 0 136 | useSustainedPerformanceMode: 0 137 | hololens: 138 | depthFormat: 1 139 | protectGraphicsMemory: 0 140 | useHDRDisplay: 0 141 | targetPixelDensity: 0 142 | resolutionScalingMode: 0 143 | applicationIdentifier: 144 | Android: com.Company.ProductName 145 | Standalone: unity.DefaultCompany.FFMPEG_Texture 146 | Tizen: com.Company.ProductName 147 | iOS: com.Company.ProductName 148 | tvOS: com.Company.ProductName 149 | buildNumber: 150 | iOS: 0 151 | AndroidBundleVersionCode: 1 152 | AndroidMinSdkVersion: 16 153 | AndroidTargetSdkVersion: 0 154 | AndroidPreferredInstallLocation: 1 155 | aotOptions: 156 | stripEngineCode: 1 157 | iPhoneStrippingLevel: 0 158 | iPhoneScriptCallOptimization: 0 159 | ForceInternetPermission: 0 160 | ForceSDCardPermission: 0 161 | CreateWallpaper: 0 162 | APKExpansionFiles: 0 163 | keepLoadedShadersAlive: 0 164 | StripUnusedMeshComponents: 0 165 | VertexChannelCompressionMask: 166 | serializedVersion: 2 167 | m_Bits: 238 168 | iPhoneSdkVersion: 988 169 | iOSTargetOSVersionString: 6.0 170 | tvOSSdkVersion: 0 171 | tvOSRequireExtendedGameController: 0 172 | tvOSTargetOSVersionString: 173 | uIPrerenderedIcon: 0 174 | uIRequiresPersistentWiFi: 0 175 | uIRequiresFullScreen: 1 176 | uIStatusBarHidden: 1 177 | uIExitOnSuspend: 0 178 | uIStatusBarStyle: 0 179 | iPhoneSplashScreen: {fileID: 0} 180 | iPhoneHighResSplashScreen: {fileID: 0} 181 | iPhoneTallHighResSplashScreen: {fileID: 0} 182 | iPhone47inSplashScreen: {fileID: 0} 183 | iPhone55inPortraitSplashScreen: {fileID: 0} 184 | iPhone55inLandscapeSplashScreen: {fileID: 0} 185 | iPadPortraitSplashScreen: {fileID: 0} 186 | iPadHighResPortraitSplashScreen: {fileID: 0} 187 | iPadLandscapeSplashScreen: {fileID: 0} 188 | iPadHighResLandscapeSplashScreen: {fileID: 0} 189 | appleTVSplashScreen: {fileID: 0} 190 | tvOSSmallIconLayers: [] 191 | tvOSLargeIconLayers: [] 192 | tvOSTopShelfImageLayers: [] 193 | tvOSTopShelfImageWideLayers: [] 194 | iOSLaunchScreenType: 0 195 | iOSLaunchScreenPortrait: {fileID: 0} 196 | iOSLaunchScreenLandscape: {fileID: 0} 197 | iOSLaunchScreenBackgroundColor: 198 | serializedVersion: 2 199 | rgba: 0 200 | iOSLaunchScreenFillPct: 100 201 | iOSLaunchScreenSize: 100 202 | iOSLaunchScreenCustomXibPath: 203 | iOSLaunchScreeniPadType: 0 204 | iOSLaunchScreeniPadImage: {fileID: 0} 205 | iOSLaunchScreeniPadBackgroundColor: 206 | serializedVersion: 2 207 | rgba: 0 208 | iOSLaunchScreeniPadFillPct: 100 209 | iOSLaunchScreeniPadSize: 100 210 | iOSLaunchScreeniPadCustomXibPath: 211 | iOSDeviceRequirements: [] 212 | iOSURLSchemes: [] 213 | iOSBackgroundModes: 0 214 | iOSMetalForceHardShadows: 0 215 | metalEditorSupport: 1 216 | metalAPIValidation: 1 217 | iOSRenderExtraFrameOnPause: 1 218 | appleDeveloperTeamID: 219 | iOSManualSigningProvisioningProfileID: 220 | tvOSManualSigningProvisioningProfileID: 221 | appleEnableAutomaticSigning: 0 222 | AndroidTargetDevice: 0 223 | AndroidSplashScreenScale: 0 224 | androidSplashScreen: {fileID: 0} 225 | AndroidKeystoreName: 226 | AndroidKeyaliasName: 227 | AndroidTVCompatibility: 1 228 | AndroidIsGame: 1 229 | androidEnableBanner: 1 230 | m_AndroidBanners: 231 | - width: 320 232 | height: 180 233 | banner: {fileID: 0} 234 | androidGamepadSupportLevel: 0 235 | resolutionDialogBanner: {fileID: 0} 236 | m_BuildTargetIcons: [] 237 | m_BuildTargetBatching: [] 238 | m_BuildTargetGraphicsAPIs: [] 239 | m_BuildTargetVRSettings: [] 240 | openGLRequireES31: 0 241 | openGLRequireES31AEP: 0 242 | webPlayerTemplate: APPLICATION:Default 243 | m_TemplateCustomTags: {} 244 | wiiUTitleID: 0005000011000000 245 | wiiUGroupID: 00010000 246 | wiiUCommonSaveSize: 4096 247 | wiiUAccountSaveSize: 2048 248 | wiiUOlvAccessKey: 0 249 | wiiUTinCode: 0 250 | wiiUJoinGameId: 0 251 | wiiUJoinGameModeMask: 0000000000000000 252 | wiiUCommonBossSize: 0 253 | wiiUAccountBossSize: 0 254 | wiiUAddOnUniqueIDs: [] 255 | wiiUMainThreadStackSize: 3072 256 | wiiULoaderThreadStackSize: 1024 257 | wiiUSystemHeapSize: 128 258 | wiiUTVStartupScreen: {fileID: 0} 259 | wiiUGamePadStartupScreen: {fileID: 0} 260 | wiiUDrcBufferDisabled: 0 261 | wiiUProfilerLibPath: 262 | playModeTestRunnerEnabled: 0 263 | actionOnDotNetUnhandledException: 1 264 | enableInternalProfiler: 0 265 | logObjCUncaughtExceptions: 1 266 | enableCrashReportAPI: 0 267 | cameraUsageDescription: 268 | locationUsageDescription: 269 | microphoneUsageDescription: 270 | switchNetLibKey: 271 | switchSocketMemoryPoolSize: 6144 272 | switchSocketAllocatorPoolSize: 128 273 | switchSocketConcurrencyLimit: 14 274 | switchScreenResolutionBehavior: 2 275 | switchUseCPUProfiler: 0 276 | switchApplicationID: 0x01004b9000490000 277 | switchNSODependencies: 278 | switchTitleNames_0: 279 | switchTitleNames_1: 280 | switchTitleNames_2: 281 | switchTitleNames_3: 282 | switchTitleNames_4: 283 | switchTitleNames_5: 284 | switchTitleNames_6: 285 | switchTitleNames_7: 286 | switchTitleNames_8: 287 | switchTitleNames_9: 288 | switchTitleNames_10: 289 | switchTitleNames_11: 290 | switchPublisherNames_0: 291 | switchPublisherNames_1: 292 | switchPublisherNames_2: 293 | switchPublisherNames_3: 294 | switchPublisherNames_4: 295 | switchPublisherNames_5: 296 | switchPublisherNames_6: 297 | switchPublisherNames_7: 298 | switchPublisherNames_8: 299 | switchPublisherNames_9: 300 | switchPublisherNames_10: 301 | switchPublisherNames_11: 302 | switchIcons_0: {fileID: 0} 303 | switchIcons_1: {fileID: 0} 304 | switchIcons_2: {fileID: 0} 305 | switchIcons_3: {fileID: 0} 306 | switchIcons_4: {fileID: 0} 307 | switchIcons_5: {fileID: 0} 308 | switchIcons_6: {fileID: 0} 309 | switchIcons_7: {fileID: 0} 310 | switchIcons_8: {fileID: 0} 311 | switchIcons_9: {fileID: 0} 312 | switchIcons_10: {fileID: 0} 313 | switchIcons_11: {fileID: 0} 314 | switchSmallIcons_0: {fileID: 0} 315 | switchSmallIcons_1: {fileID: 0} 316 | switchSmallIcons_2: {fileID: 0} 317 | switchSmallIcons_3: {fileID: 0} 318 | switchSmallIcons_4: {fileID: 0} 319 | switchSmallIcons_5: {fileID: 0} 320 | switchSmallIcons_6: {fileID: 0} 321 | switchSmallIcons_7: {fileID: 0} 322 | switchSmallIcons_8: {fileID: 0} 323 | switchSmallIcons_9: {fileID: 0} 324 | switchSmallIcons_10: {fileID: 0} 325 | switchSmallIcons_11: {fileID: 0} 326 | switchManualHTML: 327 | switchAccessibleURLs: 328 | switchLegalInformation: 329 | switchMainThreadStackSize: 1048576 330 | switchPresenceGroupId: 331 | switchLogoHandling: 0 332 | switchReleaseVersion: 0 333 | switchDisplayVersion: 1.0.0 334 | switchStartupUserAccount: 0 335 | switchTouchScreenUsage: 0 336 | switchSupportedLanguagesMask: 0 337 | switchLogoType: 0 338 | switchApplicationErrorCodeCategory: 339 | switchUserAccountSaveDataSize: 0 340 | switchUserAccountSaveDataJournalSize: 0 341 | switchApplicationAttribute: 0 342 | switchCardSpecSize: -1 343 | switchCardSpecClock: -1 344 | switchRatingsMask: 0 345 | switchRatingsInt_0: 0 346 | switchRatingsInt_1: 0 347 | switchRatingsInt_2: 0 348 | switchRatingsInt_3: 0 349 | switchRatingsInt_4: 0 350 | switchRatingsInt_5: 0 351 | switchRatingsInt_6: 0 352 | switchRatingsInt_7: 0 353 | switchRatingsInt_8: 0 354 | switchRatingsInt_9: 0 355 | switchRatingsInt_10: 0 356 | switchRatingsInt_11: 0 357 | switchLocalCommunicationIds_0: 358 | switchLocalCommunicationIds_1: 359 | switchLocalCommunicationIds_2: 360 | switchLocalCommunicationIds_3: 361 | switchLocalCommunicationIds_4: 362 | switchLocalCommunicationIds_5: 363 | switchLocalCommunicationIds_6: 364 | switchLocalCommunicationIds_7: 365 | switchParentalControl: 0 366 | switchAllowsScreenshot: 1 367 | switchDataLossConfirmation: 0 368 | switchSupportedNpadStyles: 3 369 | switchSocketConfigEnabled: 0 370 | switchTcpInitialSendBufferSize: 32 371 | switchTcpInitialReceiveBufferSize: 64 372 | switchTcpAutoSendBufferSizeMax: 256 373 | switchTcpAutoReceiveBufferSizeMax: 256 374 | switchUdpSendBufferSize: 9 375 | switchUdpReceiveBufferSize: 42 376 | switchSocketBufferEfficiency: 4 377 | switchSocketInitializeEnabled: 1 378 | switchNetworkInterfaceManagerInitializeEnabled: 1 379 | switchPlayerConnectionEnabled: 1 380 | ps4NPAgeRating: 12 381 | ps4NPTitleSecret: 382 | ps4NPTrophyPackPath: 383 | ps4ParentalLevel: 1 384 | ps4ContentID: ED1633-NPXX51362_00-0000000000000000 385 | ps4Category: 0 386 | ps4MasterVersion: 01.00 387 | ps4AppVersion: 01.00 388 | ps4AppType: 0 389 | ps4ParamSfxPath: 390 | ps4VideoOutPixelFormat: 0 391 | ps4VideoOutInitialWidth: 1920 392 | ps4VideoOutBaseModeInitialWidth: 1920 393 | ps4VideoOutReprojectionRate: 120 394 | ps4PronunciationXMLPath: 395 | ps4PronunciationSIGPath: 396 | ps4BackgroundImagePath: 397 | ps4StartupImagePath: 398 | ps4SaveDataImagePath: 399 | ps4SdkOverride: 400 | ps4BGMPath: 401 | ps4ShareFilePath: 402 | ps4ShareOverlayImagePath: 403 | ps4PrivacyGuardImagePath: 404 | ps4NPtitleDatPath: 405 | ps4RemotePlayKeyAssignment: -1 406 | ps4RemotePlayKeyMappingDir: 407 | ps4PlayTogetherPlayerCount: 0 408 | ps4EnterButtonAssignment: 1 409 | ps4ApplicationParam1: 0 410 | ps4ApplicationParam2: 0 411 | ps4ApplicationParam3: 0 412 | ps4ApplicationParam4: 0 413 | ps4DownloadDataSize: 0 414 | ps4GarlicHeapSize: 2048 415 | ps4ProGarlicHeapSize: 2560 416 | ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ 417 | ps4pnSessions: 1 418 | ps4pnPresence: 1 419 | ps4pnFriends: 1 420 | ps4pnGameCustomData: 1 421 | playerPrefsSupport: 0 422 | restrictedAudioUsageRights: 0 423 | ps4UseResolutionFallback: 0 424 | ps4ReprojectionSupport: 0 425 | ps4UseAudio3dBackend: 0 426 | ps4SocialScreenEnabled: 0 427 | ps4ScriptOptimizationLevel: 0 428 | ps4Audio3dVirtualSpeakerCount: 14 429 | ps4attribCpuUsage: 0 430 | ps4PatchPkgPath: 431 | ps4PatchLatestPkgPath: 432 | ps4PatchChangeinfoPath: 433 | ps4PatchDayOne: 0 434 | ps4attribUserManagement: 0 435 | ps4attribMoveSupport: 0 436 | ps4attrib3DSupport: 0 437 | ps4attribShareSupport: 0 438 | ps4attribExclusiveVR: 0 439 | ps4disableAutoHideSplash: 0 440 | ps4videoRecordingFeaturesUsed: 0 441 | ps4contentSearchFeaturesUsed: 0 442 | ps4attribEyeToEyeDistanceSettingVR: 0 443 | ps4IncludedModules: [] 444 | monoEnv: 445 | psp2Splashimage: {fileID: 0} 446 | psp2NPTrophyPackPath: 447 | psp2NPSupportGBMorGJP: 0 448 | psp2NPAgeRating: 12 449 | psp2NPTitleDatPath: 450 | psp2NPCommsID: 451 | psp2NPCommunicationsID: 452 | psp2NPCommsPassphrase: 453 | psp2NPCommsSig: 454 | psp2ParamSfxPath: 455 | psp2ManualPath: 456 | psp2LiveAreaGatePath: 457 | psp2LiveAreaBackroundPath: 458 | psp2LiveAreaPath: 459 | psp2LiveAreaTrialPath: 460 | psp2PatchChangeInfoPath: 461 | psp2PatchOriginalPackage: 462 | psp2PackagePassword: F69AzBlax3CF3EDNhm3soLBPh71Yexui 463 | psp2KeystoneFile: 464 | psp2MemoryExpansionMode: 0 465 | psp2DRMType: 0 466 | psp2StorageType: 0 467 | psp2MediaCapacity: 0 468 | psp2DLCConfigPath: 469 | psp2ThumbnailPath: 470 | psp2BackgroundPath: 471 | psp2SoundPath: 472 | psp2TrophyCommId: 473 | psp2TrophyPackagePath: 474 | psp2PackagedResourcesPath: 475 | psp2SaveDataQuota: 10240 476 | psp2ParentalLevel: 1 477 | psp2ShortTitle: Not Set 478 | psp2ContentID: IV0000-ABCD12345_00-0123456789ABCDEF 479 | psp2Category: 0 480 | psp2MasterVersion: 01.00 481 | psp2AppVersion: 01.00 482 | psp2TVBootMode: 0 483 | psp2EnterButtonAssignment: 2 484 | psp2TVDisableEmu: 0 485 | psp2AllowTwitterDialog: 1 486 | psp2Upgradable: 0 487 | psp2HealthWarning: 0 488 | psp2UseLibLocation: 0 489 | psp2InfoBarOnStartup: 0 490 | psp2InfoBarColor: 0 491 | psp2ScriptOptimizationLevel: 0 492 | psmSplashimage: {fileID: 0} 493 | splashScreenBackgroundSourceLandscape: {fileID: 0} 494 | splashScreenBackgroundSourcePortrait: {fileID: 0} 495 | spritePackerPolicy: 496 | webGLMemorySize: 256 497 | webGLExceptionSupport: 1 498 | webGLNameFilesAsHashes: 0 499 | webGLDataCaching: 0 500 | webGLDebugSymbols: 0 501 | webGLEmscriptenArgs: 502 | webGLModulesDirectory: 503 | webGLTemplate: APPLICATION:Default 504 | webGLAnalyzeBuildSize: 0 505 | webGLUseEmbeddedResources: 0 506 | webGLUseWasm: 0 507 | webGLCompressionFormat: 1 508 | scriptingDefineSymbols: {} 509 | platformArchitecture: {} 510 | scriptingBackend: 511 | Standalone: 0 512 | WebPlayer: 0 513 | incrementalIl2cppBuild: {} 514 | additionalIl2CppArgs: 515 | scriptingRuntimeVersion: 0 516 | apiCompatibilityLevelPerPlatform: {} 517 | m_RenderingPath: 1 518 | m_MobileRenderingPath: 1 519 | metroPackageName: FFMPEG_Texture 520 | metroPackageVersion: 521 | metroCertificatePath: 522 | metroCertificatePassword: 523 | metroCertificateSubject: 524 | metroCertificateIssuer: 525 | metroCertificateNotAfter: 0000000000000000 526 | metroApplicationDescription: FFMPEG_Texture 527 | wsaImages: {} 528 | metroTileShortName: 529 | metroCommandLineArgsFile: 530 | metroTileShowName: 0 531 | metroMediumTileShowName: 0 532 | metroLargeTileShowName: 0 533 | metroWideTileShowName: 0 534 | metroDefaultTileSize: 1 535 | metroTileForegroundText: 1 536 | metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} 537 | metroSplashScreenBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, 538 | a: 1} 539 | metroSplashScreenUseBackgroundColor: 1 540 | platformCapabilities: {} 541 | metroFTAName: 542 | metroFTAFileTypes: [] 543 | metroProtocolName: 544 | metroCompilationOverrides: 1 545 | tizenProductDescription: 546 | tizenProductURL: 547 | tizenSigningProfileName: 548 | tizenGPSPermissions: 0 549 | tizenMicrophonePermissions: 0 550 | tizenDeploymentTarget: 551 | tizenDeploymentTargetType: -1 552 | tizenMinOSVersion: 1 553 | n3dsUseExtSaveData: 0 554 | n3dsCompressStaticMem: 1 555 | n3dsExtSaveDataNumber: 0x12345 556 | n3dsStackSize: 131072 557 | n3dsTargetPlatform: 2 558 | n3dsRegion: 7 559 | n3dsMediaSize: 0 560 | n3dsLogoStyle: 3 561 | n3dsTitle: GameName 562 | n3dsProductCode: 563 | n3dsApplicationId: 0xFF3FF 564 | stvDeviceAddress: 565 | stvProductDescription: 566 | stvProductAuthor: 567 | stvProductAuthorEmail: 568 | stvProductLink: 569 | stvProductCategory: 0 570 | XboxOneProductId: 571 | XboxOneUpdateKey: 572 | XboxOneSandboxId: 573 | XboxOneContentId: 574 | XboxOneTitleId: 575 | XboxOneSCId: 576 | XboxOneGameOsOverridePath: 577 | XboxOnePackagingOverridePath: 578 | XboxOneAppManifestOverridePath: 579 | XboxOnePackageEncryption: 0 580 | XboxOnePackageUpdateGranularity: 2 581 | XboxOneDescription: 582 | XboxOneLanguage: 583 | - enus 584 | XboxOneCapability: [] 585 | XboxOneGameRating: {} 586 | XboxOneIsContentPackage: 0 587 | XboxOneEnableGPUVariability: 0 588 | XboxOneSockets: {} 589 | XboxOneSplashScreen: {fileID: 0} 590 | XboxOneAllowedProductIds: [] 591 | XboxOnePersistentLocalStorageSize: 0 592 | xboxOneScriptCompiler: 0 593 | vrEditorSettings: 594 | daydream: 595 | daydreamIconForeground: {fileID: 0} 596 | daydreamIconBackground: {fileID: 0} 597 | cloudServicesEnabled: {} 598 | facebookSdkVersion: 7.9.4 599 | apiCompatibilityLevel: 2 600 | cloudProjectId: 601 | projectName: 602 | organizationId: 603 | cloudEnabled: 0 604 | enableNativePlatformBackendsForNewInputSystem: 0 605 | disableOldInputManagerSupport: 0 606 | --------------------------------------------------------------------------------