• Juliusz Chroboczek's avatar
    Implement audio-video sync in diskwriter. · db21575d
    Juliusz Chroboczek authored
    We used to simply synchronise on the first keyframe.  This
    could lead to important time offets, since every audio frame
    is a keyframe, while we only request video keyframes every
    four seconds.
    
    Fix that by parsing the RTCP synchronisation data and adjusting
    timestamp offsets accordingly.  If we have no RTCP sync, we simply
    assume that the first frames received are synchronised.
    db21575d
diskwriter_test.go 3.08 KB