[FFmpeg-trac] #5738(avcodec:new): alac encoding regression

FFmpeg trac at avcodec.org
Sat Jul 30 13:45:36 EEST 2016


#5738: alac encoding regression
-------------------------------------+-------------------------------------
             Reporter:  cehoyos      |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  important    |                Component:  avcodec
              Version:  git-master   |               Resolution:
             Keywords:  alac crash   |               Blocked By:
  abort regression                   |  Reproduced by developer:  0
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Description changed by cehoyos:

Old description:

> Forum user madhartigan has reported an alac encoding regression since
> 3ef5de0f19774e2c3dd9b08ba2e8ab7241a4862a
> {{{
> $ ffmpeg -i ph160628d1_09_Things_People_Do.flac -acodec alac -f null -
> ffmpeg version N-81118-gfb91850 Copyright (c) 2000-2016 the FFmpeg
> developers
>   built with gcc 4.8 (SUSE Linux)
>   configuration: --enable-gpl --enable-libvpx
>   libavutil      55. 28.100 / 55. 28.100
>   libavcodec     57. 50.100 / 57. 50.100
>   libavformat    57. 44.100 / 57. 44.100
>   libavdevice    57.  0.102 / 57.  0.102
>   libavfilter     6. 49.100 /  6. 49.100
>   libswscale      4.  1.100 /  4.  1.100
>   libswresample   2.  1.100 /  2.  1.100
>   libpostproc    54.  0.100 / 54.  0.100
> Input #0, flac, from 'ph160628d1_09_Things_People_Do.flac':
>   Metadata:
>     COMMENT         : powered by nugs.net
>     ALBUM           : 2016/06/28 Philadelphia, PA
>     COPYRIGHT       : 2015, Phish
>     TITLE           : Things People Do
>     URL             : http://www.livephish.com
>     ARTIST          : Phish
>     ALBUM ARTIST    : Phish
>     ENCODER         : X Lossless Decoder 20151214
>     ENCODEDBY       : nugs.net
>     DATE            : 2016
>     track           : 9
>     disc            : 1
>     GENRE           : Rock
>   Duration: 00:02:49.32, start: 0.000000, bitrate: 963 kb/s
>     Stream #0:0: Audio: flac, 44100 Hz, stereo, s16
>     Stream #0:1: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown),
> 1700x1700 [SAR 72:72 DAR 1:1], 90k tbr, 90k tbn, 90k tbc
>     Metadata:
>       comment         : 32x32 pixels 'file icon'
>       title           : Enter description
> [null @ 0x22e4660] Using AVStream.codec to pass codec parameters to
> muxers is deprecated, use AVStream.codecpar instead.
>     Last message repeated 1 times
> Output #0, null, to 'pipe:':
>   Metadata:
>     COMMENT         : powered by nugs.net
>     ALBUM           : 2016/06/28 Philadelphia, PA
>     COPYRIGHT       : 2015, Phish
>     TITLE           : Things People Do
>     URL             : http://www.livephish.com
>     ARTIST          : Phish
>     ALBUM ARTIST    : Phish
>     GENRE           : Rock
>     ENCODEDBY       : nugs.net
>     DATE            : 2016
>     track           : 9
>     disc            : 1
>     encoder         : Lavf57.44.100
>     Stream #0:0: Video: wrapped_avframe, yuvj420p, 1700x1700 [SAR 72:72
> DAR 1:1], q=2-31, 200 kb/s, 90k fps, 90k tbn, 90k tbc
>     Metadata:
>       comment         : 32x32 pixels 'file icon'
>       title           : Enter description
>       encoder         : Lavc57.50.100 wrapped_avframe
>     Stream #0:1: Audio: alac, 44100 Hz, stereo, s16p, 128 kb/s
>     Metadata:
>       encoder         : Lavc57.50.100 alac
> Stream mapping:
>   Stream #0:1 -> #0:0 (mjpeg (native) -> wrapped_avframe (native))
>   Stream #0:0 -> #0:1 (flac (native) -> alac (native))
> Press [q] to stop, [?] for help
> Internal error, put_bits buffer too small
> Assertion s->buf_ptr < s->buf_end failed at libavcodec/put_bits.h:108
> Aborted
> }}}
> Encoding works fine (and is bitexact on decoding with FFmpeg) if I
> disable the assert.
> The file can be found with Google and at
> https://www.datafilehost.com/d/c8c7d514

