Closed kliffy closed 5 years ago
Can you use -passlogfile
option to specify the path of video statistics file?
... It works! I tried using passlogfile
previously but must have done something wrong. Anyway I specified a path in the documents directory for the passlogfile for both passes and that did the trick. Thanks a bunch, again.
Here's what the commands came out to look like:
ffmpeg -y -i /private/var/containers/Bundle/Application/5E0A94FB-FC39-46CD-B9A5-D95B0294050E/test.app/18seconds.mp4 -c:v libx264 -b:v 280k -pass 1 -an -f mp4 -passlogfile /var/mobile/Containers/Data/Application/EB4DFC1F-4A58-404A-80E3-69C4EFE2F245/Documents/somelogfile /dev/null
ffmpeg -i /private/var/containers/Bundle/Application/5E0A94FB-FC39-46CD-B9A5-D95B0294050E/test.app/18seconds.mp4 -c:v libx264 -b:v 280k -pass 2 -c:a aac -b:a 128k -passlogfile /var/mobile/Containers/Data/Application/EB4DFC1F-4A58-404A-80E3-69C4EFE2F245/Documents/somelogfile /var/mobile/Containers/Data/Application/EB4DFC1F-4A58-404A-80E3-69C4EFE2F245/Documents/video343.mp4
Description Trying to attempt a two pass video compression. Works when run directly through my terminal but can't seem to get it to work on iOS.
I'm trying essentially the same commands on both and it fails on the iOS end giving me the message:
Interesting that it tells me maybe incorrect parameters when doing the same through the terminal works. I'm wondering maybe the ratecontrol_init line has anything to do with it? Perhaps something with the log file output or setting /dev/null for iOS is not correct? Would appreciate any insight on this.
Logs The following logs are just concerning the first pass command.
Heres the log of the successful first pass command through my terminal. On completion of this it also creates the "ffmpeg2pass-0.log.mbtree" log file.
Log of failing compression on iOS. This log is from using my simulator. Running on the iphone itself produces the same error but I noticed "using cpu capabilities" is different between the two and perhaps others are different, let me know if you want those logs:
Environment