[FFmpeg-user] Issue with encoding and rotating
Igor Y
igory at sjinnovation.com
Wed Nov 14 09:23:27 CET 2012
Hi,
I am using this version of ffmpeg:
FFmpeg version SVN-r26381, Copyright (c) 2000-2011 the FFmpeg developers
built on Jan 15 2011 17:39:05 with gcc 4.1.2 20080704 (Red Hat 4.1.2-48)
I am trying to rotate and encode video with codec H.264 next line:
ffmpeg -i $some_video -y -vcodec libx264 -vpre medium -sameq -vf
"transpose=1" $new_video 2>&1
And it runs without errors. it return:
array(
(int) 0 => 'FFmpeg version SVN-r26381, Copyright (c) 2000-2011 the
FFmpeg developers',
(int) 1 => ' built on Jan 15 2011 17:39:05 with gcc 4.1.2 20080704
(Red Hat 4.1.2-48)',
(int) 2 => ' configuration: --prefix=/usr/local/cpffmpeg
--enable-shared --enable-nonfree --enable-gpl --enable-pthreads
--enable-libopencore-amrnb --enable-decoder=liba52
--enable-libopencore-amrwb --enable-libfaac --enable-libmp3lame
--enable-libtheora --enable-libvorbis --enable-libx264
--enable-libxvid --extra-cflags=-I/usr/local/cpffmpeg/include/
--extra-ldflags=-L/usr/local/cpffmpeg/lib --enable-version3',
(int) 3 => ' libavutil 50.36. 0 / 50.36. 0',
(int) 4 => ' libavcore 0.16. 1 / 0.16. 1',
(int) 5 => ' libavcodec 52.108. 0 / 52.108. 0',
(int) 6 => ' libavformat 52.93. 0 / 52.93. 0',
(int) 7 => ' libavdevice 52. 2. 3 / 52. 2. 3',
(int) 8 => ' libavfilter 1.74. 0 / 1.74. 0',
(int) 9 => ' libswscale 0.12. 0 / 0.12. 0',
(int) 10 => 'Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
'/home/devmana/public_html/collaborative-motion/app/webroot/uploads/4/videos/121113_061131_121015_021013_trim_ZoWCJhi.MOV':',
(int) 11 => ' Metadata:',
(int) 12 => ' major_brand : qt',
(int) 13 => ' minor_version : 512',
(int) 14 => ' compatible_brands: qt',
(int) 15 => ' creation_time : 1970-01-01 00:00:00',
(int) 16 => ' date : 2012-10-02T11:24:51+0300',
(int) 17 => ' date-ukr : 2012-10-02T11:24:51+0300',
(int) 18 => ' encoder : Lavf52.93.0',
(int) 19 => ' Duration: 00:00:00.03, start: 0.000000, bitrate: 18456 kb/s',
(int) 20 => ' Stream #0.0(eng): Video: mpeg4, yuv420p, 1280x720
[PAR 1:1 DAR 16:9], 18264 kb/s, 30 fps, 30 tbr, 30 tbn, 30 tbc',
(int) 21 => ' Metadata:',
(int) 22 => ' creation_time : 1970-01-01 00:00:00',
(int) 23 => '[buffer @ 0x98caba0] w:1280 h:720 pixfmt:yuv420p',
(int) 24 => '[transpose @ 0x98cd2e0] w:1280 h:720 dir:1 -> w:720
h:1280 rotation:clockwise vflip:0',
(int) 25 => '[libx264 @ 0x98c6f80] using SAR=1/1',
(int) 26 => '[libx264 @ 0x98c6f80] using cpu capabilities: none!',
(int) 27 => '[libx264 @ 0x98c6f80] profile High, level 3.1',
(int) 28 => '[libx264 @ 0x98c6f80] 264 - core 107 - H.264/MPEG-4 AVC
codec - Copyleft 2003-2010 - http://www.videolan.org/x264.html -
options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7
psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1
8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2
threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0
constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1
weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40
intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=200
ratetol=1.0 qcomp=0.60 qpmin=10 qpmax=51 qpstep=4 ip_ratio=1.41
aq=1:1.00',
(int) 29 => 'Output #0, mov, to
'/home/devmana/public_html/collaborative-motion/app/webroot/uploads/4/videos/t/test_vide_ipod.MOV':',
(int) 30 => ' Metadata:',
(int) 31 => ' major_brand : qt',
(int) 32 => ' minor_version : 512',
(int) 33 => ' compatible_brands: qt',
(int) 34 => ' creation_time : 1970-01-01 00:00:00',
(int) 35 => ' date : 2012-10-02T11:24:51+0300',
(int) 36 => ' date-ukr : 2012-10-02T11:24:51+0300',
(int) 37 => ' encoder : Lavf52.93.0',
(int) 38 => ' Stream #0.0(eng): Video: libx264, yuv420p, 720x1280
[PAR 1:1 DAR 9:16], q=10-51, 200 kb/s, 30 tbn, 30 tbc',
(int) 39 => ' Metadata:',
(int) 40 => ' creation_time : 1970-01-01 00:00:00',
(int) 41 => 'Stream mapping:',
(int) 42 => ' Stream #0.0 -> #0.0',
(int) 43 => 'Press [q] to stop encoding',
(int) 44 => 'frame= 1 fps= 0 q=-1.0 Lsize= 3kB
time=10000000000.00 bitrate= 0.0kbits/s',
(int) 45 => 'video:3kB audio:0kB global headers:0kB muxing overhead
29.851880%',
(int) 46 => 'frame I:1 Avg QP:45.80 size: 1939',
(int) 47 => '[libx264 @ 0x98c6f80] mb I I16..4: 17.5% 82.5% 0.0%',
(int) 48 => '[libx264 @ 0x98c6f80] final ratefactor: 54.27',
(int) 49 => '[libx264 @ 0x98c6f80] 8x8 transform intra:82.5%',
(int) 50 => '[libx264 @ 0x98c6f80] coded y,uvDC,uvAC intra: 3.4% 11.4% 0.0%',
(int) 51 => '[libx264 @ 0x98c6f80] i16 v,h,dc,p: 25% 59% 6% 11%',
(int) 52 => '[libx264 @ 0x98c6f80] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 34%
5% 59% 1% 0% 0% 0% 0% 0%',
(int) 53 => '[libx264 @ 0x98c6f80] i8c dc,h,v,p: 99% 1% 0% 0%',
(int) 54 => '[libx264 @ 0x98c6f80] kb/s:465.36'
But when I play video it played without pictures only audio.
Can someone help me with that issue?
More information about the ffmpeg-user
mailing list