i have successfully convert flv to webm but when i select ogg persets it unable to convert video .
in th e log history the error is
PHPVideoToolkit error: Execute error. It was not possible to encode "/Applications/MAMP/htdocs/drupal/sites/default/files/videos/original/offroad_17.flv" as FFmpeg returned an error. The error is with the video codec of the input file. FFmpeg reports the error to be "Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height".
and cmd error is
Executed commands and output
/usr/bin/ffmpeg -i '/Applications/MAMP/htdocs/drupal/sites/default/files/videos/original/offroad_17.flv' -vf 'scale=543:360' -qscale '19' -b '200k' -ac '2' -ar '11025' -pass '1' -passlogfile '/Applications/MAMP/tmp/php/1375521681-51fccb919379a-multipass' -y /Applications/MAMP/tmp/php/1375521681-51fccb9193634.ogg
ffmpeg version 1.2.1 Copyright (c) 2000-2013 the FFmpeg developers
built on May 13 2013 14:11:10 with llvm-gcc 4.2.1 (LLVM build 2336.11.00)
configuration: --prefix=/Volumes/Ramdisk/sw --enable-gpl --enable-pthreads --enable-version3 --enable-libspeex --enable-libvpx --disable-decoder=libvpx --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-avfilter --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-filters --enable-libgsm --arch=x86_64 --enable-runtime-cpudetect
libavutil 52. 18.100 / 52. 18.100
libavcodec 54. 92.100 / 54. 92.100
libavformat 54. 63.104 / 54. 63.104
libavdevice 54. 3.103 / 54. 3.103
libavfilter 3. 42.103 / 3. 42.103
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
Input #0, flv, from '/Applications/MAMP/htdocs/drupal/sites/default/files/videos/original/offroad_17.flv':
Metadata:
major_brand : isom
minor_version : 1
compatible_brands: isomavc1
encoder : Lavf54.59.105
Duration: 00:00:26.52, start: 0.000000, bitrate: 998 kb/s
Stream #0:0: Video: flv1, yuv420p, 640x424, 200 kb/s, 29.97 tbr, 1k tbn, 1k tbc
Stream #0:1: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
Please use -q:a or -q:v, -qscale is ambiguous
Please use -b:a or -b:v, -b is ambiguous
[libtheora @ 0x7fd52301d800] Error getting first pass stats
Output #0, ogg, to '/Applications/MAMP/tmp/php/1375521681-51fccb9193634.ogg':
Metadata:
major_brand : isom
minor_version : 1
compatible_brands: isomavc1
encoder : Lavf54.59.105
Stream #0:0: Video: theora, yuv420p, 543x360, q=2-31, pass 1, 200 kb/s, 90k tbn, 29.97 tbc
Stream #0:1: Audio: none, 11025 Hz, stereo, s16, 128 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (flv -> libtheora)
Stream #0:1 -> #0:1 (mp3 -> flac)
Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
can any one help hoe can iresolve this issue.
Comments
Comment #1
jorrit commentedThis is weird: it says 'Error getting first pass stats' when executing the first pass. Are there no other errors? Can you try to update ffmpeg?
Comment #2
jorrit commentedCould you check if the path
/Applications/MAMP/tmp/php/exists and is writable by the web server?Comment #3
hypertext200