Opened 16 years ago
Last modified 16 years ago
#936 reopened defect
audio playback speed problems for flv format
Reported by: | Owned by: | reimar | |
---|---|---|---|
Priority: | normal | Component: | core |
Version: | HEAD | Severity: | normal |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Reproduced by developer: | no | Analyzed by developer: | no |
Description
I concatenated 2 flv files (let's call them file1.flv and file2.flv - both played back correctly in mplayer) and got a resulting flv file (let's call it result.flv) that plays well with youtube's flash player. But MPlayer gets the sound speed wrong for this file.
To be more specific: the first part of result.flv plays ok (the part from file1.flv) but the second part plays the audio stream 2x slower (i was able to verify this playing at 2x speed the second part and got correct audio).
I suspect the 2 files have different sampling rates for audio, and mplayer picks the sampling rate of the first flv audio tag for the whole duration of the file.
The build i used was Sherpya-SVN-r24930-4.2.1.
Change History (10)
comment:1 by , 16 years ago
comment:2 by , 16 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
bug invalid, cat file1 file2 > file3 is not a valid file.
comment:3 by , 16 years ago
Resolution: | invalid |
---|---|
Status: | closed → reopened |
I did NOT concatenate the files with cat. I used a program that parses the .flv file format. Just test the link above, and you'll be able to reproduce the bug (and no, the resulting file is NOT invalid, since it plays fine on youtube).
comment:5 by , 16 years ago
I used a program written by a coworker :P (he used the specs from http://osflash.org/flv)
comment:6 by , 16 years ago
so an flv file with two different audio samples is within the flv specs?
aside from the fact that it plays with stupid flash plugin....
comment:7 by , 16 years ago
btw check if it plays with ffplay (if you can find a win32 binary)
mplayer uses the flv demuxer from ffmpeg, so it might be their bug...
might submit a bugreport to ffmpeg bug tracker http://roundup.mplayerhq.hu
comment:8 by , 16 years ago
(In reply to comment #6)
so an flv file with two different audio samples is within the flv specs?
aside from the fact that it plays with stupid flash plugin....
Yes. I've just read the official specs and there's nothing that says the audio/video tags must have the same properties (you can even have different video resolutions).
ffplay behaves the same as mplayer on that file.
comment:9 by , 16 years ago
I also tried with different video codecs suported by the flv format in the same file. It seems that mplayer uses the first video tag's codec for all the flv tags... obviously this leads to decoding errors.
comment:10 by , 16 years ago
thanks for submitting it to ffmpeg tracker, it will get more attention there :)
A test case for reproducing this bug can be found at http://youtube.com/watch?v=qgAbnEySPr8 (you can use http://keepvid.com/ to get the flv file).