Commit 977ae304 authored by diego's avatar diego

Use a function for libav.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7198 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 0a1c3f65
...@@ -165,6 +165,14 @@ do_video_encoding() ...@@ -165,6 +165,14 @@ 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_libav()
{
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_crc $file -i $file $3
}
do_streamed_images() do_streamed_images()
{ {
file=${outfile}libav.$1 file=${outfile}libav.$1
...@@ -646,14 +654,10 @@ fi ...@@ -646,14 +654,10 @@ fi
if [ -n "$do_libav" ] ; then if [ -n "$do_libav" ] ; then
# avi # avi
file=${outfile}libav.avi do_libav avi
do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src -f s16le -i $pcm_src $file
do_ffmpeg_crc $file -i $file
# asf # asf
file=${outfile}libav.asf do_libav asf "-acodec mp2" "-r 25"
do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src -f s16le -i $pcm_src -acodec mp2 $file
do_ffmpeg_crc $file -i $file -r 25
# rm # rm
file=${outfile}libav.rm file=${outfile}libav.rm
...@@ -662,49 +666,31 @@ do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src -f s16le -i $pcm_src $f ...@@ -662,49 +666,31 @@ do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src -f s16le -i $pcm_src $f
#do_ffmpeg_crc $file -i $file #do_ffmpeg_crc $file -i $file
# mpegps # mpegps
file=${outfile}libav.mpg do_libav mpg
do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src -f s16le -i $pcm_src $file
do_ffmpeg_crc $file -i $file
# mpegts # mpegts
file=${outfile}libav.ts do_libav ts
do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src -f s16le -i $pcm_src $file
do_ffmpeg_crc $file -i $file
# swf (decode audio only) # swf (decode audio only)
file=${outfile}libav.swf do_libav swf "-acodec mp2"
do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src -f s16le -i $pcm_src -acodec mp2 $file
do_ffmpeg_crc $file -i $file
# ffm # ffm
file=${outfile}libav.ffm do_libav ffm
do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src -f s16le -i $pcm_src $file
do_ffmpeg_crc $file -i $file
# flv # flv
file=${outfile}libav.flv do_libav flv -an
do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src -f s16le -i $pcm_src -an $file
do_ffmpeg_crc $file -i $file
# mov # mov
file=${outfile}libav.mov do_libav mov "-acodec pcm_alaw"
do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src -f s16le -i $pcm_src -acodec pcm_alaw $file
do_ffmpeg_crc $file -i $file
# nut # nut
#file=${outfile}libav.nut #do_libav nut "-acodec mp2"
#do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src -f s16le -i $pcm_src -acodec mp2 $file
#do_ffmpeg_crc $file -i $file
# dv # dv
file=${outfile}libav.dv do_libav dv "-ar 48000 -r 25 -s pal -ac 2"
do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src -f s16le -i $pcm_src -ar 48000 -r 25 -s pal -ac 2 $file
do_ffmpeg_crc $file -i $file
# gxf # gxf
file=${outfile}libav.gxf do_libav gxf "-ar 48000 -r 25 -s pal -ac 1"
do_ffmpeg $file -t 1 -y -qscale 10 -f pgmyuv -i $raw_src -f s16le -i $pcm_src -ar 48000 -r 25 -s pal -ac 1 $file
do_ffmpeg_crc $file -i $file
#################### ####################
# streamed images # streamed images
......
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