Ticket #986 (closed defect: fixed)
windows named pipe seek
|Reported by:||setosha||Owned by:||michael|
|Version:||unspecified||Keywords:||windows named pipe seek|
|Blocking:||Reproduced by developer:||no|
|Analyzed by developer:||no|
I trying to use ffmpeg as fast video codec under windows. But windows standard input is very slow. So I switched to named pipes. It's up to 10x faster then standart input (pipe:). Don't ask me why...
So it's works just fine
ffmpeg -y -vcodec rawvideo -f rawvideo -pix_fmt rgb32 -r 60 -s 800x600 -i \\.\pipe\pipename out.mkv
But when I try to use it like this
ffmpeg -i \\.\pipe\pipename out.mkv
on some input formats ffmpeg says about bad input. Same binary stream transfered as
ffmpeg -i pipe: out.mkv
works just fine (not so fast, but works). Seems ffmpeg trying to seek, but fails.
Is it possible to disable file seeking?
You can use file name to check pipe it or not \\.\pipe\*
Or use GetFileType function.
Or test file seeking abilities with SetFilePointer
Or just add command line argument -noseek or something
Or somthing like pipe:\\.\pipe\pipename (now not working now) or like pipe:pipename (not working too)