Hi all,
As noted in the following jira ticket and nabble thread, in order to
support MPEG2 trim we need to reencode the source file.
http://opencast.jira.com/browse/MH-5529
http://opencast.3480289.n2.nabble.com/CA-amp-trimming-tt5599868.html#a5599868
Since we can no longer use "copy -vcodec", we need a general ffmpeg
statement to handle our reencode. The folks on ffmpeg irc vociferously
said not to use sameq and recommeded qscale to specify quality
compression. The ffmpeg documentation on sameq is paltry and misleading
so its understandable that one would interpret that sameq is acceptable
("Use same video quality as source (implies VBR)").
The irc flks reasons for not using sameq were:
-h264 input qscales won't match, for example, non-h264 output
-raw input
-nonlinear mpeg-2 quantizer scale
-basically anything that doesn't use the linear mpeg quantizer (wmv, etc.)
I tried some very basic tests using qscale 2 and 5. It seems like
qscale 2 retains a very high quality but there is some significant
savings in file size for mpeg2. With one mpeg4 sample it looked like
the file roughly doubled in size and the bitrate increased roughly
twofold. Recommendations on standard qscale are needed! The audio
would continue to be copied to the new container.
http://pastebin.com/B1kmZkyw
ffmpeg -strict inofficial -i /Users/adam/Desktop/nate/welcome.mp4
-qscale 2 -acodec copy -ss 00:00:10 -t 00:00:30
/Users/adam/Desktop/nate/mux-2.mp4
On a separate note, assuming these reasons are compelling enough, the
av.work ffmpeg profile should not contain sameq as well. Since we're
copying everything as is, sameq shouldn't be needed anyway.
If this works for everyone, we need to test this more intensively to get
a sense what the repercussions are asap.
~Adam
_______________________________________________
Matterhorn mailing list
[email protected]
http://lists.opencastproject.org/mailman/listinfo/matterhorn
To unsubscribe please email
[email protected]
_______________________________________________