New description:

 Forum user madhartigan has reported an alac encoding regression since
 3ef5de0f19774e2c3dd9b08ba2e8ab7241a4862a
 {{{
 $ ffmpeg -i ph160628d1_09_Things_People_Do.flac -acodec alac -f null -
 ffmpeg version N-81118-gfb91850 Copyright (c) 2000-2016 the FFmpeg
 developers
   built with gcc 4.8 (SUSE Linux)
   configuration: --enable-gpl --enable-libvpx
   libavutil      55. 28.100 / 55. 28.100
   libavcodec     57. 50.100 / 57. 50.100
   libavformat    57. 44.100 / 57. 44.100
   libavdevice    57.  0.102 / 57.  0.102
   libavfilter     6. 49.100 /  6. 49.100
   libswscale      4.  1.100 /  4.  1.100
   libswresample   2.  1.100 /  2.  1.100
   libpostproc    54.  0.100 / 54.  0.100
 Input #0, flac, from 'ph160628d1_09_Things_People_Do.flac':
   Metadata:
     COMMENT         : powered by nugs.net
     ALBUM           : 2016/06/28 Philadelphia, PA
     COPYRIGHT       : 2015, Phish
     TITLE           : Things People Do
     URL             : http://www.livephish.com
     ARTIST          : Phish
     ALBUM ARTIST    : Phish
     ENCODER         : X Lossless Decoder 20151214
     ENCODEDBY       : nugs.net
     DATE            : 2016
     track           : 9
     disc            : 1
     GENRE           : Rock
   Duration: 00:02:49.32, start: 0.000000, bitrate: 963 kb/s
     Stream #0:0: Audio: flac, 44100 Hz, stereo, s16
     Stream #0:1: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown),
 1700x1700 [SAR 72:72 DAR 1:1], 90k tbr, 90k tbn, 90k tbc
     Metadata:
       comment         : 32x32 pixels 'file icon'
       title           : Enter description
 [null @ 0x22e4660] Using AVStream.codec to pass codec parameters to muxers
 is deprecated, use AVStream.codecpar instead.
     Last message repeated 1 times
 Output #0, null, to 'pipe:':
   Metadata:
     COMMENT         : powered by nugs.net
     ALBUM           : 2016/06/28 Philadelphia, PA
     COPYRIGHT       : 2015, Phish
     TITLE           : Things People Do
     URL             : http://www.livephish.com
     ARTIST          : Phish
     ALBUM ARTIST    : Phish
     GENRE           : Rock
     ENCODEDBY       : nugs.net
     DATE            : 2016
     track           : 9
     disc            : 1
     encoder         : Lavf57.44.100
     Stream #0:0: Video: wrapped_avframe, yuvj420p, 1700x1700 [SAR 72:72
 DAR 1:1], q=2-31, 200 kb/s, 90k fps, 90k tbn, 90k tbc
     Metadata:
       comment         : 32x32 pixels 'file icon'
       title           : Enter description
       encoder         : Lavc57.50.100 wrapped_avframe
     Stream #0:1: Audio: alac, 44100 Hz, stereo, s16p, 128 kb/s
     Metadata:
       encoder         : Lavc57.50.100 alac
 Stream mapping:
   Stream #0:1 -> #0:0 (mjpeg (native) -> wrapped_avframe (native))
   Stream #0:0 -> #0:1 (flac (native) -> alac (native))
 Press [q] to stop, [?] for help
 Internal error, put_bits buffer too small
 Assertion s->buf_ptr < s->buf_end failed at libavcodec/put_bits.h:108
 Aborted
 }}}
 Encoding works fine (and is bitexact on decoding with FFmpeg) if I disable
 the assert.
 http://samples.ffmpeg.org/ffmpeg-bugs/trac/ticket5738/

--

--
Ticket URL: <https://trac.ffmpeg.org/ticket/5738#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list