Skip to main content
Participant
February 10, 2014
Question

Audio/Video out of sync on recorded stream

  • February 10, 2014
  • 1 reply
  • 663 views

Hi,

i'm recording a stream server side using the stream object with pretty much the following code:

mystream = Stream.get("mp4:recording.mp4");

mystream.setBufferTime(5);

mystream.record();

mystream.play("live", -1, -1);

and stopping with:

mystream.record(false);

mystream.play(false);

After that i process the file with the f4v post-processing tool using the command:

f4vpp -i recording.mp4 -o output.mp4 -c

but no matter what i always get desynced audio and video and sometimes even the frame size is completely wrong, for example i get a 640x360 stream at 320x240 with both aspect ratio and size wrong.

What am i doing wrong? Is there a procedure that needs to be followed or a particular configuration to have usable recordings server side?

Thanks

    This topic has been closed for replies.

    1 reply

    Participant
    April 21, 2014

    Try to look at your framerate of video and audio. My experience is that if you play any other video clip of different framerate in the recording, you will see this problem