Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#2232 closed defect (invalid)

Seeking in atrac3 breaks decoding

Reported by: ami_stuff Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords: atrac3 seek
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

when I cycle audio stream three times with "a" key (to track 24) then audio plays too fast / incorrectly

http://www.cccp-project.net/beta/test_files/%5bCCCP%5d_Mega_Weird_Audio_Test.mkv

C:\>ffplay -ast 21 [CCCP]_Mega_Weird_Audio_Test.mkv
ffplay version N-49268-ge9d443c Copyright (c) 2003-2013 the FFmpeg developers
  built on Jan 24 2013 23:27:01 with gcc 4.7.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libg
sm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --e
nable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --e
nable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --en
able-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable
-libxavs --enable-libxvid --enable-zlib
  libavutil      52. 15.103 / 52. 15.103
  libavcodec     54. 90.100 / 54. 90.100
  libavformat    54. 61.104 / 54. 61.104
  libavdevice    54.  3.102 / 54.  3.102
  libavfilter     3. 33.100 /  3. 33.100
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
[wmalossless @ 026f36e0] Bit-depth higher than 16 is not implemented. Update you
r FFmpeg version to the newest one from Git. If the problem still occurs, it mea
ns that your file has a feature which has not been implemented.
[wmalossless @ 026f99c0] Bit-depth higher than 16 is not implemented. Update you
r FFmpeg version to the newest one from Git. If the problem still occurs, it mea
ns that your file has a feature which has not been implemented.
[mpeg4 @ 02660be0] Invalid and inefficient vfw-avi packed B frames detected
[wmalossless @ 026f36e0] Bit-depth higher than 16 is not implemented. Update you
r FFmpeg version to the newest one from Git. If the problem still occurs, it mea
ns that your file has a feature which has not been implemented.
[wmalossless @ 026f99c0] Bit-depth higher than 16 is not implemented. Update you
r FFmpeg version to the newest one from Git. If the problem still occurs, it mea
ns that your file has a feature which has not been implemented.
Input #0, matroska,webm, from '[CCCP]_Mega_Weird_Audio_Test.mkv':
  Metadata:
    title           : Macross Plus - First Simulator Test
    creation_time   : 2006-08-07 03:59:51
  Duration: 00:01:03.71, start: 0.000000, bitrate: 6167 kb/s
    Stream #0:0(eng): Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658)
, yuv420p, 656x464 [SAR 1:1 DAR 41:29], SAR 116:123 DAR 4:3, 23.98 fps, 23.98 tb
r, 1k tbn, 23.98 tbc (default)
    Metadata:
      title           : Macross Plus - First Simulator Test
    Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s (default)
    Metadata:
      title           : AC3 6ch Audio
    Stream #0:2(jpn): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
    Metadata:
      title           : AC3 2ch Audio
    Stream #0:3(eng): Audio: mp3, 48000 Hz, stereo, s16p, 192 kb/s
    Metadata:
      title           : AudX HGHQ 6ch Audio
    Stream #0:4(eng): Audio: mp3, 48000 Hz, mono, s16p, 192 kb/s
    Metadata:
      title           : AudX SPBQ 6ch Audio
    Stream #0:5(jpn): Audio: sipr (0[1][0][0] / 0x0130), 16000 Hz, mono, flt, 16
 kb/s
    Metadata:
      title           : ACELP Sipro Mono Audio
    Stream #0:6(jpn): Audio: adpcm_ms ([2][0][0][0] / 0x0002), 11025 Hz, 2 chann
els, s16, 88 kb/s
    Metadata:
      title           : MS ADPCM 2ch Audio
    Stream #0:7(jpn): Audio: adpcm_ima_wav ([17][0][0][0] / 0x0011), 11025 Hz, 2
 channels, s16p, 88 kb/s
    Metadata:
      title           : IMA ADPCM 2ch Audio
    Stream #0:8(jpn): Audio: adpcm_yamaha ( [0][0][0] / 0x0020), 16000 Hz, 1 cha
nnels, s16, 64 kb/s
    Metadata:
      title           : Yamaha ADPCM Mono Audio
    Stream #0:9(jpn): Audio: adpcm_g726 (E[0][0][0] / 0x0045), 8000 Hz, mono, s1
