[FFmpeg-user] ffmpeg stdout write performance on windows (buffering request)
Nicolas George
nicolas.george at normalesup.org
Thu Aug 16 21:35:57 CEST 2012
Le decadi 30 thermidor, an CCXX, Jason Anders a écrit :
> I'd like to update this RFE to status: discard :o)
>
> It turned out that reading stdin is dog slow when trying to do this:
> read(handle, buffer, w*h*3);
>
> I rewrote it to read from stdin in batches of 64K, and-a-bit until I
> get a full frame. After this minor change I could read frames in
> 8ms, as opposed to the ~330ms I had earlier.
If you need very high throughput, you should probably not be using pipes to
forward raw video data anyway. Using the API instead of the command-line
tool would be much more efficient.
> ----- Original Message ----- From: "Roger Pack"
Please do not top post on these mailing-list. And if you do not know what it
is, look it up.
Regards,
--
Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20120816/b6b8a4bf/attachment.asc>
More information about the ffmpeg-user
mailing list