[FFmpeg-user] DV to SD Blu-ray

Andy Furniss adf.lists at gmail.com
Fri Jan 20 20:34:40 EET 2017


Terje J. Hanssen wrote:
> Hi List,
>
> I'm a new user here and want suggestions for "best" ffmpeg syntax to
> transcode PAL 576i DV source files to compliant SD-BD_x264m2ts and/or
> SD-BD_mpeg2.m2ts.
> The AVCHD-SD specification is possibly something that could be used
> https://en.wikipedia.org/wiki/AVCHD#Specifications
>
> My purpose is to
> - archive this on 25GB-50GB BD-R discs in an suited format for future
> editing
> - keep the source quality at relative high bit-rate (i.e AVC at 15 Mbps
> or MPEG-2 (I-frame?) at 25 Mbps)
> - playback compliance with BD-players.
> - keep by copy the DV LPCM audio if possible.

Working with interlaced content can be tricky, keep your masters even
if you think the blu-rays are OK at first sight.

> The closest samples as references I've found for encoding Blu-ray are
> these:
>
> 1) with x264 (video only)
> http://www.x264bluray.com/home/576i-pal

Which does do an interlaced encode - but tff.

It's possible DV is bff so you would need to check what your content is.

> 2) with ffmpeg
> http://forum.videohelp.com/threads/365667-FFmpeg-best-settings-to-encode-Blu-Ray?p=2332049&viewfull=1#post2332049

Not suitable for interlaced content.

> I want suggestions how to possibly "merge" relevant parameters from 1)
> x264 into 2) ffmpeg syntax ?

ffmpeg can use -x264-params tp pass things to libx264 just an example
pasted from old notes which doesn't mean it's correct and of course it's
for 709HD content with abnormally low bitrate.

-vcodec libx264 -b:v 10000k -preset veryslow -tune film -level 4.1 
-x264-params 
"bluray-compat=1:vbv-maxrate=11000:vbv-bufsize=30000:keyint=30:open-gop=1:slices=4:tff=1:colorprim=bt709:transfer=bt709:colormatrix=bt709:sar='1:1'"


> 3) As a first attempt I tried to apply 2) mostly as is, but didn't
> succeed to get LPCM audio copied:
> ffplay and VLC can playback the out video file SD-BD_x264.m2ts without
> Audio.

As lpcm doesn't work maybe truehd?  ISTR there was a gsoc project to encode.




More information about the ffmpeg-user mailing list