6, 32 kb/s
    Metadata:
      title           : G.726 ADPCM Mono Audio
    Stream #0:10(jpn): Audio: pcm_mulaw ([7][0][0][0] / 0x0007), 8000 Hz, 2 chan
nels, s16, 128 kb/s
    Metadata:
      title           : ╬╝-Law 2ch Audio
    Stream #0:11(jpn): Audio: pcm_alaw ([6][0][0][0] / 0x0006), 8000 Hz, 2 chann
els, s16, 128 kb/s
    Metadata:
      title           : A-Law 2ch Audio
    Stream #0:12(jpn): Audio: gsm_ms (1[0][0][0] / 0x0031), 44100 Hz, mono, s16,
 71 kb/s
    Metadata:
      title           : GSM 6.10 Mono Audio
    Stream #0:13(jpn): Audio: truespeech ([34][0][0][0] / 0x0022), 8000 Hz, mono
, s16, 8 kb/s
    Metadata:
      title           : TrueSpeech Mono Audio
    Stream #0:14(jpn): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, 2 channels,
 fltp, 64 kb/s
    Metadata:
      title           : WMA7 2ch Audio
    Stream #0:15(jpn): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, 2 channels,
 fltp, 64 kb/s
    Metadata:
      title           : WMA8 2ch Audio
    Stream #0:16(jpn): Audio: wmavoice ([10][0][0][0] / 0x000A), 22050 Hz, mono,
 flt, 20 kb/s
    Metadata:
      title           : WMA9 Voice Mono Audio
    Stream #0:17(jpn): Audio: wmav2 (a[1][0][0] / 0x0161), 48000 Hz, 2 channels,
 fltp, 64 kb/s
    Metadata:
      title           : WMA9.2 Std 2ch Audio
    Stream #0:18(eng): Audio: wmapro (b[1][0][0] / 0x0162), 48000 Hz, 5.1, fltp,
 192 kb/s
    Metadata:
      title           : WMA9.1 Pro 6ch Audio
    Stream #0:19(jpn): Audio: wmapro (b[1][0][0] / 0x0162), 48000 Hz, stereo, fl
tp, 80 kb/s
    Metadata:
      title           : WMA9.1 Pro 2ch Audio
    Stream #0:20(eng): Audio: wmapro (b[1][0][0] / 0x0162), 48000 Hz, 5.1, fltp,
 192 kb/s
    Metadata:
      title           : WMA10 Pro 6ch Audio
    Stream #0:21(jpn): Audio: wmapro (b[1][0][0] / 0x0162), 48000 Hz, stereo, fl
tp, 64 kb/s
    Metadata:
      title           : WMA10 Pro 2ch Audio
    Stream #0:22(eng): Audio: wmalossless (c[1][0][0] / 0x0163), 48000 Hz, 6 cha
nnels, s32p, 1882 kb/s
    Metadata:
      title           : WMA9.1 Lossless 6ch Audio
    Stream #0:23(jpn): Audio: wmalossless (c[1][0][0] / 0x0163), 48000 Hz, 2 cha
nnels, s32p, 774 kb/s
    Metadata:
      title           : WMA9.1 Lossless 2ch Audio
    Stream #0:24(jpn): Audio: cook, 44100 Hz, stereo, fltp
    Metadata:
      title           : RA6 G2 Cook 2ch Audio
    Stream #0:25(jpn): Audio: atrac3, 44100 Hz, 2 channels, fltp
    Metadata:
      title           : RA8 ATRC 2ch Audio
    Stream #0:26(eng): Audio: cook, 44100 Hz, 5.1, fltp
    Metadata:
      title           : RA8 Cook 6ch Audio
    Stream #0:27(jpn): Audio: cook, 44100 Hz, stereo, fltp
    Metadata:
      title           : RA8 Cook 2ch Audio
    Stream #0:28(jpn): Audio: cook, 44100 Hz, mono, fltp
    Metadata:
      title           : RA8 Cook Mono Audio
    Stream #0:29(jpn): Audio: aac, 32000 Hz, stereo, fltp
    Metadata:
      title           : RA10 RAAC 2ch Audio
    Stream #0:30(jpn): Audio: aac, 44100 Hz, stereo, fltp
    Metadata:
      title           : RA10 RACP 2ch Audio
