Opened 2 years ago

Last modified 5 months ago

#6895 open defect

mp3 file play fail

Reported by: tiejun.peng Owned by:
Priority: important Component: avformat
Version: git-master Keywords: mp3 probe regression
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

Summary of the bug: probe and play fail
How to reproduce:

./ffplay ~/音乐/music_mp3 
./ffprobe ~/音乐/music_mp3 
ffmpeg version
ffmpeg version N-89306-g5bea410 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
  configuration: --prefix=/usr/local/ffmpeg --samples=fate-suite/ --disable-yasm --enable-ffplay --disable-ffserver --toolchain=gcov --toolchain=valgrind-memcheck
  libavutil      56.  3.100 / 56.  3.100
  libavcodec     58.  6.101 / 58.  6.101
  libavformat    58.  2.103 / 58.  2.103
  libavdevice    58.  0.100 / 58.  0.100
  libavfilter     7.  5.100 /  7.  5.100
  libswscale      5.  0.101 /  5.  0.101
  libswresample   3.  0.101 /  3.  0.101

Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker.

Attachments (2)

music_mp3 (408.3 KB) - added by tiejun.peng 2 years ago.
mp3 music file probe and play fail
vlc-record-2017-12-09-01h02m32s-music_mp3-.mp3 (126.1 KB) - added by tiejun.peng 2 years ago.

Download all attachments as: .zip

Change History (13)

Changed 2 years ago by tiejun.peng

mp3 music file probe and play fail

comment:1 follow-up: Changed 2 years ago by tiejun.peng

The file can play success with VLC and probe success with mediainfo

comment:2 in reply to: ↑ 1 ; follow-up: Changed 2 years ago by cehoyos

  • Analyzed by developer unset
  • Component changed from ffplay to avformat
  • Keywords mp3 probe regression added; mp3dec removed
  • Priority changed from normal to important
  • Reproduced by developer set
  • Status changed from new to open

Replying to tiejun.peng:

The file can play success with VLC

Are you sure?
Playback sounds very, very bad here, as if the file were heavily damaged.

If there is an issue, it is a regression since a8bc175dd9cec09c1cbdc6e5e3bf8f59170162da.

comment:3 in reply to: ↑ 2 Changed 2 years ago by tiejun.peng

Replying to cehoyos:

Replying to tiejun.peng:

The file can play success with VLC

Are you sure?
Playback sounds very, very bad here, as if the file were heavily damaged.

If there is an issue, it is a regression since a8bc175dd9cec09c1cbdc6e5e3bf8f59170162da.

Yes,i'm sure. Playback sounds good with VLC media player 2.2.2 Weatherwax (revision 2.2.2-0-g6259d80).But playback sounds all noise with ffmpeg(git-master/3.4)

comment:4 Changed 2 years ago by cehoyos

If playback sounds all noise, why is it such a good idea to allow auto-detecting the file as mp3?

comment:5 Changed 2 years ago by tiejun.peng

The ffmpeg have two problems:mp3 container probe and decode. I have fixed the probe bug by myself and using other decode (not ffmpeg's avcode)can play ok now. I just think ffmpeg should fix the bug also.

Last edited 2 years ago by tiejun.peng (previous) (diff)

Changed 2 years ago by tiejun.peng

comment:6 Changed 2 years ago by cehoyos

Could you test your original sample with mpeg123 from https://www.mpg123.de?
I don't think your sample is valid, and while I did listen to contemporary music, I don't think this counts as music when played with vlc.

comment:7 Changed 2 years ago by tiejun.peng

The mpg123 sounds bad as ffmpeg master.
Just need download and install the VLC from http://www.videolan.org,
you will find the truth that the file is music not noise.

comment:8 follow-up: Changed 2 years ago by cehoyos

That was not my point:
Both madplay and mpg123 show a large number of decoding errors, don't you agree that this indicates the source file is invalid?

comment:9 in reply to: ↑ 8 ; follow-up: Changed 2 years ago by tiejun.peng

Replying to cehoyos:

That was not my point:
Both madplay and mpg123 show a large number of decoding errors, don't you agree that this indicates the source file is invalid?

I think the mp3 file is good! It can be play pefectly by VLC and Stagefright(Android platform) . Try to play with VLC, you can find the truth in a few minutes. it is chance to improve the mp3 decoder of ffmpeg.

comment:10 in reply to: ↑ 9 Changed 2 years ago by cehoyos

Replying to tiejun.peng:

I think the mp3 file is good! It can be play pefectly by VLC and Stagefright(Android platform).

Try to play with VLC, you can find the truth in a few minutes. it is chance to improve the mp3 decoder of ffmpeg.

When you play the file music_mp3 with vlc, it sounds different from the file vlc-record-2017-12-09-01h02m32s-music_mp3-.mp3​you attached here?

Last edited 2 years ago by cehoyos (previous) (diff)

comment:11 Changed 5 months ago by Balling

Hahaha! Adobe Audition 2020 says there is metadata corrupted file and the file could not be read AND THEN OPENS IT SUCCESSFULLY and it even sounds good enough! Bug in Audition?

Last edited 5 months ago by Balling (previous) (diff)
Note: See TracTickets for help on using tickets.