[FFmpeg-user] raw input from named pipes, order of frame delivery
Roger Pack
rogerdpack2 at gmail.com
Fri Jul 6 01:38:20 CEST 2012
> 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?
There is an "abuffer" filter, but I don't know what is causing your
real behavior, unless maybe your parameters are wrong so one side is
getting "ahead" of the other, etc. Can you record streams separately?
More information about the ffmpeg-user
mailing list