After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 704520 - mp4mux audio video not sync exccept vlc player
mp4mux audio video not sync exccept vlc player
Status: RESOLVED INCOMPLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
1.1.1
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-07-19 05:47 UTC by troy
Modified: 2018-01-23 11:05 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description troy 2013-07-19 05:47:34 UTC
h264/aac recording muxed with mp4mux.
it is in sync with mplayer,vlc.But not in sync with other video player.
my pipeline is like that:

...x264enc--->h264parse-->mp4mux(video_0)---
                                            |--->test.mp4
...faac---->aacparse----->mp4mux(audio_0)---

the 'test.mp4' can play,but is in sync only with vlc player. 

I am fighting on it for several weeks,Who can help me ?
Comment 1 Matej Knopp 2013-07-20 12:45:52 UTC
The reason could be aac encoder delay, which is currently not captured and propagated to muxer in gstreamer.
Comment 2 Sebastian Dröge (slomo) 2013-07-21 09:03:48 UTC
Also related https://bugzilla.gnome.org/show_bug.cgi?id=620323


The encoder delay has to be put somewhere, for me the caps still feel like the best place for that even if it's not something negotiable.
Comment 3 Matej Knopp 2013-07-21 10:51:18 UTC
The thing here is - when there's no information about encoder delay in the file, QuickTime should assume 2112 samples. Common encoder delays are from 1024 (faac) to 2112 (core audio) samples,  so even if the decoder assumes wrong it shouldn't cause significant A/V sync problems. However with some files I've noticed audio being almost 80ms before the video in quicktime (iOS device), which is a lot.
Comment 4 Tim-Philipp Müller 2013-07-21 18:26:03 UTC
Perhaps the original reporter could clarify what he means with 'out of sync' - not perfectly synced, i.e 10s of milliseconds off, or are we talking about a/v sync being completely broken (seconds off, or drifting out of sync over time)?
Comment 5 troy 2013-07-22 00:52:40 UTC
(In reply to comment #4)
> Perhaps the original reporter could clarify what he means with 'out of sync' -
> not perfectly synced, i.e 10s of milliseconds off, or are we talking about a/v
> sync being completely broken (seconds off, or drifting out of sync over time)?



thank you ,it is a/v sync being completely broken (seconds off)
Comment 6 troy 2013-07-22 01:07:34 UTC
(In reply to comment #1)
> The reason could be aac encoder delay, which is currently not captured and
> propagated to muxer in gstreamer.

thank you my friend ,but what can i do? it is a/v sync being completely broken (seconds off)
Comment 7 troy 2013-07-22 01:34:49 UTC
(In reply to comment #3)
> The thing here is - when there's no information about encoder delay in the
> file, QuickTime should assume 2112 samples. Common encoder delays are from 1024
> (faac) to 2112 (core audio) samples,  so even if the decoder assumes wrong it
> shouldn't cause significant A/V sync problems. However with some files I've
> noticed audio being almost 80ms before the video in quicktime (iOS device),
> which is a lot.

thank you my friend ,but what can i do? it is a/v sync being completely broken
(seconds off),not delay i.e 10s of milliseconds off
Comment 8 Matej Knopp 2013-07-22 05:38:51 UTC
Seconds off means it is definitely something else, not encoder delay.
Comment 9 troy 2013-07-22 05:43:29 UTC
(In reply to comment #8)
> Seconds off means it is definitely something else, not encoder delay.

yes. but when i replace the 'mp4mux' with matroskamux and  generate the 'test.mkv'.  The 'test.mkv' is in sync with every all video player. The I am confused.
Comment 10 troy 2013-07-22 05:46:15 UTC
(In reply to comment #8)
> Seconds off means it is definitely something else, not encoder delay.

And I replaced 'mp4mux' with 'avimux',it is the same .'qtmux'--the 'test.mov' is just a little video delay,some millesecond. Just 'matroskamux' is in sync with all player perfectly.
Comment 11 Sebastian Dröge (slomo) 2013-07-22 06:58:44 UTC
Can you provide a testcase to reproduce this? What's your audio/video source?
Comment 12 Tim-Philipp Müller 2014-10-29 12:39:27 UTC
Setting NEEDINFO, we need a test case to reproduce this.
Comment 13 Tim-Philipp Müller 2018-01-23 11:05:20 UTC
Closing this bug report as no further information has been provided. Please feel free to reopen this bug report if you can provide the information that was asked for in a previous comment.
Thanks!