Bug 1216 - GLMediaPlayer: MP3 Playback Issues (duration and EOS)
Summary: GLMediaPlayer: MP3 Playback Issues (duration and EOS)
Alias: None
Product: Jogl
Classification: JogAmp
Component: video (show other bugs)
Version: 2.5.0
Hardware: pc_all windows
: --- major
Assignee: Sven Gothel
Depends on: 1173
  Show dependency treegraph
Reported: 2015-09-14 09:59 CEST by Kruno Dropucic
Modified: 2023-07-12 01:34 CEST (History)
2 users (show)

See Also:
SCM Refs:
Workaround: ---

Source Files (original and modified ones) (30.16 KB, application/x-zip-compressed)
2015-09-14 09:59 CEST, Kruno Dropucic

Note You need to log in before you can comment on or make changes to this bug.
Description Kruno Dropucic 2015-09-14 09:59:20 CEST
Created attachment 731 [details]
Source Files (original and modified ones)

1. Duration info and premature EOS detection - MP3's duration isn't detected right and their playback ends prematurely (few seconds earlier) depending on the used library (FFmpeg/Libav):
	- MP3 source: http://free-loops.com/file/Looney%20Tunes%20Theme-16677-Free-Loops.com.mp3.
	- Duration info (ms):
		- 13087 (Audacity),
		- 13113 (FFmpeg),
		- 13141 (Libav).
	- Test results:
		- Earlier EOS (Libav): http://pastebin.com/WhjrPRpd,
		- Even earlier EOS (FFmpeg): http://pastebin.com/uasVjJyh.

2. Short MP3s aren't reproduced probably due to EOS being detected prematurely:
	- MP3 source (1s "Beep 1" and 4s "Beep 20" used): http://www.soundjig.com/pages/soundfx/beeps.html.
	- Test results:
		- 1 second MP3 CANNOT be played (FFmpeg): http://pastebin.com/Ud223Pae,
		- 1 second MP3 CANNOT be played (Libav): http://pastebin.com/SCamw7R1,
		- 4 second MP3 CAN be played (FFmpeg): http://pastebin.com/E1ZEkEVn,
		- 4 second MP3 CANNOT played (Libav): http://pastebin.com/cGHWWBsD.

Two different libraries were used:
	- FFmpeg 20150905-git-a87ada5
	- Libav 11.3

Tested usign MovieSimple test demo with minimal changes.
Comment 1 Sven Gothel 2023-07-12 01:34:18 CEST
Resolved with last FFmpeg / GLMediaPlayer updates