[FFmpeg-user] raw input from named pipes, order of frame delivery

harald.jordan at redstream.at harald.jordan at redstream.at
Mon Jul 2 11:30:25 CEST 2012


I am writing a export Plugin for Rhozet Carboncoder that delivers  
uncompressed YUV and PCM Frames to named pipes. There is one pipe for  
the YUV data and one for the Audio.
The problem is, that the delivery of the YUV and PCM Frames is async.  
CarbonCoder delivers first 1 Audio sample that covers the next 120ms,  
then it delivers 3 video frames and so on....
In a testprogram where i deliver 40ms video, then 40ms audio and so  
on, everything works fine, but in the real program, ffmpeg blocks one  
of the pipes after like 80ms of delivered Material.

My first guess was to specify input framerate for the audio like:
-acodec s16le -ar 48000 -ac2 -r 8 -i \\.\pipe\audio

But this doesnt seem to work.

Is there any way to control the reading behaviour in a way i need it?


More information about the ffmpeg-user mailing list