Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(376)

Issue 353563002: Fix corrupted audio and video at playback start in ogg containers. (Closed)

Created:
6 years, 6 months ago by DaleCurtis
Modified:
6 years, 5 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Project:
chromium
Visibility:
Public.

Description

Fix corrupted audio and video at playback start in ogg containers. When demuxing ogg containers, FFmpeg will seek to the first packet in the chosen stream that matches the seek criteria. However, it does not advance or rewind other streams in the container to match this timeline. It's an open question whether FFmpeg is doing the wrong thing here: http://lists.ffmpeg.org/pipermail/ffmpeg-devel/2014-June/159212.html To keep things working in the meantime negative audio start times will be clipped to zero when being considered for seeking. Additional fixes: - Fixes non-audio timestamps being incorrectly offset when negative timestamps are discarded from the audio stream. BUG=387996 TEST=new unittest, extended existing tests. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=280720

Patch Set 1 : Cleanup. #

Patch Set 2 : Crash fix. #

Total comments: 2

Patch Set 3 : Oggify. #

Total comments: 1

Patch Set 4 : Rebase. #

Patch Set 5 : Remove file code. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -35 lines) Patch
M media/filters/ffmpeg_demuxer.h View 1 2 3 chunks +10 lines, -7 lines 0 comments Download
M media/filters/ffmpeg_demuxer.cc View 1 2 3 4 8 chunks +51 lines, -22 lines 0 comments Download
M media/filters/ffmpeg_demuxer_unittest.cc View 1 2 3 4 1 chunk +62 lines, -6 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
DaleCurtis
Seeking is hard, lets go shopping? :o
6 years, 6 months ago (2014-06-24 00:16:22 UTC) #1
DaleCurtis
PS#2 fixes a seeking issue. See the bug for details.
6 years, 6 months ago (2014-06-24 01:43:34 UTC) #2
acolwell GONE FROM CHROMIUM
I have concerns about this change. It really seems like this sort of logic should ...
6 years, 6 months ago (2014-06-25 16:32:44 UTC) #3
DaleCurtis
I'll try and craft a minimized test case (or better yet, try and use the ...
6 years, 6 months ago (2014-06-25 20:37:56 UTC) #4
DaleCurtis
Message sent to upstream: http://lists.ffmpeg.org/pipermail/ffmpeg-devel/2014-June/159212.html
6 years, 6 months ago (2014-06-25 22:38:41 UTC) #5
DaleCurtis
The reply upstream is that ffmpeg doesn't guarantee packet order on timestamps on file position. ...
6 years, 6 months ago (2014-06-26 23:52:08 UTC) #6
acolwell GONE FROM CHROMIUM
On 2014/06/26 23:52:08, DaleCurtis wrote: > The reply upstream is that ffmpeg doesn't guarantee packet ...
6 years, 5 months ago (2014-06-27 16:35:00 UTC) #7
DaleCurtis
PTAL. I've reworked the patch to be clarify that all these fixups are specifically for ...
6 years, 5 months ago (2014-06-27 20:52:32 UTC) #8
DaleCurtis
https://codereview.chromium.org/353563002/diff/110001/media/filters/ffmpeg_demuxer.cc File media/filters/ffmpeg_demuxer.cc (right): https://codereview.chromium.org/353563002/diff/110001/media/filters/ffmpeg_demuxer.cc#newcode693 media/filters/ffmpeg_demuxer.cc:693: // FFmpeg doesn't guarantee packets will be in timestamp ...
6 years, 5 months ago (2014-06-27 21:10:33 UTC) #9
DaleCurtis
I've pulled out the seek ( https://codereview.chromium.org/353163004/ ) fix so there's no rush on this ...
6 years, 5 months ago (2014-06-27 22:23:21 UTC) #10
DaleCurtis
As discussed offline, I've removed the file pos workaround and disabled the test for now.
6 years, 5 months ago (2014-06-30 21:19:20 UTC) #11
acolwell GONE FROM CHROMIUM
lgtm
6 years, 5 months ago (2014-06-30 22:33:02 UTC) #12
DaleCurtis
The CQ bit was checked by dalecurtis@chromium.org
6 years, 5 months ago (2014-06-30 22:37:41 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/353563002/150001
6 years, 5 months ago (2014-06-30 22:38:58 UTC) #14
commit-bot: I haz the power
6 years, 5 months ago (2014-07-01 00:58:33 UTC) #15
Message was sent while issue was closed.
Change committed as 280720

Powered by Google App Engine
This is Rietveld 408576698