[mpeg4 @ 02660be0] Invalid and inefficient vfw-avi packed B frames detected
Frame changed from size:0x0 to size:656x464   3KB sq=    0B f=0/0
[wmalossless @ 026f36e0] Bit-depth higher than 16 is not implemented. Update you
r FFmpeg version to the newest one from Git. If the problem still occurs, it mea
ns that your file has a feature which has not been implemented.
[wmalossless @ 026f99c0] Bit-depth higher than 16 is not implemented. Update you
r FFmpeg version to the newest one from Git. If the problem still occurs, it mea
ns that your file has a feature which has not been implemented.
  19.54 A-V:  0.088 fd=  30 aq=    1KB vq=   36KB sq=    0B f=0/0

Change History (7)

comment:1 by Carl Eugen Hoyos, 11 years ago

Could you confirm that the same problem is also reproducible with the following command lines?
$ ffmpeg -ss 24 -i \[CCCP\]_Mega_Weird_Audio_Test.mkv -map 0:24 out24.wav
$ ffmpeg -ss 24 -i \[CCCP\]_Mega_Weird_Audio_Test.mkv -map 0:25 out25.wav
$ ffmpeg -ss 24 -i \[CCCP\]_Mega_Weird_Audio_Test.mkv -map 0:26 out26.wav
$ ffmpeg -ss 24 -i \[CCCP\]_Mega_Weird_Audio_Test.mkv -map 0:27 out27.wav
$ ffmpeg -ss 24 -i \[CCCP\]_Mega_Weird_Audio_Test.mkv -map 0:28 out28.wav

But not for other map values?

in reply to:  1 comment:2 by ami_stuff, 11 years ago

Replying to cehoyos:

Could you confirm that the same problem is also reproducible with the following command lines?
$ ffmpeg -ss 24 -i \[CCCP\]_Mega_Weird_Audio_Test.mkv -map 0:24 out24.wav
$ ffmpeg -ss 24 -i \[CCCP\]_Mega_Weird_Audio_Test.mkv -map 0:25 out25.wav
$ ffmpeg -ss 24 -i \[CCCP\]_Mega_Weird_Audio_Test.mkv -map 0:26 out26.wav
$ ffmpeg -ss 24 -i \[CCCP\]_Mega_Weird_Audio_Test.mkv -map 0:27 out27.wav
$ ffmpeg -ss 24 -i \[CCCP\]_Mega_Weird_Audio_Test.mkv -map 0:28 out28.wav

But not for other map values?

Yes I can reproduce this with ffmpeg as well.

comment:3 by Carl Eugen Hoyos, 11 years ago

Keywords: atrac3 seek added
Reproduced by developer: set
Status: newopen
Summary: ffplay: audio plays too fast / incorrectly after audio stream cycleSeeking in atrac3 breaks decoding
Version: unspecifiedgit-master

Afaict, the bug with cook is a duplicate of ticket #1605

