MP4 output only writes a file of 32 bytes [Windows 7]
ikriz opened this issue · 16 comments
All the output I get using the MovieRecorder Component (the 32byte file).
20170711_121050.zip
Tried using the dev branch but the dll's are missing from the unity project.
[update]The dll's are being ignored in the github repo by the looks of it[/update]
I got another bug report for this issue, but I could have not reproduce it. I need more information.
can you send me Editor.log? does this issue occur only on mp4 recorder? (what about another recorder?) does it always happen or under some condition?
The webm encoder does indeed work, it's just the mp4 encoder for me that doesnt.
I'm running it on a windows 7 machine (with nvidia card) in unity 5.6.1f1. The only output in the editor log is the begin and end recording messages. I believe it's a bug in the fccore.dll because fcAPI.fcMP4AddVideoFramePixels() is being called.
I still need to compile the plugin myself then I should get more debug output.
I think I figured it out. this plugin is using a feature that may not be supported on Windows 7. if you can build and test plugin, replace "eAVEncH264VProfile_High" with "eAVEncH264VProfile_Main" in this line.
building this plugin is simple. just open Plugin/fccore.sln with VisualStudio 2015 or 2017 and build it.
I realized we don't have Windows 7 test environment anymore. can you test this build?
fccore.zip
I tested your dll with the test scene. Still no video frames, the audio does get written out, kinda wanna get the DebugImpl working but not sure how. Have successfully build the plugin though.
hmm, it seems there are another features not supported on Windows 7. H264 encoder on Windows 7 is quite limited. ( https://msdn.microsoft.com/en-us/library/windows/desktop/dd797816?f=255&MSPPError=-2147217396 )
I think I will label "MP4 recorder is available on Windows 8 or later" instead of fix it.
I noticed Windows 7's share is still far from ignorable. I need to dig into bit more..
can you test this build? fccore.zip (changes for this build)
Sorry for the late reply, tested the last build but the same thing still happens. The whole company here still uses win 7, unity hardware stats say the same thing a good percentage of users still are on win7.
thanks for the info.
I need my own Windows 7 machine to investigate furthermore. please wait for a while.
Hi, i just wanted to confirm that i'm having same issue on win 7 as well. Looking forward to your solution.
OS: Windows 7 Pro 64-bit (6.1, Build 7601)
Unity 2017.1.0f3
FYI: it can take a month or more, maybe I give up. if you are in a hurry, you'd better look for another solution.
Thanks for heads up. No worries, i'm already using this FFmpegOut. I was just exploring better alternatives since it has this high-res issue.
Long live Unity Japan! 😄
I found an error "Transform_ProcessOutputError" in the MFT trace logs (based on https://blogs.msdn.microsoft.com/mf/2010/05/20/using-event-viewer-to-trace-media-foundation/):
Hoping this is not worthless information...?
I couldn't find any useful information about Transform_ProcessOutputError... but I really appreciate your help.
Same problem with @filibis , only audio has been recorded. And My PC is also Windows 7 with Unity 2017.1.0f3
Easiest workaround is to upgrade your system to windows 10 (this solved the issue for me)