[FFmpeg-devel] [PATCH 11/11] Add ffmpeg presets for DVD, VCD, SVCD, DV targets.

Víctor Paesa victorpaesa
Fri Nov 12 22:26:56 CET 2010


Hi

On Fri, Nov 12, 2010 at 19:31, Stefano Sabatini wrote:

> diff --git a/ffpresets/ffmpeg-dv-pal.ffpreset b/ffpresets/ffmpeg-dv-pal.ffpreset
> new file mode 100644
> index 0000000..379b8e5
> --- /dev/null
> +++ b/ffpresets/ffmpeg-dv-pal.ffpreset
> @@ -0,0 +1,7 @@
> +# presets for DV + PAL
> +f=dv
> +s=720x576
> +pix_fmt=yuv420p
> +r=24000/1001

PAL is 25 Hz

> +ar=48000
> +ac=2

[...]

> diff --git a/ffpresets/ffmpeg-svcd-pal.ffpreset b/ffpresets/ffmpeg-svcd-pal.ffpreset
> new file mode 100644
> index 0000000..ad6db51
> --- /dev/null
> +++ b/ffpresets/ffmpeg-svcd-pal.ffpreset
> @@ -0,0 +1,15 @@
> +# presets for target SVCD + PAL
> +vcodec=mpeg2video
> +acodec=mp2
> +f=svcd
> +s=480x576
> +r=24000/1001

PAL is 25 Hz

> +g=15
> +b=2040000
> +maxrate=2516000
> +minrate=0 ?#1145000;
> +bufsize=1835008 # 224*1024*8;
> +flags=+scan_offset
> +ab=224000
> +ar=44100
> +packetsize=2324
> diff --git a/ffpresets/ffmpeg-vcd-pal.ffpreset b/ffpresets/ffmpeg-vcd-pal.ffpreset
> new file mode 100644
> index 0000000..7c44c01
> --- /dev/null
> +++ b/ffpresets/ffmpeg-vcd-pal.ffpreset
> @@ -0,0 +1,23 @@
> +# presets for VCD + PAL
> +vcodec=mpeg1video
> +acodec=mp2
> +f=vcd
> +s=352x288
> +r=24000/1001

PAL is 25 Hz

> +g=15
> +b=1150000
> +maxrate=1150000
> +minrate=1150000
> +bufsize=327680 ?# 40*1024*8;
> +ab=224000
> +ar=44100
> +ac=2
> +packetsize=2324
> +muxrate=1411200 # 2352 * 75 * 8;
> +
> +# We have to offset the PTS, so that it is consistent with the SCR.
> +# SCR starts at 36000, but the first two packs contain only padding
> +# and the first pack from the other stream, respectively, may also
> +# have been written before. ?So the real data starts at SCR
> +# 36000+3*1200.
> +mux_preload='(36000+3*1200) / 90000.0' #0.44

Regards,
V?ctor



More information about the ffmpeg-devel mailing list