$ ffmpeg -ss 24 -i \[CCCP\]_Mega_Weird_Audio_Test.mkv -map 0:25 out.wav
ffmpeg version N-49553-g13eb9fc Copyright (c) 2000-2013 the FFmpeg developers
  built on Feb  3 2013 14:58:47 with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl --disable-indev=jack
  libavutil      52. 17.100 / 52. 17.100
  libavcodec     54. 91.100 / 54. 91.100
  libavformat    54. 61.104 / 54. 61.104
  libavdevice    54.  3.103 / 54.  3.103
  libavfilter     3. 35.100 /  3. 35.100
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
[wmalossless @ 0x338cda0] Bit-depth higher than 16 is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[wmalossless @ 0x33932c0] Bit-depth higher than 16 is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[mpeg4 @ 0x32f3dc0] Invalid and inefficient vfw-avi packed B frames detected
[wmalossless @ 0x338cda0] Bit-depth higher than 16 is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[wmalossless @ 0x33932c0] Bit-depth higher than 16 is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
Guessed Channel Layout for  Input Stream #0.6 : stereo
Guessed Channel Layout for  Input Stream #0.7 : stereo
Guessed Channel Layout for  Input Stream #0.8 : mono
Guessed Channel Layout for  Input Stream #0.10 : stereo
Guessed Channel Layout for  Input Stream #0.11 : stereo
Guessed Channel Layout for  Input Stream #0.14 : stereo
Guessed Channel Layout for  Input Stream #0.15 : stereo
Guessed Channel Layout for  Input Stream #0.17 : stereo
Guessed Channel Layout for  Input Stream #0.22 : 5.1
Guessed Channel Layout for  Input Stream #0.23 : stereo
Guessed Channel Layout for  Input Stream #0.25 : stereo
Input #0, matroska,webm, from '[CCCP]_Mega_Weird_Audio_Test.mkv':
  Metadata:
    title           : Macross Plus - First Simulator Test
    creation_time   : 2006-08-07 03:59:51
  Duration: 00:01:03.71, start: 0.000000, bitrate: 6167 kb/s
    Stream #0:0(eng): Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 656x464 [SAR 1:1 DAR 41:29], SAR 116:123 DAR 4:3, 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
    Metadata:
      title           : Macross Plus - First Simulator Test
    Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s (default)
    Metadata:
      title           : AC3 6ch Audio
    Stream #0:2(jpn): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
    Metadata:
      title           : AC3 2ch Audio
    Stream #0:3(eng): Audio: mp3, 48000 Hz, stereo, s16p, 192 kb/s
    Metadata:
      title           : AudX HGHQ 6ch Audio
    Stream #0:4(eng): Audio: mp3, 48000 Hz, mono, s16p, 192 kb/s
    Metadata:
      title           : AudX SPBQ 6ch Audio
    Stream #0:5(jpn): Audio: sipr (0[1][0][0] / 0x0130), 16000 Hz, mono, flt, 16 kb/s
    Metadata:
      title           : ACELP Sipro Mono Audio
    Stream #0:6(jpn): Audio: adpcm_ms ([2][0][0][0] / 0x0002), 11025 Hz, stereo, s16, 88 kb/s
    Metadata:
      title           : MS ADPCM 2ch Audio
    Stream #0:7(jpn): Audio: adpcm_ima_wav ([17][0][0][0] / 0x0011), 11025 Hz, stereo, s16p, 88 kb/s
    Metadata:
      title           : IMA ADPCM 2ch Audio
    Stream #0:8(jpn): Audio: adpcm_yamaha ( [0][0][0] / 0x0020), 16000 Hz, mono, s16, 64 kb/s
    Metadata:
      title           : Yamaha ADPCM Mono Audio
    Stream #0:9(jpn): Audio: adpcm_g726 (E[0][0][0] / 0x0045), 8000 Hz, mono, s16, 32 kb/s
    Metadata:
      title           : G.726 ADPCM Mono Audio
    Stream #0:10(jpn): Audio: pcm_mulaw ([7][0][0][0] / 0x0007), 8000 Hz, stereo, s16, 128 kb/s
    Metadata:
      title           : μ-Law 2ch Audio
    Stream #0:11(jpn): Audio: pcm_alaw ([6][0][0][0] / 0x0006), 8000 Hz, stereo, s16, 128 kb/s
    Metadata:
      title           : A-Law 2ch Audio
    Stream #0:12(jpn): Audio: gsm_ms (1[0][0][0] / 0x0031), 44100 Hz, mono, s16, 71 kb/s
    Metadata:
      title           : GSM 6.10 Mono Audio
    Stream #0:13(jpn): Audio: truespeech ([34][0][0][0] / 0x0022), 8000 Hz, mono, s16, 8 kb/s
    Metadata:
      title           : TrueSpeech Mono Audio
    Stream #0:14(jpn): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 64 kb/s
    Metadata:
      title           : WMA7 2ch Audio
    Stream #0:15(jpn): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 64 kb/s
    Metadata:
      title           : WMA8 2ch Audio
    Stream #0:16(jpn): Audio: wmavoice ([10][0][0][0] / 0x000A), 22050 Hz, mono, flt, 20 kb/s
    Metadata:
      title           : WMA9 Voice Mono Audio
    Stream #0:17(jpn): Audio: wmav2 (a[1][0][0] / 0x0161), 48000 Hz, stereo, fltp, 64 kb/s
    Metadata:
      title           : WMA9.2 Std 2ch Audio
    Stream #0:18(eng): Audio: wmapro (b[1][0][0] / 0x0162), 48000 Hz, 5.1, fltp, 192 kb/s
    Metadata:
      title           : WMA9.1 Pro 6ch Audio
    Stream #0:19(jpn): Audio: wmapro (b[1][0][0] / 0x0162), 48000 Hz, stereo, fltp, 80 kb/s
    Metadata:
      title           : WMA9.1 Pro 2ch Audio
    Stream #0:20(eng): Audio: wmapro (b[1][0][0] / 0x0162), 48000 Hz, 5.1, fltp, 192 kb/s
    Metadata:
      title           : WMA10 Pro 6ch Audio
    Stream #0:21(jpn): Audio: wmapro (b[1][0][0] / 0x0162), 48000 Hz, stereo, fltp, 64 kb/s
    Metadata:
      title           : WMA10 Pro 2ch Audio
    Stream #0:22(eng): Audio: wmalossless (c[1][0][0] / 0x0163), 48000 Hz, 5.1, s32p, 1882 kb/s
    Metadata:
      title           : WMA9.1 Lossless 6ch Audio
    Stream #0:23(jpn): Audio: wmalossless (c[1][0][0] / 0x0163), 48000 Hz, stereo, s32p, 774 kb/s
    Metadata:
      title           : WMA9.1 Lossless 2ch Audio
    Stream #0:24(jpn): Audio: cook, 44100 Hz, stereo, fltp
    Metadata:
      title           : RA6 G2 Cook 2ch Audio
    Stream #0:25(jpn): Audio: atrac3, 44100 Hz, stereo, fltp
    Metadata:
      title           : RA8 ATRC 2ch Audio
    Stream #0:26(eng): Audio: cook, 44100 Hz, 5.1, fltp
    Metadata:
      title           : RA8 Cook 6ch Audio
    Stream #0:27(jpn): Audio: cook, 44100 Hz, stereo, fltp
    Metadata:
      title           : RA8 Cook 2ch Audio
    Stream #0:28(jpn): Audio: cook, 44100 Hz, mono, fltp
    Metadata:
      title           : RA8 Cook Mono Audio
    Stream #0:29(jpn): Audio: aac, 32000 Hz, stereo, fltp
    Metadata:
      title           : RA10 RAAC 2ch Audio
    Stream #0:30(jpn): Audio: aac, 44100 Hz, stereo, fltp
    Metadata:
      title           : RA10 RACP 2ch Audio
