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

Reply
 
Thread Tools Search this Thread Display Modes
Old 19th December 2008, 14:58   #61  |  Link
asarian
Registered User
 
Join Date: May 2005
Posts: 1,462
Quote:
Originally Posted by burfadel View Post
Ah ok! For the couple of times it has happened to me, and its not just with the latest versions, I'm not sure how far back it would go (hasn't always done it), its always at the end of the encode! Its not a major issue since the encoded file is still fine, but it would be good if it didn't happen - I'm guessing that it would be a very difficult problem to find, and it may not even be x264 which is causing it. It could be avisynth... Are you using Avisynth v2.5.8 RC4?
I still use AviSynth 2.5.7, as I heard 2.5.8 is so radically different, it hardly even compares to 2.5.7 (okay, I exaggerate a bit, but there's some truth to it).

How could AviSynth be causing it, though, I wonder? I mean, even if it stopped serving frames, why would that cause x264 to hang? (as in: become unpollable to Windows). Still, using v2.5.8 RC4 might be worth the experiment.
__________________
Gorgeous, delicious, deculture!
asarian is offline   Reply With Quote
Old 19th December 2008, 18:31   #62  |  Link
burfadel
Registered User
 
Join Date: Aug 2006
Posts: 2,229
I haven't had any troubles with v2.5.8... except for that one possible problem which doesn't seem to do with avisynth after all! I hadn't mentioned about the 'crash' (not responding dialogue, nothing actually crashes!) because its not even repeatable, if you encode the same thing again the problem isn't there! I wonder if anyone else has found this?
burfadel is offline   Reply With Quote
Old 20th December 2008, 04:59   #63  |  Link
Audionut
Registered User
 
Join Date: Nov 2003
Posts: 1,281
Guys, please take these OT posts to a different thread.
Audionut is offline   Reply With Quote
Old 20th December 2008, 10:44   #64  |  Link
asarian
Registered User
 
Join Date: May 2005
Posts: 1,462
Quote:
Originally Posted by Audionut View Post
Guys, please take these OT posts to a different thread.
Trying to determine what causes x264 to become unresponsive in a Windows 64-bit environment is not off-topic for this thread.
__________________
Gorgeous, delicious, deculture!
asarian is offline   Reply With Quote
Old 20th December 2008, 12:17   #65  |  Link
squid_80
Registered User
 
Join Date: Dec 2004
Location: Melbourne, AU
Posts: 1,963
Yes it is. This thread is about x264 compiled specifically for windows x64. Your problem concerns running x86 x264 under a certain 64-bit version of windows. Since it's not a problem that is special to the builds in this thread it's OT.
squid_80 is offline   Reply With Quote
Old 20th December 2008, 15:47   #66  |  Link
burfadel
Registered User
 
Join Date: Aug 2006
Posts: 2,229
It is a little off topic, it was more a side mention as this problem could still apply to the x264 x64 version. As for me it only occurs at the very end of encoding (quite literally the file has been completely written), it could be related to the closing of the threads or something? - I'm not sure exactly what I'm talking about here but those that know what they're doing should know what I mean! If there is an issue with the closing of the threads/programme, it would also apply to the x64 version? It could well be a bug in Vista as well?...

I should also point out that calling it a Windows 64-bit environment is incorrect, as there are two versions of 64 bit Windows (including Vista). There's the x64 version of Vista and the not well known IA64 (Intel Itanium) version of Vista which are incompatible with each other
burfadel is offline   Reply With Quote
Old 20th December 2008, 17:03   #67  |  Link
techouse
Strictly Rhythm
 
techouse's Avatar
 
Join Date: Jul 2007
Location: Ljubljana, Slovenia
Posts: 166
But x64 is the more used one; haven't seen IA64 in years.

P.S.: Nice to see that there's some *nix competition under construction now
__________________
techouse is offline   Reply With Quote
Old 20th December 2008, 18:20   #68  |  Link
burfadel
Registered User
 
Join Date: Aug 2006
Posts: 2,229
I didn't even know there was an IA64 version of Vista until I saw separate Vista updates for it on the Microsoft download site . There must be a large enough number of IA64 systems out there for Microsoft to justify releasing an IA64 version of Vista.

Its a shame that a lot of programmes and filters used by people are no longer being developed, so there's almost no hope for x64 versions, such as most avisynth plugins, besweet (and the inability currently to use such things are Nero AAC encoder as part of the x64 chain), Virtualdubmod... and thats assuming Megui/Staxrip and others in x64.

I have heard there are different ways to get around this, one simple method being to stream frames to a memory buffer. This is done by using 32 bit x264 like normal, but with using a possible 'pass frames' method, stream the frames to a memory buffer (as long as its set up correctly) that can be separately accessed using a 64 bit version of x264. The x64 x264 can be accessed in theory by using the command prompt's 'call' command from x264 x86, such as 'call x264x64.cmd', where the .cmd file instructs to load the x64 version of x264. I'm not sure whether that would work or not, but it would be a good medium term workaround if it did and you'd still have a noticeable performance benefit.

Last edited by burfadel; 20th December 2008 at 18:23.
burfadel is offline   Reply With Quote
Old 20th December 2008, 18:45   #69  |  Link
techouse
Strictly Rhythm
 
techouse's Avatar
 
Join Date: Jul 2007
Location: Ljubljana, Slovenia
Posts: 166
I think that using a 64-bit *nix system with mplayer as the decoder is simpler than your method... Even for a *nix newbie.
__________________
techouse is offline   Reply With Quote
Old 20th December 2008, 18:56   #70  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Can't we pipe from 32-Bit ffmpeg or 32-Bit MEncoder to a 64-Bit x264 encoder ???
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊
LoRd_MuldeR is offline   Reply With Quote
Old 20th December 2008, 19:21   #71  |  Link
burfadel
Registered User
 
Join Date: Aug 2006
Posts: 2,229
There is a way to do it. Technically there's no reason a 32 bit process can't call a 64 bit process and vice-versa, its just Microsoft disallows it citing 'security' reasons. There are workarounds for it, at least from what I've heard
burfadel is offline   Reply With Quote
Old 20th December 2008, 19:24   #72  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Quote:
Originally Posted by burfadel View Post
There is a way to do it. Technically there's no reason a 32 bit process can't call a 64 bit process and vice-versa, its just Microsoft disallows it citing 'security' reasons. There are workarounds for it, at least from what I've heard
I know that a 32-Bit Process can call a 64-Bit one for sure.
For example ProcessExplorer itself is a 32-Bit process, but it creates a 64-Bit child process when running on 64-Bit Windows.
The question is: Can STDOUT be redirect from a 32-Bit process to a 64-Bit one? And if so, how to do it?
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 20th December 2008 at 19:28.
LoRd_MuldeR is offline   Reply With Quote
Old 20th December 2008, 19:31   #73  |  Link
squid_80
Registered User
 
Join Date: Dec 2004
Location: Melbourne, AU
Posts: 1,963
Quote:
Originally Posted by burfadel View Post
There is a way to do it. Technically there's no reason a 32 bit process can't call a 64 bit process and vice-versa, its just Microsoft disallows it citing 'security' reasons. There are workarounds for it, at least from what I've heard
I've never heard of this restriction. I know for a fact it's possible to pipe from 32-bit avs2yuv to 64-bit x264, similar to what Lord_MuldeR describes.
squid_80 is offline   Reply With Quote
Old 20th December 2008, 19:38   #74  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
What did I miss?

__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊
LoRd_MuldeR is offline   Reply With Quote
Old 20th December 2008, 19:43   #75  |  Link
burfadel
Registered User
 
Join Date: Aug 2006
Posts: 2,229
Thats pretty much what the restriction is, you can't call a 64 bit process from 32 bit and vice versa (hence the claim thats its not a valid Win32 application)
burfadel is offline   Reply With Quote
Old 20th December 2008, 20:11   #76  |  Link
clsid
*****
 
Join Date: Feb 2005
Posts: 5,647
You are confusing DLLs with processes I think.
__________________
MPC-HC 2.2.1
clsid is offline   Reply With Quote
Old 20th December 2008, 20:15   #77  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Quote:
Originally Posted by burfadel View Post
Thats pretty much what the restriction is, you can't call a 64 bit process from 32 bit and vice versa (hence the claim thats its not a valid Win32 application)
Quote:
Originally Posted by clsid View Post
You are confusing DLLs with processes I think.
Yes, passing data via STDOUT from a 32-Bit process to a 64-Bit process (or vice versa) should be possible.
That's because in that case we have to two completely separate processes. No 32-Bit and 64-Bit code is mixed in the same process.
I suspect I did not call it properly, because I didn't work with x264 and input from STDOUT so far...
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 20th December 2008 at 20:22.
LoRd_MuldeR is offline   Reply With Quote
Old 20th December 2008, 20:33   #78  |  Link
deets
Registered User
 
Join Date: Jan 2005
Location: london, england
Posts: 509
great stuff, is a nice 10% faster here as well ill keep an eye on this one
deets is offline   Reply With Quote
Old 20th December 2008, 20:42   #79  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
LOL. Stupid my used wrong syntax to create the pipe and overwrote x264_x64.exe with random data

It does work now, like this:


However I get some continuous horizontal shift in the output file. I suspect the color format is wrong. Any ideas?


[EDIT]

Here is a sample of what I get:
http://www.mediafire.com/file/kcy4n2...x64-avs2yuv.7z
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 20th December 2008 at 21:14.
LoRd_MuldeR is offline   Reply With Quote
Old 20th December 2008, 21:17   #80  |  Link
asarian
Registered User
 
Join Date: May 2005
Posts: 1,462
Quote:
Originally Posted by burfadel View Post
It is a little off topic, it was more a side mention as this problem could still apply to the x264 x64 version.
Precisely. I only referenced my bad experience with 32-bit x264 under Windows 2008 64-bit, with the question added whether this 64-bit version would not have similar problems.

Judging from LoRd_MuldeR's examples above, it seems you cannot just so easily create a 'drop-in' replacement environment for x264-64bit, so I may just stick bit x264 in a 32-bit OS for now.
__________________
Gorgeous, delicious, deculture!
asarian is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 15:05.


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