背景:
阅读新闻
Linux即时通讯开发---S3C6410编解码测试
[日期:2012-09-28] 来源:Linux社区 作者:fanxiaojun [字体:]
硬件环境:
开发板:mini6410
CPU:arm s3c6410 主频(532,666)
软件环境:
OS: linux
指令集:armv6
硬件编解码:未启用
1:xin.3gp(320*240)----->out.3gp(176*144)
命令参数1:
./ffmpeg -i /mnt/xin.3gp -vcodec libx264 -b 60k -flags +loop -cmp +chroma -deblockalpha 0 -deblockbeta 0 -crf 24 -refs 1 -coder 0 -me_range 16 -subq 5 -g 250 -keyint_min 25 -level 30 -qmin 10 -qmax 51 -trellis 2 -sc_threshold 40 -i_qfactor 0.71 -s 176x144 -acodec libamr_wb -ac 1 -ar 16000 -ab 14250 /mnt/out.3gp
CPU主频 665: fps=6 bitrate=47.49kb/s
CPU主频 530: fps=5 bitrate=47.49kb/s
命令参数2:
./ffmpeg -i /mnt/xin.3gp -vcodec libx264 -b 60k -flags -loop -cmp +chroma -partitions -parti8x8-parti4x4-partp8x8-partb8x8 -me_method dia -subq 0 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 0 -i_qfactor 0.71 -b_strategy 0 -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -bf 0 -refs 1 -directpred 1 -trellis 0 -flags2 -bpyramid-mixed_refs-wpred-dct8x8+fastpskip-mbtree -wpredp 0 -aq_mode 0 -rc_lookahead 0 -s 176x144 -acodec libamr_wb -ac 1 -ar 16000 -ab 14250 /mnt/out.3gp
CPU主频 665: fps=9 bitrate=64.37kb/s
CPU主频 530: fps=8 bitrate=64.37kb/s
2:foreman.qcif(176x144)----->out4.avi(176x144)
命令参数1:
./ffmpeg -y -s 176x144 -i /mnt/foreman.qcif -r 25 -vcodec libx264 -b 60k -flags +loop -cmp +chroma -deblockalpha 0 -deblockbeta 0 -crf 24 -refs 1 -coder 0 -me_range 16 -subq 5 -g 250 -keyint_min 25 -level 30 -qmin 10 -qmax 51 -trellis 2 -sc_threshold 40 -i_qfactor 0.71 /mnt/out4.avi
CPU主频 665: fps=8 bitrate=139.12kb/s
CPU主频 530: fps=7 bitrate=139.12kb/s
命令参数2:
./ffmpeg -y -s 176x144 -i /mnt/foreman.qcif -r 25 -vcodec libx264 -coder 0 -flags -loop -cmp +chroma -partitions -parti8x8-parti4x4-partp8x8-partb8x8 -me_method dia -subq 0 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 0 -i_qfactor 0.71 -b_strategy 0 -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -bf 0 -refs 1 -directpred 1 -trellis 0 -flags2 -bpyramid-mixed_refs-wpred-dct8x8+fastpskip-mbtree -wpredp 0 -aq_mode 0 -rc_lookahead 0 /mnt/out4.avi
CPU主频 665: fps=21 bitrate=210.93kb/s
CPU主频 530: fps=18 bitrate=210.93kb/s
3:320x240.yuv(320x240)----->out3.avi(320x240)
命令参数1:
./ffmpeg -y -s 320x240 -i /mnt/320x240.yuv -r 25 -vcodec libx264 -b 60k -flags +loop -cmp +chroma -deblockalpha 0 -deblockbeta 0 -crf 24 -refs 1 -coder 0 -me_range 16 -subq 5 -g 250 -keyint_min 25 -level 30 -qmin 10 -qmax 51 -trellis 2 -sc_threshold 40 -i_qfactor 0.71 /mnt/out3.avi
CPU主频 665: fps=6 bitrate=214.66kb/s
CPU主频 530: fps=4~5 bitrate=214.66kb/s
命令参数2:
./ffmpeg -y -s 320x240 -i /mnt/320x240.yuv -r 25 -vcodec libx264 -coder 0 -flags -loop -cmp +chroma -partitions -parti8x8-parti4x4-partp8x8-partb8x8 -me_method dia -subq 0 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 0 -i_qfactor 0.71 -b_strategy 0 -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -bf 0 -refs 1 -directpred 1 -trellis 0 -flags2 -bpyramid-mixed_refs-wpred-dct8x8+fastpskip-mbtree -wpredp 0 -aq_mode 0 -rc_lookahead 0 /mnt/out3.avi
CPU主频 665: fps=8 bitrate=204.76kb/s
CPU主频 530: fps=7 bitrate=204.76kb/s
解码 x264----->yuv
3:out3.avi(320x240)----->out10.yuv(320x240)
命令参数:
./ffmpeg -y -i out3.avi -s 320x240 out10.yuv
CPU主频 665:fps=40 bitrate=23040kb/s
CPU主频 530:fps=21 bitrate=23040kb/s
即时通讯包: