[FFmpeg-trac] #2218(avformat:open): flv pcm_s16le decodes incorrectly

FFmpeg trac at avcodec.org
Fri Feb 1 11:08:24 CET 2013


#2218: flv pcm_s16le decodes incorrectly
-------------------------------------+-------------------------------------
             Reporter:  ami_stuff    |                    Owner:
                 Type:  defect       |                   Status:  open
             Priority:  important    |                Component:  avformat
              Version:  git-master   |               Resolution:
             Keywords:  flv          |               Blocked By:
  regression                         |  Reproduced by developer:  1
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Changes (by cehoyos):

 * keywords:  flv => flv regression
 * priority:  wish => important
 * type:  enhancement => defect
 * reproduced:  0 => 1


Comment:

 The obvious (and only possible) work-around to force the audio codec is
 broken since 86e107a.
 {{{
 $ ffmpeg -acodec pcm_s16be -i seeking_fail.flv out.wav
 ffmpeg version N-42179-gaf392ef Copyright (c) 2000-2012 the FFmpeg
 developers
   built on Feb  1 2013 11:05:15 with gcc 4.7.1 20120723 [gcc-4_7-branch
 revision 189773]
   configuration:
   libavutil      51. 63.100 / 51. 63.100
   libavcodec     54. 32.100 / 54. 32.100
   libavformat    54. 14.100 / 54. 14.100
   libavdevice    54.  0.100 / 54.  0.100
   libavfilter     3.  0.101 /  3.  0.101
   libswscale      2.  1.100 /  2.  1.100
   libswresample   0. 15.100 /  0. 15.100
 [pcm_s16be @ 0x2a9f5a0] PCM channels out of bounds
 [flv @ 0x2a991c0] max_analyze_duration 5000000 reached at 5063000
 Guessed Channel Layout for  Input Stream #0.0 : mono
 Input #0, flv, from 'seeking_fail.flv':
   Metadata:
     creationdate    : Sun Jul 15 18:01:39 2012
     dc_title        : Land Down Under
     Artist          : Men At Work
     Encoded_With    : Sorenson Squeeze
     Encoded_By      :
   Duration: 00:03:46.53, start: 0.000000, bitrate: 354 kb/s
     Stream #0:0: Audio: pcm_s16be, 22050 Hz, mono, s16, 352 kb/s
 [graph 0 input from stream 0:0 @ 0x2a9b420] tb:1/1000 samplefmt:s16
 samplerate:22050 chlayout:0x4
 Output #0, wav, to 'out.wav':
   Metadata:
     creationdate    : Sun Jul 15 18:01:39 2012
     dc_title        : Land Down Under
     Artist          : Men At Work
     Encoded_With    : Sorenson Squeeze
     Encoded_By      :
     encoder         : Lavf54.14.100
     Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 22050 Hz, mono,
 s16, 352 kb/s
 Stream mapping:
   Stream #0:0 -> #0:0 (pcm_s16be -> pcm_s16le)
 Press [q] to stop, [?] for help
 size=    9756kB time=00:03:46.53 bitrate= 352.8kbits/s
 video:0kB audio:9756kB subtitle:0 global headers:0kB muxing overhead
 0.000460%
 }}}
 (The test assumes the opposite case: flv file written on big-endian,
 played on little-endian.)

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


More information about the FFmpeg-trac mailing list