Commit c7d7ab64 authored by mru's avatar mru

replace -f pgmyuv with -f image2 -vcodec pgmyuv


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12361 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 246c8292
...@@ -132,7 +132,7 @@ do_audio_decoding() ...@@ -132,7 +132,7 @@ do_audio_decoding()
do_libav() do_libav()
{ {
file=${outfile}libav.$1 file=${outfile}libav.$1
do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src -f s16le -i $pcm_src $2 $file do_ffmpeg $file -t 1 -y -qscale 10 -f image2 -vcodec pgmyuv -i $raw_src -f s16le -i $pcm_src $2 $file
do_ffmpeg_crc $file -i $file $3 do_ffmpeg_crc $file -i $file $3
} }
...@@ -140,14 +140,14 @@ do_libav() ...@@ -140,14 +140,14 @@ do_libav()
do_streamed_images() do_streamed_images()
{ {
file=${outfile}${1}pipe.$1 file=${outfile}${1}pipe.$1
do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src -f image2pipe $file do_ffmpeg $file -t 1 -y -qscale 10 -f image2 -vcodec pgmyuv -i $raw_src -f image2pipe $file
do_ffmpeg_crc $file -f image2pipe -i $file do_ffmpeg_crc $file -f image2pipe -i $file
} }
do_image_formats() do_image_formats()
{ {
file=${outfile}libav%02d.$1 file=${outfile}libav%02d.$1
$ffmpeg -t 0.5 -y -qscale 10 -f pgmyuv -i $raw_src $2 $3 -flags +bitexact $file $ffmpeg -t 0.5 -y -qscale 10 -f image2 -vcodec pgmyuv -i $raw_src $2 $3 -flags +bitexact $file
do_ffmpeg_crc $file $3 -i $file do_ffmpeg_crc $file $3 -i $file
do_md5sum ${outfile}libav02.$1 >> $logfile do_md5sum ${outfile}libav02.$1 >> $logfile
} }
...@@ -164,7 +164,7 @@ rm -f "$benchfile" ...@@ -164,7 +164,7 @@ rm -f "$benchfile"
# generate reference for quality check # generate reference for quality check
if [ -n "$do_ref" ]; then if [ -n "$do_ref" ]; then
do_ffmpeg_nocheck $raw_ref -y -f pgmyuv -i $raw_src -an -f rawvideo $raw_ref do_ffmpeg_nocheck $raw_ref -y -f image2 -vcodec pgmyuv -i $raw_src -an -f rawvideo $raw_ref
do_ffmpeg_nocheck $pcm_ref -y -ab 128k -ac 2 -ar 44100 -f s16le -i $pcm_src -f wav $pcm_ref do_ffmpeg_nocheck $pcm_ref -y -ab 128k -ac 2 -ar 44100 -f s16le -i $pcm_src -f wav $pcm_ref
fi fi
...@@ -452,7 +452,7 @@ fi ...@@ -452,7 +452,7 @@ fi
if [ -n "$do_rm" ] ; then if [ -n "$do_rm" ] ; then
file=${outfile}libav.rm file=${outfile}libav.rm
do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src -f s16le -i $pcm_src $file do_ffmpeg $file -t 1 -y -qscale 10 -f image2 -vcodec pgmyuv -i $raw_src -f s16le -i $pcm_src $file
# broken # broken
#do_ffmpeg_crc $file -i $file #do_ffmpeg_crc $file -i $file
fi fi
...@@ -501,7 +501,7 @@ fi ...@@ -501,7 +501,7 @@ fi
# streamed images # streamed images
# mjpeg # mjpeg
#file=${outfile}libav.mjpeg #file=${outfile}libav.mjpeg
#do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src $file #do_ffmpeg $file -t 1 -y -qscale 10 -f image2 -vcodec pgmyuv -i $raw_src $file
#do_ffmpeg_crc $file -i $file #do_ffmpeg_crc $file -i $file
if [ -n "$do_pbmpipe" ] ; then if [ -n "$do_pbmpipe" ] ; then
...@@ -518,13 +518,13 @@ fi ...@@ -518,13 +518,13 @@ fi
if [ -n "$do_gif" ] ; then if [ -n "$do_gif" ] ; then
file=${outfile}libav.gif file=${outfile}libav.gif
do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src -pix_fmt rgb24 $file do_ffmpeg $file -t 1 -y -qscale 10 -f image2 -vcodec pgmyuv -i $raw_src -pix_fmt rgb24 $file
#do_ffmpeg_crc $file -i $file #do_ffmpeg_crc $file -i $file
fi fi
if [ -n "$do_yuv4mpeg" ] ; then if [ -n "$do_yuv4mpeg" ] ; then
file=${outfile}libav.y4m file=${outfile}libav.y4m
do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src $file do_ffmpeg $file -t 1 -y -qscale 10 -f image2 -vcodec pgmyuv -i $raw_src $file
#do_ffmpeg_crc $file -i $file #do_ffmpeg_crc $file -i $file
fi fi
...@@ -600,7 +600,7 @@ conversions="yuv420p yuv422p yuv444p yuyv422 yuv410p yuv411p yuvj420p \ ...@@ -600,7 +600,7 @@ conversions="yuv420p yuv422p yuv444p yuyv422 yuv410p yuv411p yuvj420p \
monob pal8 yuv440p yuvj440p" monob pal8 yuv440p yuvj440p"
for pix_fmt in $conversions ; do for pix_fmt in $conversions ; do
file=${outfile}libav-${pix_fmt}.yuv file=${outfile}libav-${pix_fmt}.yuv
do_ffmpeg_nocheck $file -r 1 -t 1 -y -f pgmyuv -i $raw_src \ do_ffmpeg_nocheck $file -r 1 -t 1 -y -f image2 -vcodec pgmyuv -i $raw_src \
-f rawvideo -s 352x288 -pix_fmt $pix_fmt $raw_dst -f rawvideo -s 352x288 -pix_fmt $pix_fmt $raw_dst
do_ffmpeg $file -f rawvideo -s 352x288 -pix_fmt $pix_fmt -i $raw_dst \ do_ffmpeg $file -f rawvideo -s 352x288 -pix_fmt $pix_fmt -i $raw_dst \
-f rawvideo -s 352x288 -pix_fmt yuv444p $file -f rawvideo -s 352x288 -pix_fmt yuv444p $file
......
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