Commit 2ddaeb5d authored by diego's avatar diego

Use a function for streamed images.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7196 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 703629e7
...@@ -165,6 +165,13 @@ do_video_encoding() ...@@ -165,6 +165,13 @@ do_video_encoding()
do_ffmpeg $file -y $1 -f pgmyuv -i $raw_src $2 $file do_ffmpeg $file -y $1 -f pgmyuv -i $raw_src $2 $file
} }
do_streamed_images()
{
file=${outfile}libav.$1
do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src -f image2pipe $file
do_ffmpeg_crc $file -f image2pipe -i $file
}
do_audio_only() do_audio_only()
{ {
file=${outfile}libav.$1 file=${outfile}libav.$1
...@@ -699,19 +706,13 @@ do_ffmpeg_crc $file -i $file ...@@ -699,19 +706,13 @@ do_ffmpeg_crc $file -i $file
#do_ffmpeg_crc $file -i $file #do_ffmpeg_crc $file -i $file
# pbmpipe # pbmpipe
file=${outfile}libav.pbm do_streamed_images pbm
do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src -f image2pipe $file
do_ffmpeg_crc $file -f image2pipe -i $file
# pgmpipe # pgmpipe
file=${outfile}libav.pgm do_streamed_images pgm
do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src -f image2pipe $file
do_ffmpeg_crc $file -f image2pipe -i $file
# ppmpipe # ppmpipe
file=${outfile}libav.ppm do_streamed_images ppm
do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src -f image2pipe $file
do_ffmpeg_crc $file -f image2pipe -i $file
# gif # gif
file=${outfile}libav.gif file=${outfile}libav.gif
......
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