[FFmpeg-cvslog] ffmpeg: Force 420 with target dvd and svcd.

Michael Niedermayer git at videolan.org
Thu Jun 16 23:12:15 CEST 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Jun 16 23:06:27 2011 +0200| [f6e2af4f5aed088d4926c2ceb320bb4bf514132b] | committer: Michael Niedermayer

ffmpeg: Force 420 with target dvd and svcd.

Fixes ticket283

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f6e2af4f5aed088d4926c2ceb320bb4bf514132b
---

 ffmpeg.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/ffmpeg.c b/ffmpeg.c
index a5b4322..a679fa4 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -4225,6 +4225,7 @@ static int opt_target(const char *opt, const char *arg)
 
         opt_frame_size("s", norm == PAL ? "480x576" : "480x480");
         opt_frame_rate("r", frame_rates[norm]);
+        opt_frame_pix_fmt("pix_fmt", "yuv420p");
         opt_default("g", norm == PAL ? "15" : "18");
 
         opt_default("b", "2040000");
@@ -4247,6 +4248,7 @@ static int opt_target(const char *opt, const char *arg)
 
         opt_frame_size("vcodec", norm == PAL ? "720x576" : "720x480");
         opt_frame_rate("r", frame_rates[norm]);
+        opt_frame_pix_fmt("pix_fmt", "yuv420p");
         opt_default("g", norm == PAL ? "15" : "18");
 
         opt_default("b", "6000000");



More information about the ffmpeg-cvslog mailing list