FFMPEG SoundSource does not do sample accurate seeks

Bug #1286328 reported by Waylon Robertson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mixxx
Fix Released
Low
Tuukka Pasanen

Bug Description

OGG files do not render or play correctly, they sound like they are being played at slow slow rate, with empty samples in between, and on the waveform, it gets truncated. The log:
Debug [AnalyserQueue 1]: ffmpeg: libavcodec 'avcodec_decode_audio4' didn't succeed or frame not finished (File could also just end!)
Debug [AnalyserQueue 1]: ffmpeg: libavcodec 'av_read_frame' didn't succeed!
Debug [AnalyserQueue 1]: ffmpeg: Too less bytes 10240 needed 16384
Debug [AnalyserQueue 1]: ffmpeg: libavcodec 'av_read_frame' didn't succeed!
Debug [AnalyserQueue 1]: ffmpeg: Too less bytes 0 needed 16384

Works in Xine.

Using Ubuntustudio 13.10 64bit

Tags: ffmpeg
Revision history for this message
Waylon Robertson (wrobertson1981) wrote :

Effects Mixxx 1.12 alpha pre x64

Revision history for this message
Owen Williams (ywwg) wrote :

is the file stereo? mono? other?

Revision history for this message
Waylon Robertson (wrobertson1981) wrote :

Stereo

Revision history for this message
RJ Skerry-Ryan (rryan) wrote :

As we discovered this is a problem with SoundSourceFFMPEG. We need to build seek tables or something similar to how we do with SSMP3.

summary: - OGG files not being read correctly
+ FFMPEG SoundSource does not do sample accurate seeks
Changed in mixxx:
importance: Undecided → Low
status: New → Confirmed
tags: added: ffmpeg
Revision history for this message
Tuukka Pasanen (pasanen-tuukka) wrote :

Hmm.. actually FFMPEG has this table all ready because it's turned on. I'll get on this now I have more time.. I need little more specific usage example and what version of FFMPEG is used?

Changed in mixxx:
assignee: nobody → Tuukka Pasanen (pasanen-tuukka)
status: Confirmed → Incomplete
Revision history for this message
RJ Skerry-Ryan (rryan) wrote :

@Tuukka -- cool, thank you!

Revision history for this message
Tuukka Pasanen (pasanen-tuukka) wrote :

This seems to be more FFMPEG inner thing. That is little bit bad and this is going to take a while to find a workaround. @rryan Can you mark FFMPEG broken again because in current state it's next to nothing and I don't know can I get fix before Beta.

Revision history for this message
Tuukka Pasanen (pasanen-tuukka) wrote :

Now there is branch that should fix this issue for good: https://github.com/illuusio/mixxx/tree/ffmpeg-fix
Biggest problem currently is speed of seek it takes too long that human can notice it and also make this work on older FFmpeg and Avconv versions.

Changed in mixxx:
status: Incomplete → Fix Committed
status: Fix Committed → In Progress
Changed in mixxx:
status: In Progress → Fix Committed
RJ Skerry-Ryan (rryan)
Changed in mixxx:
milestone: none → 2.1.0
Changed in mixxx:
status: Fix Committed → Fix Released
Revision history for this message
Swiftb0y (swiftb0y) wrote :

Mixxx now uses GitHub for bug tracking. This bug has been migrated to:
https://github.com/mixxxdj/mixxx/issues/7329

lock status: Metadata changes locked and limited to project staff
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.