尝试使用avconv和ffmpeg将mov文件转换为ogg时,我不断收到以下错误。我完全无法理解下面显示的详细消息。
我看了类似的线程,但无法从中得出任何结论。有没有人有任何想法?
parth@parth-laptop:~/Desktop$ avconv -i IMG_0243.mp4 -acodec vorbis -f ogg IMG_0243.ogv avconv version 0.8.3-4:0.8.3-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers built on Jun 12 2012 16:37:58 with gcc 4.6.3 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'IMG_0243.mp4': Metadata: major_brand : qt minor_version : 0 compatible_brands: qt creation_time : 2012-02-25 00:11:52 encoder : 5.0.1 encoder-eng : 5.0.1 date : 2012-02-24T16:11:52-0800 date-eng : 2012-02-24T16:11:52-0800 Duration: 00:00:34.59, start: 0.000000, bitrate: 24121 kb/s Stream #0.0(und): Video: h264 (Baseline), yuv420p, 1920x1080, 24069 kb/s, 24.01 fps, 24 tbr, 600 tbn, 1200 tbc Metadata: creation_time : 2012-02-25 00:11:52 Stream #0.1(und): Audio: aac, 44100 Hz, mono, s16, 62 kb/s Metadata: creation_time : 2012-02-25 00:11:52 File 'IMG_0243.ogv' already exists. Overwrite ? [y/N] y [buffer @ 0x8da9ce0] w:1920 h:1080 pixfmt:yuv420p [vorbis @ 0x8dc74e0] Current Libav Vorbis encoder only supports 2 channels. Output #0, ogg, to 'IMG_0243.ogv': Metadata: major_brand : qt minor_version : 0 compatible_brands: qt creation_time : 2012-02-25 00:11:52 encoder : 5.0.1 encoder-eng : 5.0.1 date : 2012-02-24T16:11:52-0800 date-eng : 2012-02-24T16:11:52-0800 Stream #0.0(und): Video: libtheora, yuv420p, 1920x1080, q=2-31, 200 kb/s, 90k tbn, 24 tbc Metadata: creation_time : 2012-02-25 00:11:52 Stream #0.1(und): Audio: libvorbis, 44100 Hz, mono, s16, 200 kb/s Metadata: creation_time : 2012-02-25 00:11:52 Stream mapping: Stream #0:0 -> #0:0 (h264 -> libtheora) Stream #0:1 -> #0:1 (aac -> vorbis) Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height
编辑:
我实际上已经开始工作......但由于某些原因,现在无法获得超过8的FPS。
有效的命令是
avconv -i IMG_0243.mp4 -acodec libvorbis -f ogg -r 24.01 IMG_0243.ogv -ac 2 -ar 44100 -b 64k -s 1920x1080
答案 0 :(得分:1)
如果你在谈论屏幕上打印的fps,那就是编码速度。它与将要创建的文件的fps无关。编码1080p需要高端硬件和快速编码器。虽然你可能有硬件libtheora没有像其他编码器一样优化。所以它会很慢。