Skip navigation
joyrex
Currently Being Moderated

Audio/Video out of sync on recorded stream

Feb 10, 2014 4:19 AM

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

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points