Output #0, wav, to 'out.wav':
  Metadata:
    INAM            : Macross Plus - First Simulator Test
    ISFT            : Lavf54.61.104
    Stream #0:0(jpn): Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s
    Metadata:
      title           : RA8 ATRC 2ch Audio
Stream mapping:
  Stream #0:25 -> #0:0 (atrac3 -> pcm_s16le)
Press [q] to stop, [?] for help
[matroska,webm @ 0x32effc0] File is broken, keyframes not correctly marked!
size=    7040kB time=00:00:38.76 bitrate=1487.6kbits/s
video:0kB audio:7040kB subtitle:0 global headers:0kB muxing overhead 0.001720%

comment:4 by Michael Niedermayer, 11 years ago

Is there any player that can seek by using the atrac3 stream ?

comment:5 by DonMoir, 11 years ago

Seeking back to beginning seems ok but not intermediate seeks.

Also, av_find_best_stream returns stream 22 for the audio stream which has a bit_depth of 24 which apparently is not currently supported for WMA9(AV_CODEC_ID_WMALOSSLESS) so it can't be opened.

Last edited 11 years ago by DonMoir (previous) (diff)

comment:6 by Michael Niedermayer, 11 years ago

Resolution: invalid
Status: openclosed

if theres no player that can seek in the atrac3 stream and considering ive also no idea on how one could seek in it i suspect the stream is not muxed in a way that allows seeking. Thus closing as invalid.
If someone finds a player that can seek in this stream then please reopen

in reply to:  3 comment:7 by Carl Eugen Hoyos, 11 years ago

Replying to cehoyos:

Afaict, the bug with cook is a duplicate of ticket #1605

Not a duplicate of ticket #1605 but still reproducible, seeking also fails with MPlayer:
$ mplayer -aid 25 -ac ra10cook (both -demuxer lavf and -demuxer mkv)

Note: See TracTickets for help on using tickets.