Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 AVC / H.264
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 31st March 2008, 18:04   #1  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,277
stdIn support with x264?

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
__________________
Hybrid here in the forum, homepage

Last edited by Selur; 31st March 2008 at 22:51.
Selur is offline   Reply With Quote
Old 31st March 2008, 18:16   #2  |  Link
Dark Shikari
x264 developer
 
Dark Shikari's Avatar
 
Join Date: Sep 2005
Posts: 8,666
Why not just use a fifo (a named pipe)?
Dark Shikari is offline   Reply With Quote
Old 31st March 2008, 18:46   #3  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,277
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
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 31st March 2008, 18:50   #4  |  Link
Dark Shikari
x264 developer
 
Dark Shikari's Avatar
 
Join Date: Sep 2005
Posts: 8,666
Quote:
Originally Posted by Selur View Post
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
Download Cygwin; it has FIFO support.
Dark Shikari is offline   Reply With Quote
Old 31st March 2008, 19:12   #5  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,277
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
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 31st March 2008, 19:23   #6  |  Link
MasterNobody
Registered User
 
Join Date: Jul 2007
Posts: 552
Selur
May be this patch will help you: http://mailman.videolan.org/pipermai...ch/004325.html
MasterNobody is offline   Reply With Quote
Old 31st March 2008, 19:44   #7  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,277
@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
__________________
Hybrid here in the forum, homepage

Last edited by Selur; 31st March 2008 at 19:51.
Selur is offline   Reply With Quote
Old 4th April 2008, 15:13   #8  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,277
for general information:
applying the patch mentioned my MasterNobody fixes the stdIn problem with MinGW.

Thanks again for the link

Cu Selur
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 13:13.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.