Audio/Video out of sync on recorded stream
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
