[FFmpeg-trac] #1916(FFmpeg:new): mxf format pcm_s24le to pcm_s16le audio transcoding is broken.

FFmpeg trac at avcodec.org
Tue Nov 13 20:34:56 CET 2012


#1916: mxf format pcm_s24le to pcm_s16le audio transcoding is broken.
-------------------------------------+-------------------------------------
             Reporter:  dem0n        |                     Type:  defect
               Status:  new          |                 Priority:  important
            Component:  FFmpeg       |                  Version:  1.0
             Keywords:  ffmpeg,      |               Blocked By:
  mxf, pcm_s24le, pcm_s16le, audio   |  Reproduced by developer:  0
  transcoding                        |
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 '''Summary of the bug:'''
 I am trying to extract audio stream from mxf file and transcode it from
 pcm_s24le to pcm_s16le audio, but ffmpeg returns broken file instead.
 ffmpeg versions used: 1.0 and N-46710-g4facddd (from git). In ffmpeg
 0.7.13 this is working well with the same sample-file.

 '''How to reproduce:'''
 To reproduce this behavior please use pcm_s24le_to_pcm_s16le.mxf sample-
 file, which was uploaded to ffmpeg public ftp and run ffmpeg with
 following params:
 {{{
 ~/ffmpeg-git-20121113/bin/ffmpeg -y -i ./pcm_s24le_to_pcm_s16le.mxf -vn
 -map 0:0 -acodec pcm_s16le ./a0_0:0.wav

 ----
 Detailed ffmpeg output:

 $ ~/ffmpeg-git-20121113/bin/ffmpeg -v 9 -loglevel 99 -y -i
 ./pcm_s24le_to_pcm_s16le.mxf -vn -map 0:0 -acodec pcm_s16le ./a0_0:0.wav
 ffmpeg version N-46710-g4facddd Copyright (c) 2000-2012 the FFmpeg
 developers
   built on Nov 13 2012 18:33:45 with gcc 4.6 (Ubuntu/Linaro
 4.6.3-1ubuntu5)
   configuration: --enable-libx264 --prefix=/home/mkproxy-test/ffmpeg-
 git-20121113 --enable-gpl --enable-shared
   libavutil      52.  6.100 / 52.  6.100
   libavcodec     54. 71.100 / 54. 71.100
   libavformat    54. 36.100 / 54. 36.100
   libavdevice    54.  3.100 / 54.  3.100
   libavfilter     3. 23.100 /  3. 23.100
   libswscale      2.  1.102 /  2.  1.102
   libswresample   0. 16.100 /  0. 16.100
   libpostproc    52.  1.100 / 52.  1.100
 [mxf @ 0x1dd0280] Format mxf probed with size=2048 and score=100
 [mxf @ 0x1dd0280] File position before avformat_find_stream_info() is
 11741
 [mxf @ 0x1dd0280] KLV for edit unit 0 extends into next edit unit - OPAtom
 misinterpreted as OP1a?
 [mxf @ 0x1dd0280] If you want to help, upload a sample of this file to
 ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel
 mailing list.
 [mxf @ 0x1dd0280] File position after avformat_find_stream_info() is 11765
 Guessed Channel Layout for  Input Stream #0.0 : mono
 Input #0, mxf, from './pcm_s24le_to_pcm_s16le.mxf':
   Metadata:
     timecode        : 00:58:00:00
   Duration: 01:55:06.90, start: 0.000000, bitrate: 10 kb/s
     Stream #0:0, 0, 1001/24000: Audio: pcm_s24le, 48000 Hz, mono, s32,
 1152 kb/s
 [abuffer @ 0x1dd3360] Setting entry with key 'time_base' to value
 '1/48000'
 [abuffer @ 0x1dd3360] Setting entry with key 'sample_rate' to value
 '48000'
 [abuffer @ 0x1dd3360] Setting entry with key 'sample_fmt' to value 's32'
 [abuffer @ 0x1dd3360] Setting entry with key 'channel_layout' to value
 '0x4'
 [graph 0 input from stream 0:0 @ 0x1dd37e0] tb:1/48000 samplefmt:s32
 samplerate:48000 chlayout:0x4
 [aformat @ 0x1dd3640] Setting entry with key 'sample_fmts' to value 's16'
 [audio format for output stream 0:0 @ 0x1dd3dc0] auto-inserting filter
 'auto-inserted resampler 0' between the filter 'Parsed_anull_0' and the
 filter 'audio format for output stream 0:0'
 [auto-inserted resampler 0 @ 0x1dd4f40] chl:mono fmt:s32 r:48000Hz ->
 chl:mono fmt:s16 r:48000Hz
 Output #0, wav, to './a0_0:0.wav':
   Metadata:
     ISMP            : 00:58:00:00
     ISFT            : Lavf54.36.100
     Stream #0:0, 0, 1/48000: Audio: pcm_s16le ([1][0][0][0] / 0x0001),
 48000 Hz, mono, s16, 768 kb/s
 Stream mapping:
   Stream #0:0 -> #0:0 (pcm_s24le -> pcm_s16le)
 Press [q] to stop, [?] for help
 ./pcm_s24le_to_pcm_s16le.mxf: Operation not permitted
 [output stream 0:0 @ 0x1dd3d60] EOF on sink link output stream
 0:0:default.
 No more output streams to write to, finishing.
 size=       0kB time=00:00:00.00 bitrate=   0.0kbits/s
 video:0kB audio:0kB subtitle:0 global headers:0kB muxing overhead inf%
 Output file is empty, nothing was encoded (check -ss / -t / -frames
 parameters if used)
 Statistics: 9458516 bytes read, 2 seeks
 }}}

 Thanks in advance!

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1916>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list