For some time I've had numerous issues when (re)encoding bluray content into a smaller and more economical size for backup. Because the cost of 25Gb blank media is roughly one fifth that of its 50Gb big brother at current prices, the incentive for re-encoding larger video streams into more manageable spaces through something like the usual H264 tricks is appealing. However, more than an occasional snag is encountered when attempting to encode the smaller sized video stream with its original audio stream. After a little fussing around, I reduced the problem down to the two essential considerations of consistent frame rate through out the entire process and the equally important notion of retaining the original time stamps in all the steps. The following pseudo command lines demonstrate a couple of ffmpeg arguments I used to first process an original video stream into a smaller size and then secondly to encode that result with its original audio into a final form. First, reduce the size of the video stream while retaining original timestamps and ensuring the desired frame rate ......... ffmpeg -y -i <some original>.m2ts -vcodec libx264 <whatever x264 options one wishes to employ for best quality-to-size> -an *-r 23.976 -copyts *<new video>.h264 Then re-encode the original audio stream with the new and smaller video stream, again ensuring that the original timestamps are passed along with the desired frame rate, as follows ....... ffmpeg *-r 23.976 *-i <new video>.h264 -vcodec copy -i <original audio> -acodec copy -f mpegts -ps 192 *-copyts *<final media stream>.m2ts. I've seen many posts over the years regarding A/V syncing problems with ffmpeg and I felt that if the integrity and consistency of a couple of very important features of the original content were preserved in subsequent processing, relatively flawless results would follow. After all, there is nothing quite like ffmpeg. My tribute to all of you who have developed one of the best media processing platforms to date. Cheers.
participants (1)
-
bc@wlca.com