Quantcast
Channel: FedoraForum.org
Viewing all articles
Browse latest Browse all 35964

Using ffmpeg

$
0
0
I have used ffmpeg in the past to convert from various formats to ogg (vorbis/theora/dirac). I have been playing with it today in the hope of using again to do some conversions, but I am running into problems.

If I run:
PHP Code:

 ffmpeg --i fa.mp4 -codec:a libvorbis -codec:v libschroedinger test.ogg 

or
PHP Code:

 ffmpeg --i fa.mp4 -codec:a libvorbis -codec:v dirac test.ogg 

I get the following error:

PHP Code:

$ffmpeg --i fa.mp4 -codec:a libvorbis -codec:v libschroedinger test.ogg

ffmpeg version 1.0.5 Copyright 
(c2000-2012 the FFmpeg developers
  built on Mar 10 2013 12
:20:58 with gcc 4.7.2 (GCC20121109 (Red Hat 4.7.2-8)
  
configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' --enable-bzlib --disable-crystalhd --enable-frei0r --enable-gnutls --enable-libass --enable-libcdio --enable-libcelt --enable-libdc1394 --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopencv --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect
  libavutil      51. 73.101 
51. 73.101
  libavcodec     54. 59.100 
54. 59.100
  libavformat    54. 29.104 
54. 29.104
  libavdevice    54.  2.101 
54.  2.101
  libavfilter     3. 17.100 
/  3. 17.100
  libswscale      2.  1.101 
/  2.  1.101
  libswresample   0. 15.100 
/  0. 15.100
  libpostproc    52.  0.100 
52.  0.100
Input 
#0, mov,mp4,m4a,3gp,3g2,mj2, from 'fa.mp4':
  
Metadata:
    
major_brand     mp42
    minor_version   
0
    compatible_brands
isommp42
    creation_time   
2012-03-09 16:54:46
  Duration
00:07:53.76start0.000000bitrate101 kb/s
    Stream 
#0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 320x240, 18 kb/s, 25 fps, 25 tbr, 50 tbn, 50 tbc
    
Metadata:
      
creation_time   1970-01-01 00:00:00
      handler_name    
VideoHandler
    Stream 
#0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 80 kb/s
    
Metadata:
      
creation_time   2012-03-09 16:54:46
      handler_name    
IsoMedia File Produced by Google5-11-2011
SCHRO
ERRORschrovideoformat.c(35): schro_video_format_validate10.3.7horizontal clean area is not legal (clean_width left_offset width)
SCHROERRORschrovideoformat.c(40): schro_video_format_validate10.3.7vertical clean area is not legal (clean_height top_offset height)
SCHROERRORschrovideoformat.c(44): schro_video_format_validateresetting clean area to frame size
[ogg 0x14ce360Unsupported codec id in stream 0
Output 
#0, ogg, to 'test.ogg':
  
Metadata:
    
major_brand     mp42
    minor_version   
0
    compatible_brands
isommp42
    encoder         
Lavf54.29.104
    Stream 
#0:0(und): Video: dirac, yuv420p, 320x240, q=2-31, 200 kb/s, 25 tbn, 25 tbc
    
Metadata:
      
creation_time   1970-01-01 00:00:00
      handler_name    
VideoHandler
    Stream 
#0:1(und): Audio: vorbis, 44100 Hz, stereo, flt
    
Metadata:
      
creation_time   2012-03-09 16:54:46
      handler_name    
IsoMedia File Produced by Google5-11-2011
Stream mapping
:
  
Stream #0:0 -> #0:0 (h264 -> libschroedinger)
  
Stream #0:1 -> #0:1 (aac -> libvorbis)
Could not write header for output file #0 (incorrect codec parameters ?): Operation not permitted 

I cannot figure out what is wrong, any suggestions? ffmpeg seems to have changed a lot since I have used it and I think I might have some options worng / missing.

Viewing all articles
Browse latest Browse all 35964

Trending Articles