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

Harald Jordan harald.jordan at redstream.at
Fri Jul 6 00:55:39 CEST 2012


Thanks for sharing your brain, Roger :-)
At this time i am using win32 named pipes in  Visual Studio 2010, basically 
it is my first time using named pipes.
..played with rtbufsize option, but you are right, this doesnt change 
anything.

I played with rtbufsize, but it did not change anything, exactly like you 
expected.
What can i do?

This is da log for a try with rtbufsize 2000000

ffmpeg started on 2012-07-06 at 00:38:37
Report written to "ffmpeg-20120706-003837.log"
Command line:
"c:\\ffmpeg.exe" -rtbufsize 2000000 -f rawvideo -r 25 -pix_fmt yuyv422 -s 
720x576 -r 25 -i "\\\\.\\pipe\\video40564000" -ac 2 -ar 48000 -f s16le -i 
"\\\\.\\pipe\\audio40564000" -strict experimental -vcodec libx264 -s 
720x576 -b:v 6438912 -r 8 -acodec aac -b:a 128k -ar 
32000 -y -report -y -report "c:\\dev\\ffmpegout.mov"
ffmpeg version N-42016-gc103dc0 Copyright (c) 2000-2012 the FFmpeg 
developers
  built on Jun 28 2012 20:19:55 with gcc 4.7.1
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect 
 --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass --enable-libcelt 
 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype  
--enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopenjpeg --enable-librtmp 
 --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libutvideo 
 --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx 
 --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      51. 63.100 / 51. 63.100
  libavcodec     54. 29.101 / 54. 29.101
  libavformat    54. 11.100 / 54. 11.100
  libavdevice    54.  0.100 / 54.  0.100
  libavfilter     3.  0.100 /  3.  0.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[rawvideo @ 000000000274fa60] File position before 
avformat_find_stream_info() is 0
[rawvideo @ 000000000274fa60] All info found
[rawvideo @ 000000000274fa60] Estimating duration from bitrate, this may be 
inaccurate
[rawvideo @ 000000000274fa60] File position after 
avformat_find_stream_info() is 829440
Input #0, rawvideo, from '\\.\pipe\video40564000':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0, 1, 1/25: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 
720x576, 25 tbr, 25 tbn, 25 tbc


-----Ursprüngliche Nachricht----- 
From: Roger Pack
Sent: Thursday, July 05, 2012 10:56 PM
To: FFmpeg user questions and RTFMs
Subject: Re: [FFmpeg-user] raw input from named pipes,order of frame 
delivery

> 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.

You're using cygwin named pipes?

> 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.

There is an rtbufsize option but that's probably not it here...hmm...
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user 



More information about the ffmpeg-user mailing list