Commit 66c83f7f authored by diego's avatar diego

Make do_video_decoding general enough to accomodate all cases.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7211 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 53918c47
...@@ -157,7 +157,7 @@ do_ffmpeg_nocheck() ...@@ -157,7 +157,7 @@ do_ffmpeg_nocheck()
do_video_decoding() do_video_decoding()
{ {
do_ffmpeg $raw_dst -y -i $file -f rawvideo $@ $raw_dst do_ffmpeg $raw_dst -y $1 -i $file -f rawvideo $2 $raw_dst
} }
do_video_encoding() do_video_encoding()
...@@ -242,7 +242,7 @@ do_video_decoding ...@@ -242,7 +242,7 @@ do_video_decoding
do_video_encoding mpeg2.mpg "-qscale 10" "-vcodec mpeg2video -idct int -dct int -f mpeg1video" do_video_encoding mpeg2.mpg "-qscale 10" "-vcodec mpeg2video -idct int -dct int -f mpeg1video"
# mpeg2 decoding # mpeg2 decoding
do_ffmpeg $raw_dst -y -idct int -i $file -f rawvideo $raw_dst do_video_decoding "-idct int"
# mpeg2 encoding interlaced # mpeg2 encoding interlaced
do_video_encoding mpeg2i.mpg "-qscale 10" "-vcodec mpeg2video -f mpeg1video -flags +ildct+ilme" do_video_encoding mpeg2i.mpg "-qscale 10" "-vcodec mpeg2video -f mpeg1video -flags +ildct+ilme"
...@@ -351,7 +351,7 @@ if [ -n "$do_huffyuv" ] ; then ...@@ -351,7 +351,7 @@ if [ -n "$do_huffyuv" ] ; then
do_video_encoding huffyuv.avi "" "-an -vcodec huffyuv -pix_fmt yuv422p" do_video_encoding huffyuv.avi "" "-an -vcodec huffyuv -pix_fmt yuv422p"
# huffyuv decoding # huffyuv decoding
do_video_decoding -strict -2 -pix_fmt yuv420p do_video_decoding "" "-strict -2 -pix_fmt yuv420p"
fi fi
################################### ###################################
...@@ -430,7 +430,7 @@ if [ -n "$do_mjpeg" ] ; then ...@@ -430,7 +430,7 @@ if [ -n "$do_mjpeg" ] ; then
do_video_encoding mjpeg.avi "-qscale 10" "-an -vcodec mjpeg -pix_fmt yuvj420p" do_video_encoding mjpeg.avi "-qscale 10" "-an -vcodec mjpeg -pix_fmt yuvj420p"
# mjpeg decoding # mjpeg decoding
do_video_decoding -pix_fmt yuv420p do_video_decoding "" "-pix_fmt yuv420p"
fi fi
################################### ###################################
...@@ -448,7 +448,7 @@ if [ -n "$do_jpegls" ] ; then ...@@ -448,7 +448,7 @@ if [ -n "$do_jpegls" ] ; then
do_video_encoding jpegls.avi "" "-an -vcodec jpegls -vtag MJPG" do_video_encoding jpegls.avi "" "-an -vcodec jpegls -vtag MJPG"
# jpeg ls decoding # jpeg ls decoding
do_video_decoding -pix_fmt yuv420p do_video_decoding "" "-pix_fmt yuv420p"
fi fi
################################### ###################################
...@@ -511,7 +511,7 @@ if [ -n "$do_snow" ] ; then ...@@ -511,7 +511,7 @@ if [ -n "$do_snow" ] ; then
do_video_encoding snow.avi "-strict -2" "-an -vcodec snow -qscale 2 -flags +qpel -me iter -dia_size 2 -cmp 12 -subcmp 12 -s 128x64" do_video_encoding snow.avi "-strict -2" "-an -vcodec snow -qscale 2 -flags +qpel -me iter -dia_size 2 -cmp 12 -subcmp 12 -s 128x64"
# snow decoding # snow decoding
do_video_decoding -s 352x288 do_video_decoding "" "-s 352x288"
fi fi
################################### ###################################
...@@ -529,7 +529,7 @@ if [ -n "$do_dv" ] ; then ...@@ -529,7 +529,7 @@ if [ -n "$do_dv" ] ; then
do_video_encoding dv.dv "-dct int" "-s pal -an" do_video_encoding dv.dv "-dct int" "-s pal -an"
# dv decoding # dv decoding
do_video_decoding -s cif do_video_decoding "" "-s cif"
fi fi
################################### ###################################
...@@ -538,7 +538,7 @@ if [ -n "$do_dv50" ] ; then ...@@ -538,7 +538,7 @@ if [ -n "$do_dv50" ] ; then
do_video_encoding dv.dv "-dct int" "-s pal -pix_fmt yuv422p -an" do_video_encoding dv.dv "-dct int" "-s pal -pix_fmt yuv422p -an"
# dv50 decoding # dv50 decoding
do_video_decoding -s cif -pix_fmt yuv420p do_video_decoding "" "-s cif -pix_fmt yuv420p"
fi fi
...@@ -548,7 +548,7 @@ if [ -n "$do_svq1" ] ; then ...@@ -548,7 +548,7 @@ if [ -n "$do_svq1" ] ; then
do_video_encoding svq1.mov "" "-an -vcodec svq1 -qscale 3 -pix_fmt yuv410p" do_video_encoding svq1.mov "" "-an -vcodec svq1 -qscale 3 -pix_fmt yuv410p"
# svq1 decoding # svq1 decoding
do_video_decoding -pix_fmt yuv420p do_video_decoding "" "-pix_fmt yuv420p"
fi fi
################################### ###################################
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment