-1
我想剪輯視頻輸入名爲.3gp(http://www.sample-videos.com/video/3gp/144/big_buck_bunny_144p_2mb.3gp),並將其保存爲.MP4,這是我的命令:FFmpeg的修剪.3gp使用,並保存爲.MP4不工作
ffmpeg -ss 00:00:00.000 -y -i input_vid.3gp -strict experimental -preset ultrafast -t 00:00:03.637 -r 30 -s 176x144 -ar 44100 -b:v 4000k -minrate 4000k -maxrate 4000k -c:a copy -vcodec mpeg4 output_vid.mp4
但它給我以下錯誤:
Setting 'pix_fmts' to value 'yuv420p'
query_formats: 7 queried, 6 merged, 0 already done, 0 delayed
w:176 h:144 fmt:yuv420p sar:12/11 -> w:176 h:144 fmt:yuv420p sar:12/11 flags:0x4
Automatically choosing VBV buffer size of 232 kbyte
intra_quant_bias = 0 inter_quant_bias = -64
Could not find tag for codec amr_nb in stream #1, codec not currently supported in container
Output #0, mp4, to 'output_vid.mp4':
Metadata:
major_brand : 3gp4
minor_version : 512
compatible_brands: isomiso23gp4
encoder : Lavf56.23.100
Stream #0:0(und), 0, 1/15360: Video: mpeg4 ([0][0][0]/0x0020), yuv420p, 176x144 [SAR 12:11 DAR 4:3], q=2-31, 4000 kb/s, 30 fps, 15360 tbn, 30 tbc (default)
Metadata:
creation_time : 1970-01-01 00:00:00
handler_name : VideoHandler
encoder : Lavc56.25.100 mpeg4
Stream #0:1(und), 0, 1/8000: Audio: amr_nb (samr/0x726D6173), 8000 Hz, mono, 12 kb/s (default)
Metadata:
creation_time : 1970-01-01 00:00:00
handler_name : SoundHandler
Stream mapping:
Stream #0:0 -> #0:0 (h263 (native) -> mpeg4 (native))
Stream #0:1 -> #0:1 (copy)
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
exit_program: 1
但它工作正常,如果輸入的是一個.MP4 ...
任何想法的?副本到-c:感謝
你應該問在[蘇]你'ffmpeg' CLI使用的問題,而不是。堆棧溢出專門用於編程問題。 – LordNeckbeard
@LordNeckbeard好吧,將來會做。 – SebSob