Log in

View Full Version : stdIn support with x264?


Selur
31st March 2008, 18:04
writing a small gui to use on windows and linux systems I encountered the problem that most windows builds out there do not support reading from a pipe :(

I tested build from:
x264.nl -> no
celticDruid builds -> no
x264.tk -> no
Cef -> yes
(version that comes with megui -> no)
and the only builds supporting stdIn seem to be the builds from cef.

Since I haven't found the time to build my own x264 windows builds yet I wanted to ask if there's a patch out there to enable stdIn support for x264 or if just most of the people sharing their builds disable stdIn support when compiling?

Greetings

Selur

Dark Shikari
31st March 2008, 18:16
Why not just use a fifo (a named pipe)?

Selur
31st March 2008, 18:46
How can one use a named pipe in windows?
Works fine with mkfifo on linux systems, but I never found an easy way to do this on windows systems. I read some stuff a while ago but it seemed like a hell of work to do it and since cef's build works I assumed x264 supports it.
(atm. I'm using cef's build and connect mencoder (as decoder) directly to x264 under windows; on linux is use mkfifo since the linux version of mencoder does not support piping to stdOut)

Cu Selur

Dark Shikari
31st March 2008, 18:50
How can one use a named pipe in windows?
Works fine with mkfifo on linux systems, but I never found an easy way to do this on windows systems. I read some stuff a while ago but it seemed like a hell of work to do it and since cef's build works I assumed x264 supports it.
(atm. I'm using cef's build and connect mencoder (as decoder) directly to x264 under windows; on linux is use mkfifo since the linux version of mencoder does not support piping to stdOut)

Cu SelurDownload Cygwin; it has FIFO support.

Selur
31st March 2008, 19:12
Hmm,.. that's like using wine under linux, kind of kills the intention I had for the tool, but thanks for the info. I remeber it as an alternative.

Do you know anything specific if cef did something special with his builds or if the rest of the guys compiling x264 for windows just disabled stdIn somehow?

Cu Selur

MasterNobody
31st March 2008, 19:23
Selur
May be this patch will help you: http://mailman.videolan.org/pipermail/x264-devel/2008-March/004325.html

Selur
31st March 2008, 19:44
@MasterNobody: thanks for the link I'll try it when I find the time to do my own builds.

Reading the patch, it seems like when compiling with MinGW (not MSVC) stdin support gets broken and since most people use MinGW but not stdin, nobody complained. ;)

-> to all building x264 builds for the masses with MinGW: "Would be nice if you could apply the linked patch so that stdin support works under windows."

Cu Selur

Selur
4th April 2008, 15:13
for general information:
applying the patch mentioned my MasterNobody fixes the stdIn problem with MinGW. :)

Thanks again for the link :)

Cu Selur