Log in

View Full Version : FFMPEG output into Adobe Encore


lyinawake
7th July 2014, 17:34
I'm having a lot of pain around getting a DVD-format output from FFMPEG to go into Encore. I have managed to get FFMPEG to export a DVD-compliant video file with an audio track (Encore sees that it does not need to be transcoded), but the 2-4 minute clips I am cutting will randomly generate the infamous "End of file" error in Encore. This error is caused because Encore believes the video finishes before the audio and errors on building the project. One workaround is to make the audio one increment shorter in the Encore timeline and the project should build, but due to Encore's incredibly unhelpful error message, it is not obvious which file that needs to be done with and that is a few more unnecessary steps in our process (many more steps for a disc with lots of clips on it).

I have assumed Encore isn't out to lunch and that all of my clips do somehow have audio jutting past the video and created a script to trim the last second or so off the end of the video clips to see what would happen. Instead of fixing the problem in all clips, it fixed the problem in the clips that were having issues, but created new issues in previously working clips. It seems as if Encore is just not liking something about the structure of my videos or it simply cannot reliably accept output from ffmpeg. Here is the ffmpeg command:


ffmpeg -y -i inputfile.mp4 -f dvd -target ntsc-dvd -r 30000/1001 -vf scale=720:480 -aspect 16:9 -b:v 8000k -g 12 -mbd rd -trellis 1 -flags +mv0 -cmp 0 -subcmp 2 -shortest outputfile.mpg


I'm using a cross-compile build of FFMPEG from April 2014, pulled from svn.

If the files are brought in separately as elementary streams, this problem goes away, but it's additional overhead for me to need to separate the audio and then bring in that audio into the timeline. The problem also goes away if we tell Encore to transcode the files itself, but my authoring system isn't going to have nearly as fast a CPU as the system that has FFMPEG on it and by using ffmpeg I can batch the whole thing and let it run overnight instead of transcode a few clips at a time every time we want to create a new disc.

Does anyone have experience using ffmpeg to reliably generate DVD or Bluray compliant video that doesn't need to be transcoded by Encore? Any pointers for me?