FFmpeg | 14 Aug 2012 02:56

#1638(avformat:new): SWF demuxer cannot correctly identify MP3 stream

#1638: SWF demuxer cannot correctly identify MP3 stream
--------------------------------------+----------------------------------
               Reporter:  mbradshaw   |                  Owner:
                   Type:  defect      |                 Status:  new
               Priority:  normal      |              Component:  avformat
                Version:  git-master  |               Keywords:
             Blocked By:              |               Blocking:
Reproduced by developer:  0           |  Analyzed by developer:  0
--------------------------------------+----------------------------------
 I created a SWF file with Adobe Flash Professional CS6 today. It's a
 simple SWF that just contains a MP3 track. FFmpeg does not correctly read
 this though and is not able to identify the MP3 stream.

 Below is the output from ffmpeg regarding this SWF I created today:
 {{{
 $ ./ffmpeg -i ~/UntitledTest.swf
 ffmpeg version N-43294-g8993c25 Copyright (c) 2000-2012 the FFmpeg
 developers
   built on Aug 12 2012 10:15:07 with gcc 4.2.1 (GCC) (Apple Inc. build
 5666) (dot 3)
   configuration: --enable-libx264 --enable-gpl --enable-libopenjpeg
   libavutil      51. 66.101 / 51. 66.101
   libavcodec     54. 50.100 / 54. 50.100
   libavformat    54. 22.101 / 54. 22.101
   libavdevice    54.  2.100 / 54.  2.100
   libavfilter     3.  5.102 /  3.  5.102
   libswscale      2.  1.101 /  2.  1.101
   libswresample   0. 15.100 /  0. 15.100
   libpostproc    52.  0.100 / 52.  0.100
 [swf  <at>  0x10180ec00] Could not find codec parameters for stream 0 (Audio:
(Continue reading)

FFmpeg | 14 Aug 2012 10:44

Re: #1638(avformat:open): SWF demuxer cannot correctly identify MP3 stream

#1638: SWF demuxer cannot correctly identify MP3 stream
------------------------------------+------------------------------------
             Reporter:  mbradshaw   |                    Owner:
                 Type:  defect      |                   Status:  open
             Priority:  normal      |                Component:  avformat
              Version:  git-master  |               Resolution:
             Keywords:  swf         |               Blocked By:
             Blocking:              |  Reproduced by developer:  1
Analyzed by developer:  0           |
------------------------------------+------------------------------------
Changes (by cehoyos):

 * keywords:   => swf
 * status:  new => open
 * reproduced:  0 => 1

--

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1638#comment:1>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
FFmpeg | 15 Aug 2012 06:21

Re: #1638(avformat:open): SWF demuxer cannot correctly identify MP3 stream

#1638: SWF demuxer cannot correctly identify MP3 stream
------------------------------------+------------------------------------
             Reporter:  mbradshaw   |                    Owner:
                 Type:  defect      |                   Status:  open
             Priority:  normal      |                Component:  avformat
              Version:  git-master  |               Resolution:
             Keywords:  swf         |               Blocked By:
             Blocking:              |  Reproduced by developer:  1
Analyzed by developer:  0           |
------------------------------------+------------------------------------

Comment (by mbradshaw):

 I've looked into this a bit and I've found the issue, but I'm unsure of
 how to resolve it so I'll give my analysis in the hopes that someone might
 know the best solution (or help me understand the best solution).

 The SWF file has a TAG_STREAMHEAD2 tag, but there is no streaming audio
 (there are no TAG_STREAMBLOCK tags). AFAIK, this is valid, as the
 TAG_STREAMHEAD2 just says what format to expect streamed audio to be in,
 even if it's not present. The TAG_STREAMHEAD2 reports pcm_s16le, 5512 Hz,
 1 channels, 88 kb/s audio, which FFmpeg correctly reads, but it struggles
 from there. I don't know if FFmpeg is rejecting the reported audio format,
 or if it's choking on the fact that there's no TAG_STREAMBLOCK tags.

 Anyway, the audio is not streamed in the frames. Instead, in this file, it
 is found in a DefineSound tag (tag code = 14), and the entire MP3 file is
 stored as part of this tag. FFmpeg does not look for any DefineSound tags.
 I could easily add the necessary code to find and parse a DefineSound tag,
 but I'm unsure of how to properly demux this sound because it's not broken
(Continue reading)

FFmpeg | 29 Sep 2012 17:25

Re: #1638(avformat:open): SWF demuxer cannot correctly identify MP3 stream

#1638: SWF demuxer cannot correctly identify MP3 stream
------------------------------------+------------------------------------
             Reporter:  mbradshaw   |                    Owner:
                 Type:  defect      |                   Status:  open
             Priority:  normal      |                Component:  avformat
              Version:  git-master  |               Resolution:
             Keywords:  swf         |               Blocked By:
             Blocking:              |  Reproduced by developer:  1
Analyzed by developer:  0           |
------------------------------------+------------------------------------

Comment (by michael):

 Replying to [comment:2 mbradshaw]:

 > Anyway, the audio is not streamed in the frames. Instead, in this file,
 it is found in a DefineSound tag (tag code = 14), and the entire MP3 file
 is stored as part of this tag. FFmpeg does not look for any DefineSound
 tags. I could easily add the necessary code to find and parse a
 DefineSound tag, but I'm unsure of how to properly demux this sound
 because it's not broken up into frames (like audio (TAG_STREAMHEAD(2)) or
 video (TAG_VIDEOSTREAM) streams are). Audio in DefineSound tags come in
 one solid chunk.

 You can return randomly (or fixed) sized chunks from the mp3 and set
 AVStream->need_parsing appropriately then libavformat will break things
 into chunks for you

--

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1638#comment:3>
(Continue reading)

FFmpeg | 12 Oct 2012 21:18

Re: #1638(avformat:closed): SWF demuxer cannot correctly identify MP3 stream

#1638: SWF demuxer cannot correctly identify MP3 stream
------------------------------------+------------------------------------
             Reporter:  mbradshaw   |                    Owner:
                 Type:  defect      |                   Status:  closed
             Priority:  normal      |                Component:  avformat
              Version:  git-master  |               Resolution:  fixed
             Keywords:  swf         |               Blocked By:
             Blocking:              |  Reproduced by developer:  1
Analyzed by developer:  0           |
------------------------------------+------------------------------------
Changes (by mbradshaw):

 * status:  open => closed
 * resolution:   => fixed

Comment:

 Fixed with commit a41c824c539cc1fe79b3afd9393a91d22a8065da

--

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1638#comment:4>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker

Gmane