[Libav-user] Muxing sparse media streams

Kam kam187 at gmail.com
Tue Apr 26 11:28:12 CEST 2016

I'm having the same issue.  I have a rtsp/ts stream that has video, and
closes and reopens the audio stream when the far end has audio (or
doesn't).  I put all the audio into one track in a .mov container, but all
the players are ignoring the 'holes'.

Is there an easy way to insert silent frames when there is no audio?  I
would probably need some timers to check if no audio came in for some time
and then insert raw silent frames into the file.

I figured one hack might be to add a silent audio track as track 0 that
spans the whole video?  Any easy way to do that?

On Fri, Apr 22, 2016 at 1:07 PM, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:

> Nicolas George <george at ...> writes:
> > I suspect a lot of players, when showing audio and video,
> > sync on audio. Therefore you will probably need to
> > explicitly insert silence at the places you want it.
> WMP and vlc will play files with "holes" in the audio stream
> by increasing video playback speed, other players will just
> continue playing audio and video, leading to massive (and
> increasing) A/V desync, see ticket #4674.
> Carl Eugen
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20160426/191175c2/attachment.html>

More information about the Libav-user mailing list