将一个wmv格式文件,进行格式转换为MP4,在avformat_write_header时直接提示失败
来源:5-17 多媒体格式转封装(二)
weixin_慕设计3335803
2024-07-18
[wbyq@wbyq ffmpeg]$ ./app …/…/01按键检测和LED练习.wmv 1.mp4
[NULL @ 0x55dc96a15040] Opening ‘…/…/01按键检测和LED练习.wmv’ for reading
[file @ 0x55dc96a158c0] Setting default whitelist ‘file,crypto,data’
[asf @ 0x55dc96a15040] Format asf probed with size=2048 and score=100
[asf @ 0x55dc96a15040] Unsupported byte array in tag ASFLeakyBucketPairs.
[asf @ 0x55dc96a15040] gpos mismatch our pos=24, end=26
[asf @ 0x55dc96a15040] gpos mismatch our pos=24, end=3630
[asf @ 0x55dc96a15040] gpos mismatch our pos=24, end=34
[asf @ 0x55dc96a15040] Payload extension 54 2
[asf @ 0x55dc96a15040] Payload extension 50 2
[asf @ 0x55dc96a15040] gpos mismatch our pos=24, end=38
[asf @ 0x55dc96a15040] gpos mismatch our pos=24, end=234
[asf @ 0x55dc96a15040] gpos mismatch our pos=24, end=38
[asf @ 0x55dc96a15040] Before avformat_find_stream_info() pos: 5391 bytes read:32768 seeks:0 nb_streams:2
[asf @ 0x55dc96a15040] parser not found for codec wmav2, packets or times may be invalid.
[wmv1 @ 0x55dc96a179c0] Format yuv420p chosen by get_format().
[asf @ 0x55dc96a15040] parser not found for codec wmav2, packets or times may be invalid.
[asf @ 0x55dc96a15040] All info found
[asf @ 0x55dc96a15040] After avformat_find_stream_info() pos: 549582 bytes read:557056 seeks:0 frames:49
Input #0, asf, from ‘…/…/01按键检测和LED练习.wmv’:
Metadata:
FSCSettings : 22
WMFSDKVersion : 12.0.22621.1928
WMFSDKNeeded : 0.0.0.0000
Buffer Average : 125185
VBR Peak : 9430750
IsVBR : 1
DeviceConformanceTemplate: @
Duration: 01:15:05.65, start: 0.000000, bitrate: 1198 kb/s
Stream #0:0(eng), 8, 1/1000: Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, 2 channels, fltp, 64 kb/s
Stream #0:1(eng), 41, 1/1000: Video: wmv1, 1 reference frame (WMV1 / 0x31564D57), yuv420p, 2880x1800, 0/1, 2224 kb/s, SAR 1:1 DAR 8:5, 1k tbr, 1k tbn
[file @ 0x55dc96a36e00] Setting default whitelist ‘file,crypto,data’
[mp4 @ 0x55dc96a3eb00] Could not find tag for codec wmav2 in stream #0, codec not currently supported in container
[mp4 @ 0x55dc96a3eb00] 写入头数据失败ret=Invalid argument
[AVIOContext @ 0x55dc96a1dd80] Statistics: 557056 bytes read,
1回答
-
李超
2024-07-19
你先用ffmpeg 命令测试一下看看是否可以将wmv 转成mp4
00
相似问题