반응형

ffmpeg_odroid

./configure --target-os=linux --arch=arm \

--prefix=/home/odroid/work/ffmpeg/ffmpeg_orig/out \

--enable-shared --enable-gpl --enable-nonfree --enable-libfaac --enable-ffplay \

--enable-asm --arch=armv7l --enable-libfdk-aac --enable-libmp3lame --enable-libx264 --enable-neon




ffmpeg_libnvenc


#!/bin/sh


./configure --enable-libx264 --enable-libmp3lame --enable-gpl --enable-ffplay --prefix=/home/messijeon/hoho/work/ffmpeg/ffmpeg_libnvenc/out \

--disable-static --enable-shared --enable-filter=drawtext --enable-gpl --enable-nonfree --enable-encoder=nvenc --enable-libnvenc \

--enable-version3 --enable-libass --enable-libmp3lame --enable-libopenjpeg \

--enable-libfaac --enable-libfdk-aac --enable-x11grab --enable-opengl \

--cpu=native

#./configure --enable-libx264 --enable-libmp3lame --enable-gpl --prefix=/home/messijeon/hoho/work/ffmpeg.13.02.15/out --enable-shared --enable-filter=drawtext

#--enable-libstagefright-h264

#--disable-avfilter

#--enable-libfreetype




ffmpeg_orig


#!/bin/sh


./configure --enable-libx264 --enable-libmp3lame --enable-gpl --enable-ffplay --prefix=/home/messijeon/hoho/work/ffmpeg/ffmpeg/out \

--disable-static --enable-shared --enable-filter=drawtext --enable-gpl --enable-nonfree --enable-encoder=nvenc --enable-nvenc \

--enable-version3 --enable-libass --enable-libmp3lame --enable-libopenjpeg \

--enable-libfaac --enable-libfdk-aac --enable-x11grab --enable-opengl \


#./configure --enable-libx264 --enable-libmp3lame --enable-gpl --prefix=/home/messijeon/hoho/work/ffmpeg.13.02.15/out --enable-shared --enable-filter=drawtext

#--enable-libstagefright-h264

#--disable-avfilter

#--enable-libfreetype




gst-launch -e v4l2src device=/dev/video0 ! 'video/x-raw-yuv,width=100,height=100,framerate=30/1' ! \

nv_omx_h264enc quality-level=2 ! mp4mux ! filesink location=./test.mp4



gst-launch filesrc location="./big2.mp4" typefind=true ! mp4mux name=demux ! queue ! vpudec ! mfw_ipucsc \

! 'video/x-raw-yuv, width=(int)720, height=(int)480' ! vpuenc codec=avc \

! matroskamux name=mux ! filesink location=output_media_file.mk


gst-launch filesrc location="./big2.mp4" ! qtdemux name=demux \

demux.video_00 ! queue ! nv_omx_h264dec ! theoraenc !  mux. -v -e


MPEG-4 Decode to H.264 Encode

gst-launch filesrc location="./psy_gangnam.mp4" ! qtdemux name=demux \

demux.video_00 ! queue ! nv_omx_mpeg4dec ! nv_omx_h264enc ! qtmux \

name=mux ! filesink location="./outmpeg4-h264.mp4" demux.audio_00 ! \

queue ! aacparse ! mux.audio_00 -v -e


MPEG-4 Decode to VP8 Encode

gst-launch filesrc location="./psy_gangnam.mp4" ! qtdemux name=demux \

demux.video_00 ! queue ! nv_omx_mpeg4dec ! nv_omx_vp8enc ! qtmux \

name=mux ! filesink location="./outmpeg4-vp8.mp4" demux.audio_00 ! \

queue ! aacparse ! mux.audio_00 -v -e


H.264 Decode to VP8 Encode

gst-launch filesrc location="./big.mp4" ! qtdemux name=demux \

demux.video_00 ! queue ! nv_omx_h264dec ! nv_omx_vp8enc ! qtmux \

name=mux ! filesink location="./outh264-vp8.mp4" demux.audio_00 ! \

queue ! aacparse ! mux.audio_00 -v -e


Size change.

gst-launch-0.10 filesrc location=gain-h264.mp4 ! qtdemux name=mux \
! nv_omx_h264dec ! 'video/x-nv-yuv' ! nvvidconv ! 'video/x-nv-yuv, \
width=640, height=480' ! nv_omx_h264enc ! qtmux ! filesink \
location=test.mp4 -v -e

date +%s.%N;./ffmpeg -i ./gain-h264.mp4 -codec:v libh264 -s 640x480 -an -y gain2.mp4;date +%s.%N


./ffmpeg -i ~/homov/big.mp4 -codec:v libnvenc -g 150 -qcomp 0.7 -qmin 10 -qmax 51 -qdiff 4 -subq 6 -me_range 16 -i_qfactor 0.714286 -an -y big2.mp4




성능 비교

date +%s.%N;gst-launch-0.10 filesrc location=/home/ubuntu/homov/gain-h264.mp4 ! qtdemux name=mux \
! nv_omx_h264dec ! 'video/x-nv-yuv' ! nvvidconv ! 'video/x-nv-yuv, \
width=640, height=480' ! nv_omx_h264enc ! qtmux ! filesink \
location=resize.mp4 -v -e;date +%s.%N


date +%s.%N;./ffmpeg -i /home/ubuntu/homov/gain-h264.mp4 -codec:v libx264 -s 640x480 -aspect 4:3 -b:v 4000k -an -y gain640x480.mp4;date +%s.%N


반응형

'멀티미디어' 카테고리의 다른 글

gstreamer 사용(Transcoding command) -------------  (0) 2015.01.19
Mpeg4 DashPlayer in MSM8974 (CodeAurora)  (0) 2014.11.28
Android CameraToMpegTest  (0) 2014.11.25
Posted by Real_G