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

Stefano Sabatini stefano.sabatini-lala
Fri Nov 12 19:31:49 CET 2010


---
 ffpresets/ffmpeg-dv-film.ffpreset   |    7 +++++++
 ffpresets/ffmpeg-dv-ntsc.ffpreset   |    7 +++++++
 ffpresets/ffmpeg-dv-pal.ffpreset    |    7 +++++++
 ffpresets/ffmpeg-dvd-film.ffpreset  |   18 ++++++++++++++++++
 ffpresets/ffmpeg-dvd-ntsc.ffpreset  |   18 ++++++++++++++++++
 ffpresets/ffmpeg-dvd-pal.ffpreset   |   19 +++++++++++++++++++
 ffpresets/ffmpeg-svcd-film.ffpreset |   15 +++++++++++++++
 ffpresets/ffmpeg-svcd-ntsc.ffpreset |   15 +++++++++++++++
 ffpresets/ffmpeg-svcd-pal.ffpreset  |   15 +++++++++++++++
 ffpresets/ffmpeg-vcd-film.ffpreset  |   23 +++++++++++++++++++++++
 ffpresets/ffmpeg-vcd-ntsc.ffpreset  |   23 +++++++++++++++++++++++
 ffpresets/ffmpeg-vcd-pal.ffpreset   |   23 +++++++++++++++++++++++
 12 files changed, 190 insertions(+), 0 deletions(-)
 create mode 100644 ffpresets/ffmpeg-dv-film.ffpreset
 create mode 100644 ffpresets/ffmpeg-dv-ntsc.ffpreset
 create mode 100644 ffpresets/ffmpeg-dv-pal.ffpreset
 create mode 100644 ffpresets/ffmpeg-dvd-film.ffpreset
 create mode 100644 ffpresets/ffmpeg-dvd-ntsc.ffpreset
 create mode 100644 ffpresets/ffmpeg-dvd-pal.ffpreset
 create mode 100644 ffpresets/ffmpeg-svcd-film.ffpreset
 create mode 100644 ffpresets/ffmpeg-svcd-ntsc.ffpreset
 create mode 100644 ffpresets/ffmpeg-svcd-pal.ffpreset
 create mode 100644 ffpresets/ffmpeg-vcd-film.ffpreset
 create mode 100644 ffpresets/ffmpeg-vcd-ntsc.ffpreset
 create mode 100644 ffpresets/ffmpeg-vcd-pal.ffpreset

diff --git a/ffpresets/ffmpeg-dv-film.ffpreset b/ffpresets/ffmpeg-dv-film.ffpreset
new file mode 100644
index 0000000..28f9189
--- /dev/null
+++ b/ffpresets/ffmpeg-dv-film.ffpreset
@@ -0,0 +1,7 @@
+# presets for DV + film
+f=dv
+s=720x480
+pix_fmt=yuv411p
+r=24000/1001
+ar=48000
+ac=2
diff --git a/ffpresets/ffmpeg-dv-ntsc.ffpreset b/ffpresets/ffmpeg-dv-ntsc.ffpreset
new file mode 100644
index 0000000..ce9cb22
--- /dev/null
+++ b/ffpresets/ffmpeg-dv-ntsc.ffpreset
@@ -0,0 +1,7 @@
+# presets for DV + NTSC
+f=dv
+s=720x480
+pix_fmt=yuv411p
+r=30000/1001
+ar=48000
+ac=2
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
+ar=48000
+ac=2
diff --git a/ffpresets/ffmpeg-dvd-film.ffpreset b/ffpresets/ffmpeg-dvd-film.ffpreset
new file mode 100644
index 0000000..0a6abd1
--- /dev/null
+++ b/ffpresets/ffmpeg-dvd-film.ffpreset
@@ -0,0 +1,18 @@
+# preset for DVD film
+codec=mpeg2video
+acodec=ac3
+f=dvd
+s=720x576
+r=24000/1001
+g=18 
+b=6000000
+maxrate=9000000
+minrate=0
+bufsize=1835008 # 224*1024*8;
+# from www.mpucoder.com: DVD sectors contain 2048 bytes of data, this
+#  is also the size of one pack.
+packetsize=2048  
+# from mplex project: data_rate = 1260000. mux_rate = data_rate * 8
+muxrate=10080000
+ab=448000
+ar=48000
diff --git a/ffpresets/ffmpeg-dvd-ntsc.ffpreset b/ffpresets/ffmpeg-dvd-ntsc.ffpreset
new file mode 100644
index 0000000..24c53f3
--- /dev/null
+++ b/ffpresets/ffmpeg-dvd-ntsc.ffpreset
@@ -0,0 +1,18 @@
+# preset for DVD NTSC
+codec=mpeg2video
+acodec=ac3
+f=dvd
+s=720x576
+r=30000/1001
+g=18
+b=6000000
+maxrate=9000000
+minrate=0
+bufsize=1835008 # 224*1024*8;
+# from www.mpucoder.com: DVD sectors contain 2048 bytes of data, this
+#  is also the size of one pack.
+packetsize=2048  
+# from mplex project: data_rate = 1260000. mux_rate = data_rate * 8
+muxrate=10080000
+ab=448000
+ar=48000
diff --git a/ffpresets/ffmpeg-dvd-pal.ffpreset b/ffpresets/ffmpeg-dvd-pal.ffpreset
new file mode 100644
index 0000000..621e503
--- /dev/null
+++ b/ffpresets/ffmpeg-dvd-pal.ffpreset
@@ -0,0 +1,19 @@
+# preset for DVD pal
+vcodec=mpeg2video
+acodec=ac3
+f=dvd
+s=720x576
+r=25
+g=15 
+b=6000000
+maxrate=9000000
+minrate=0
+# 224*1024*8;
+bufsize=1835008
+# from www.mpucoder.com: DVD sectors contain 2048 bytes of data, this
+#  is also the size of one pack.
+packetsize=2048  
+# from mplex project: data_rate = 1260000. mux_rate = data_rate * 8
+muxrate=10080000
+ab=448000
+ar=48000
diff --git a/ffpresets/ffmpeg-svcd-film.ffpreset b/ffpresets/ffmpeg-svcd-film.ffpreset
new file mode 100644
index 0000000..656254e
--- /dev/null
+++ b/ffpresets/ffmpeg-svcd-film.ffpreset
@@ -0,0 +1,15 @@
+# presets for target SVCD + film
+vcodec=mpeg2video
+acodec=mp2
+f=svcd
+s=480x480
+r=24
+g=18
+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-svcd-ntsc.ffpreset b/ffpresets/ffmpeg-svcd-ntsc.ffpreset
new file mode 100644
index 0000000..c19c950
--- /dev/null
+++ b/ffpresets/ffmpeg-svcd-ntsc.ffpreset
@@ -0,0 +1,15 @@
+# presets for target SVCD + NTSC
+vcodec=mpeg2video
+acodec=mp2
+f=svcd
+s=480x480
+r=30000/1001
+g=18
+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-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
+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-film.ffpreset b/ffpresets/ffmpeg-vcd-film.ffpreset
new file mode 100644
index 0000000..81d89d3
--- /dev/null
+++ b/ffpresets/ffmpeg-vcd-film.ffpreset
@@ -0,0 +1,23 @@
+# presets for VCD + film
+vcodec=mpeg1video
+acodec=mp2
+f=vcd
+s=352x240
+r=24
+g=18
+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
diff --git a/ffpresets/ffmpeg-vcd-ntsc.ffpreset b/ffpresets/ffmpeg-vcd-ntsc.ffpreset
new file mode 100644
index 0000000..ffd80a6
--- /dev/null
+++ b/ffpresets/ffmpeg-vcd-ntsc.ffpreset
@@ -0,0 +1,23 @@
+# presets for VCD + NTSC
+vcodec=mpeg1video
+acodec=mp2
+f=vcd
+s=352x240
+r=30000/1001
+g=18
+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
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
+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
-- 
1.7.1




More information about the ffmpeg-devel mailing list