【发布时间】:2013-10-04 04:31:48
【问题描述】:
我正在尝试两种编解码器,想知道是否可以改进 webm 输出的结果...
ffmpeg -i test.ts -t 10 -f webm -vcodec libvpx output.webm
以匹配 mp4 输出的质量...
ffmpeg -i test.ts -t 10 -b 1500k -vcodec libx264 output.mp4
什么设置会给我最好的 webm rip?
谢谢。
编辑: 这是尝试一些 rip 改进时的错误输出...
ffmpeg -i test.ts -c:v libvpx -crf 4 -b:v 1M -c:a libvorbis output.webm
ffmpeg version 0.8.6-4:0.8.6-0ubuntu0.12.04.1, Copyright (c) 2000-2013 the Libav developers
built on Apr 2 2013 17:00:59 with gcc 4.6.3
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
[mpeg2video @ 0x9cde5c0] mpeg_decode_postinit() failure
Last message repeated 4 times
[mpegts @ 0x9cda240] max_analyze_duration reached
[mpegts @ 0x9cda240] PES packet size mismatch
Input #0, mpegts, from 'test.ts':
Duration: 00:03:59.53, start: 4630.845422, bitrate: 1977 kb/s
Stream #0.0[0x20b]: Video: mpeg2video (Main), yuv420p, 720x576 [PAR 64:45 DAR 16:9], 15000 kb/s, 25.60 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0.1[0x28f]: Audio: mp2, 48000 Hz, stereo, s16, 224 kb/s
Unrecognized option 'c:v'
Failed to set value 'libvpx' for option 'c:v'
【问题讨论】:
-
谢谢,我得先找出这个错误的问题所在... ffmpeg -i test.ts -c:v libvpx -crf 4 -b:v 1M -c :a libvorbis output.webm Unrecognized option 'c:v' 无法为选项 'c:v' 设置值 'libvpx'
-
提供完整的控制台输出将为问题提供明确的原因。
-
对不起 :) 我已经编辑了原始帖子以包含错误输出。谢谢。