Bug 1216

Summary: GLMediaPlayer: MP3 Playback Issues (duration and EOS)
Product: [JogAmp] Jogl Reporter: Kruno Dropucic <kdropucic>
Component: videoAssignee: Sven Gothel <sgothel>
Status: RESOLVED FIXED    
Severity: major CC: alan.zgb, kdropucic
Priority: ---    
Version: 2.5.0   
Hardware: pc_all   
OS: windows   
Type: DEFECT SCM Refs:
Workaround: ---
Bug Depends on: 1173    
Bug Blocks:    
Attachments: Source Files (original and modified ones)

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