By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.
Bug 992 - Amarok displays incorrect track lengths
Summary: Amarok displays incorrect track lengths
Status: RESOLVED INVALID
Alias: None
Product: TDE
Classification: Unclassified
Component: other (any) (show other bugs)
Version: 3.5.13 [Trinity]
Hardware: All Linux
: P5 enhancement
Assignee: Timothy Pearson
URL:
Depends on:
Blocks:
 
Reported: 2012-05-05 20:00 CDT by Philip Ashmore
Modified: 2013-04-15 16:36 CDT (History)
4 users (show)

See Also:
Compiler Version:
TDE Version String:
Application Version:
Application Name:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philip Ashmore 2012-05-05 20:00:51 CDT
Steps to reproduce:
1. For the audio source I went to Youtube

   http://www.youtube.com/watch?v=o7QpX9FT2R8

   It's a static picture - it's the audio we're interested in.

2. Use "UnPlug" to download the mp4 file

   http://unplug.dbatley.com/

   It's also available as a Firefox/Iceweasel plug-in, making downloading of
   videos a click away.

3. Extract the audio and remove some cruft from the end

   avconv -i Origa-Inner\ Universe\ \ \[with\ lyrics\].webm -t 00:04:54.00 \
   Origa-Inner\ Universe\ \ \[with\ lyrics\].mp3

4. Verify the duration with avprobe

   avprobe Origa-Inner\ Universe\ \ \[with\ lyrics\].mp3

   I got "Duration: 00:04:54.03"

5. Add the mp3 file to an Amarok playlist

   Amarok thinks the track length is 29:24
Comment 1 Timothy Pearson 2012-05-05 21:53:03 CDT
Any chance you could attach the mp3 file (as long as there is no potential copyright issue!) for testing?

Thanks!
Comment 2 Philip Ashmore 2012-05-05 23:58:39 CDT
I thought that by providing a URL I was neatly side-stepping the copyright issue :-P

Like I said in the "Steps to reproduce", all you need is Firefox, UnPlug and ffmpeg to get the mp3 file.

Your computer needs to do this anyway so you can hear the audio from YouTube.
Comment 3 Timothy Pearson 2012-05-06 01:52:45 CDT
(In reply to comment #2)
> I thought that by providing a URL I was neatly side-stepping the copyright
> issue :-P

No, as it opens me to liability for accessing copyrighted material without a license.

> Like I said in the "Steps to reproduce", all you need is Firefox, UnPlug and
> ffmpeg to get the mp3 file.
> 
> Your computer needs to do this anyway so you can hear the audio from YouTube.

Why?
Comment 4 Darrell 2012-05-06 12:17:05 CDT
Philip,

I noticed while playing the video in my browser the file was automatically segregated into 6 smaller files. Curious, I downloaded unplug but that plugin needs additional support tools for this particular video (rtmpdump). Therein lies a probable clue of what is happening. That is, this video is not an ordinary run-of-the-mill video.

rtmp is the same protocol used by hulu.com, although those folks add encryption to the process to prevent copying.

Extracting audio from most videos is a straightforward process with ffmpeg, but this particular video is streamed with rtmpdump. I'm no audio-video expert, but I have converted standard youtube videos and I never saw a timing problem in amarok. I only used ffmpeg and never used avconv.

My first hunch is the conversion tools. Amarok could be using a flawed method to produce the timing information, but I'd like to see different conversion methods before debugging that path.

Would you please use ffmpeg to extract the audio to an mp3 audio file and then test that particular conversion in amarok?

To provide further data, please run some additional sample tests with other videos that don't use rtmpdump and see whether amarok still gets the timing incorrect.
Comment 5 Darrell 2013-04-13 14:50:18 CDT
Can the OP still validate this report that problem is Amarok and not the conversion tools?

I used youtube-dl to download the video linked in the original post. youtube-dl uses rtmpdump to download a full single video file.

I used ffmpeg to extract the audio as an mp3 (ffmpeg -i -vn).

Amarok showed a track length of 5:16 . The youtube video is 5:16 in length.
Comment 6 Philip Ashmore 2013-04-15 16:25:36 CDT
Yeah, it looks like it was an ffmpeg problem - I just tried converting one of those problem webms and even the file size is different - Amarok and ffprobe now agree on the duration.
Feel free to close this bug.
Comment 7 Timothy Pearson 2013-04-15 16:36:17 CDT
Closing at request of reporter.