LINUX.ORG.RU

ffmpeg и theora/vorbis


0

1

Здравствуйте, у меня такая проблема я пытаюсь перекодировать видео из AVI в OGV при помощи ffmpeg [code] ffmpeg -i video.avi -s 480x360 -vcodec libtheora -acodec vorbis video_21.ogv [/code] но мне постоянно выдает ошибку [code] FFmpeg version 0.5.2, Copyright (c) 2000-2009 Fabrice Bellard, et al. configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandi r=/usr/share/man --incdir=/usr/include --disable-avisynth --extra-cflags=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-b uffer-size=4 -m64 -mtune=generic -fPIC --enable-avfilter --enable-avfilter-lavf --enable-libdirac --enable-libfaac --enable-libfaad --enable-libfaadbin --enable -libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libth eora --enable-libx264 --enable-gpl --enable-nonfree --enable-postproc --enable-p threads --enable-shared --enable-swscale --enable-vdpau --enable-version3 --enab le-x11grab libavutil 49.15. 0 / 49.15. 0 libavcodec 52.20. 1 / 52.20. 1 libavformat 52.31. 0 / 52.31. 0 libavdevice 52. 1. 0 / 52. 1. 0 libavfilter 0. 4. 0 / 0. 4. 0 libswscale 0. 7. 1 / 0. 7. 1 libpostproc 51. 2. 0 / 51. 2. 0 built on Jun 13 2010 23:44:18, gcc: 4.1.2 20080704 (Red Hat 4.1.2-48)

Seems stream 0 codec frame rate differs from container frame rate: 30.00 (30/1) -> 15.00 (15/1) Input #0, avi, from 'video.avi': Duration: 00:00:58.71, start: 0.000000, bitrate: 83 kb/s Stream #0.0: Video: h264, yuv420p, 848x648, 15 tbr, 15 tbn, 30 tbc Stream #0.1: Audio: mp3, 11025 Hz, mono, s16, 16 kb/s File 'video_21.ogv' already exists. Overwrite ? [y/N] y Output #0, ogg, to 'video_21.ogv': Stream #0.0: Video: libtheora, yuv420p, 480x360, q=2-31, 200 kb/s, 90k tbn, 15 tbc Stream #0.1: Audio: vorbis, 11025 Hz, mono, s16, 64 kb/s Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 [vorbis @ 0x5856d90]Current FFmpeg Vorbis encoder only supports 2 channels. Error while opening codec for output stream #0.1 - maybe incorrect parameters su ch as bit_rate, rate, width or height [/code]

Здравствуйте, у меня такая проблема я пытаюсь перекодировать видео из AVI в OGV при помощи ffmpeg

 ffmpeg -i video.avi -s 480x360 -vcodec libtheora -acodec vorbis video_21.ogv 
но мне постоянно выдает ошибку
 FFmpeg version 0.5.2, Copyright (c) 2000-2009 Fabrice Bellard, et al. 
configuration: 
--prefix=/usr 
--libdir=/usr/lib64 
--shlibdir=/usr/lib64 
--mandi r=/usr/share/man 
--incdir=/usr/include 
--disable-avisynth 
--extra-cflags=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector 
--param=ssp-b uffer-size=4 -m64 -mtune=generic -fPIC 
--enable-avfilter 
--enable-avfilter-lavf 
--enable-libdirac 
--enable-libfaac 
--enable-libfaad 
--enable-libfaadbin 
--enable -libmp3lame 
--enable-libopencore-amrnb 
--enable-libopencore-amrwb 
--enable-libth eora 
--enable-libx264 
--enable-gpl 
--enable-nonfree 
--enable-postproc 
--enable-p threads 
--enable-shared 
--enable-swscale 
--enable-vdpau 
--enable-version3 
--enab le-x11grab libavutil 49.15. 0 / 49.15. 0 libavcodec 52.20. 1 / 52.20. 1 libavformat 52.31. 0 / 52.31. 0 libavdevice 52. 1. 0 / 52. 1. 0 libavfilter 0. 4. 0 / 0. 4. 0 libswscale 0. 7. 1 / 0. 7. 1 libpostproc 51. 2. 0 / 51. 2. 0 built on Jun 13 2010 23:44:18, gcc: 4.1.2 20080704 (Red Hat 4.1.2-48)

Seems stream 0 codec frame rate differs from container frame rate: 30.00 (30/1) -> 15.00 (15/1) 
Input #0, avi, from 'video.avi': Duration: 00:00:58.71, start: 0.000000, bitrate: 83 kb/s 
Stream #0.0: Video: h264, yuv420p, 848x648, 15 tbr, 15 tbn, 30 tbc Stream #0.1: Audio: mp3, 11025 Hz, mono, s16, 16 kb/s File 'video_21.ogv' already exists. 
Overwrite ? [y/N] y 
Output #0, ogg, to 'video_21.ogv': 
Stream #0.0: Video: libtheora, yuv420p, 480x360, q=2-31, 200 kb/s, 90k tbn, 15 tbc Stream #0.1: Audio: vorbis, 11025 Hz, mono, s16, 64 kb/s Stream mapping: Stream #0.0 -> #0.0 
Stream #0.1 -> #0.1 [vorbis @ 0x5856d90]Current FFmpeg Vorbis encoder only supports 2 channels. Error while opening codec for output stream #0.1 - maybe incorrect parameters su ch as bit_rate, rate, width or height 

FenixGnom
() автор топика
Ответ на: комментарий от FenixGnom

Черным по белому написано, что текущий Vorbis держит только два канала. Моно в пролете.

Попробуйте в acodec указать libvorbis, а не нативный.

FakeLinux
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.