[FFmpeg-trac] #867(avformat:open): -tag:[v|a] doesn't force a fourcc
FFmpeg
trac at avcodec.org
Wed Jan 18 06:08:33 CET 2012
#867: -tag:[v|a] doesn't force a fourcc
------------------------------------+------------------------------------
Reporter: dericed | Owner:
Type: defect | Status: open
Priority: normal | Component: avformat
Version: git-master | Resolution:
Keywords: atag mov | Blocked By:
Blocking: | Reproduced by developer: 1
Analyzed by developer: 0 |
------------------------------------+------------------------------------
Comment (by dericed):
So this patch does force the output to use the 'in24' codec id; however
the resulting file plays out as silence or a faint buzz sound.
Here's the ffmpeg report
{{{
ffmpeg started on 2012-01-18 at 00:04:21
Report written to "ffmpeg-20120118-000421.log"
Command line:
./ffmpeg -y -report -i SoundieF.mpeg -ss 10 -t 5 -vn -acodec pcm_s24le
-atag in24 SoudieF_ffmpeg_in24.mov
ffmpeg version N-36769-gb18e17e Copyright (c) 2000-2012 the FFmpeg
developers
built on Jan 12 2012 21:51:39 with llvm_gcc 4.2.1 (Based on Apple Inc.
build 5658) (LLVM build 2335.15.00)
configuration:
libavutil 51. 34.100 / 51. 34.100
libavcodec 53. 55.100 / 53. 55.100
libavformat 53. 29.100 / 53. 29.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 59.100 / 2. 59.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 6.100 / 0. 6.100
[mpeg @ 0x7fd570828a00] Format mpeg probed with size=4096 and score=52
[mpeg @ 0x7fd570828a00] probing stream 0 pp:2500
[mpeg @ 0x7fd570828a00] Probe with size=794, packets=1 detected mpegvideo
with score=25
[mpeg @ 0x7fd570828a00] probing stream 0 pp:2499
[mpeg @ 0x7fd570828a00] Probe with size=2809, packets=2 detected mpegvideo
with score=25
[mpeg @ 0x7fd570828a00] probing stream 0 pp:2498
[mpeg @ 0x7fd570828a00] Probe with size=4824, packets=3 detected mpegvideo
with score=25
[mpeg @ 0x7fd570828a00] probing stream 0 pp:2497
[mpeg @ 0x7fd570828a00] probing stream 0 pp:2496
[mpeg @ 0x7fd570828a00] Probe with size=8854, packets=5 detected mpegvideo
with score=25
[mpeg @ 0x7fd570828a00] probing stream 0 pp:2495
[mpeg @ 0x7fd570828a00] probing stream 0 pp:2494
[mpeg @ 0x7fd570828a00] probing stream 0 pp:2493
[mpeg @ 0x7fd570828a00] probing stream 0 pp:2492
[mpeg @ 0x7fd570828a00] Probe with size=16914, packets=9 detected
mpegvideo with score=25
[mpeg @ 0x7fd570828a00] probing stream 0 pp:2491
[mpeg @ 0x7fd570828a00] probing stream 0 pp:2490
[mpeg @ 0x7fd570828a00] probing stream 0 pp:2489
[mpeg @ 0x7fd570828a00] probing stream 0 pp:2488
[mpeg @ 0x7fd570828a00] probing stream 0 pp:2487
[mpeg @ 0x7fd570828a00] probing stream 0 pp:2486
[mpeg @ 0x7fd570828a00] probing stream 0 pp:2485
[mpeg @ 0x7fd570828a00] probing stream 0 pp:2484
[mpeg @ 0x7fd570828a00] Probe with size=33034, packets=17 detected
mpegvideo with score=51
[mpeg @ 0x7fd570828a00] probed stream 0
[mpeg2video @ 0x7fd570831000] err{or,}_recognition separate: 1; 1
[mpeg2video @ 0x7fd570831000] err{or,}_recognition combined: 1; 10001
[mpeg2video @ 0x7fd570831000] detected 2 logical cores
[mpeg2video @ 0x7fd570831000] Unsupported bit depth: 0
[mp2 @ 0x7fd570830a00] err{or,}_recognition separate: 1; 1
[mp2 @ 0x7fd570830a00] err{or,}_recognition combined: 1; 10001
[mpeg @ 0x7fd570828a00] max_analyze_duration 5000000 reached at 5005000
Input #0, mpeg, from 'SoundieF.mpeg':
Duration: 00:02:24.10, start: 839.378778, bitrate: 3786 kb/s
Stream #0:0[0x1e0], 152, 1/90000: Video: mpeg2video (Main), yuv420p,
352x480 [SAR 20:11 DAR 4:3], 3500 kb/s, 29.97 fps, 29.97 tbr, 90k tbn,
59.94 tbc
Stream #0:1[0x1c0], 193, 1/90000: Audio: mp2, 48000 Hz, stereo, s16,
224 kb/s
Incompatible sample format 's16' for codec 'pcm_s24le', auto-selecting
format 's32'
[pcm_s24le @ 0x7fd570831c00] err{or,}_recognition separate: 1; 1
[pcm_s24le @ 0x7fd570831c00] err{or,}_recognition combined: 1; 10001
[mp2 @ 0x7fd570830a00] err{or,}_recognition separate: 1; 10001
[mp2 @ 0x7fd570830a00] err{or,}_recognition combined: 1; 10001
Output #0, mov, to 'SoudieF_ffmpeg_in24.mov':
Metadata:
encoder : Lavf53.29.100
Stream #0:0, 0, 1/48000: Audio: pcm_s24le (in24 / 0x34326E69), 48000
Hz, stereo, s32, 2304 kb/s
Stream mapping:
Stream #0:1 -> #0:0 (mp2 -> pcm_s24le)
Press [q] to stop, [?] for help
size= 1405kB time=00:00:04.99 bitrate=2305.2kbits/s
video:0kB audio:1404kB global headers:0kB muxing overhead 0.051193%
}}}
I tested the same equivalent command in ffmbc which did produce a playable
file. Here's the ffmbc output
{{{
ffmbc -y -i SoundieF.mpeg -ss 10 -t 5 -vn -acodec pcm_s24le -atag in24
SoundieF_ffmbc_in24.mov
FFmbc version 0.7-rc4
Copyright (c) 2008-2011 Baptiste Coudurier and the FFmpeg developers
Input #0, mpeg, from 'SoundieF.mpeg':
Duration: 00:02:24.11, start: 839.368778, bitrate: 3786 kb/s
Stream #0.0[0x1e0](und): Video: mpeg2video (Main), yuv420p, 352x480i
tff [PAR 20:11 DAR 4:3], 3500 kb/s, 29.97 fps
Stream #0.1[0x1c0](und): Audio: mp2, 48000 Hz, stereo, s16, 224 kb/s
Incompatible sample format 's16' for codec 'pcm_s24le', auto-selecting
format 's32'
Output #0, mov, to 'SoundieF_ffmbc_in24.mov':
Metadata:
encoder: FFmbc 0.7
Stream #0.0(und): Audio: pcm_s24le, 48000 Hz, stereo, s32, 2304 kb/s
Stream mapping:
Stream #0.1 -> #0.0
Press [q] to stop, [?] for help
adding 863 audio samples in stream #0.1
[mov @ 0x7f9309000c00] replacing header in front, copying 1.38MB
size= 1411kB time=00:00:05.00 bitrate=2306.5kbits/s
video:0kB audio:1409kB global headers:0kB muxing overhead 0.107009%
}}}
I'll attach the output files to the ticket. Perhaps the ticket should be
renamed to 'support in24 audio'.
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/867#comment:4>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list