jplayer / jPlayer

jPlayer : HTML5 Audio & Video for jQuery
http://jplayer.org/
Other
4.6k stars 1.47k forks source link

Some MP3 files cause the jp-seek-bar to have no width #209

Closed mintsoft closed 9 years ago

mintsoft commented 10 years ago

I've got a few files which reliably cause the flash player to return 0 width for the .jp-seek-bar; I've unable to track it down to anything particular and it's reproducible with these files in O12, FF 28, Chromium 33.

Is there any known issues with the files or otherwise which would cause this? How can I assist in debugging this issue?

Many Thanks,

kenmcd commented 10 years ago

Do these MP3s have variable bit rate encoding?

mintsoft commented 10 years ago

Nope, 320kbit/sec CBR: ffmpeg -is output:

ffmpeg version 0.8.10-6:0.8.10-1, Copyright (c) 2000-2013 the Libav developers
  built on Feb  5 2014 17:15:30 with gcc 4.7.2
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
[mp3 @ 0x869fc60] max_analyze_duration reached
Input #0, mp3, from 'Johnny Cash - American III- Solitary Man - 02 - Solitary Man (feat. Tom Petty).mp3':
  Metadata:
    album           : American III: Solitary Man
    album_artist    : Johnny Cash
    title           : Solitary Man (feat. Tom Petty)
    track           : 2
    TLEN            : 145600
    genre           : Country
    publisher       : Sony BMG
    composer        : Neil Diamond
    artist          : Johnny Cash
    date            : 2000
  Duration: 00:02:25.65, start: 0.000000, bitrate: 321 kb/s
    Stream #0.0: Audio: mp3, 44100 Hz, stereo, s16, 320 kb/s
At least one output file must be specified
kenmcd commented 10 years ago

Flash Player can sometimes not like the meta data format created by some applications. Editing the meta data and re-saving using a player tool such as Winamp, Clementine, etc. can make an MP3 work properly in Flash Player. This has worked for me in the past when Flash Player is having a hard time determining the duration properly (when you see the duration or progress bar acting funny in a player). So try that.

After that I am out of ideas.

mintsoft commented 10 years ago

@kenmcd I see, so from your explorations the problem is always with the flash player?

kenmcd commented 10 years ago

No, not always, but it is a possibility. Flash Player expects standard format meta tags. For example, Apple iTunes uses its own proprietary format which – surprise, surprise – causes problems in Flash Player. Of course Apple would never cause such problems on purpose. ;-)

What I am saying is to check the meta data as a potential cause of this issue. Make sure the MP3 file has proper ID3v2 meta tags. This fixed a similar issue with MP3 duration and playback in another Flash-based player (Dewplayer).

If that does not fix the issue then the problem is elsewhere.