Opened 4 years ago

Closed 4 years ago

#4716 closed defect (wontfix)

tta is not lossless

Reported by: ami_stuff Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

test.wav is here:

http://www.datafilehost.com/d/f8487fd6

tta.mkv is here:

http://www.datafilehost.com/d/8375039f

C:\>ffmpeg -i test.wav -acodec tta tta.mkv
ffmpeg version N-73510-g033dc39 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.9.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-l
ibilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enab
le-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --en
able-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --ena
ble-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc
 --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enabl
e-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --ena
ble-decklink --enable-zlib
  libavutil      54. 28.100 / 54. 28.100
  libavcodec     56. 47.100 / 56. 47.100
  libavformat    56. 40.100 / 56. 40.100
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 21.100 /  5. 21.100
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.100 /  1.  2.100
  libpostproc    53.  3.100 / 53.  3.100
Guessed Channel Layout for  Input Stream #0.0 : stereo
Input #0, wav, from 'test.wav':
  Duration: 00:00:30.01, bitrate: 1411 kb/s
    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 2 channels,
 s16, 1411 kb/s
Output #0, matroska, to 'tta.mkv':
  Metadata:
    encoder         : Lavf56.40.100
    Stream #0:0: Audio: tta, 44100 Hz, stereo, s16, 128 kb/s
    Metadata:
      encoder         : Lavc56.47.100 tta
Stream mapping:
  Stream #0:0 -> #0:0 (pcm_s16le (native) -> tta (native))
Press [q] to stop, [?] for help
size=    3384kB time=00:00:30.30 bitrate= 914.8kbits/s
video:0kB audio:3383kB subtitle:0kB other streams:0kB global headers:0kB muxing
overhead: 0.026357%
C:\>ffmpeg -i tta.mkv -f s16le tta.pcm
ffmpeg version N-73510-g033dc39 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.9.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-l
ibilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enab
le-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --en
able-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --ena
ble-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc
 --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enabl
e-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --ena
ble-decklink --enable-zlib
  libavutil      54. 28.100 / 54. 28.100
  libavcodec     56. 47.100 / 56. 47.100
  libavformat    56. 40.100 / 56. 40.100
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 21.100 /  5. 21.100
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.100 /  1.  2.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, matroska,webm, from 'tta.mkv':
  Metadata:
    ENCODER         : Lavf56.40.100
  Duration: 00:00:30.02, start: 0.000000, bitrate: 923 kb/s
    Stream #0:0: Audio: tta, 44100 Hz, stereo, s16 (default)
    Metadata:
      ENCODER         : Lavc56.47.100 tta
Output #0, s16le, to 'tta.pcm':
  Metadata:
    encoder         : Lavf56.40.100
    Stream #0:0: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s (default)
    Metadata:
      encoder         : Lavc56.47.100 pcm_s16le
Stream mapping:
  Stream #0:0 -> #0:0 (tta (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
Error while decoding stream #0:0: Invalid data found when processing input
size=    5040kB time=00:00:29.25 bitrate=1411.2kbits/s
video:0kB audio:5040kB subtitle:0kB other streams:0kB global headers:0kB muxing
overhead: 0.000000%

ffmpeg -i test.wav -f s16le test.pcm

tta.pcm is shorter than test.pcm

Change History (1)

comment:1 Changed 4 years ago by richardpl

  • Resolution set to wontfix
  • Status changed from new to closed

Not our bug. Bug is in Matroska specification.

Note: See TracTickets for help on using tickets.