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 12th November 2008, 16:57   #1  |  Link
daimroc
Registered User
 
Join Date: Mar 2005
Posts: 65
use x264 in command line (without MEGUI or others frontends)

Hello:

I would like to make probes with x264 in command line without using MEGUI or other frontend.

But I have a problem, I put at the end of the command "video1.avs", so the input file is an avs script. I though that I can use directly the avs script, but I get two errors:


avis [error]: unsupported input format (DIB )
x264 [error]: could not open input file 'video1.avs'


How can I solve this problem?




Thanks.
Daimroc.
daimroc is offline   Reply With Quote
Old 12th November 2008, 17:15   #2  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
Try ConvertToYV12() at the end of your script. If that doesn't work, post your exact script and x264 command line.
Guest is offline   Reply With Quote
Old 12th November 2008, 17:26   #3  |  Link
daimroc
Registered User
 
Join Date: Mar 2005
Posts: 65
Well, using ConvertToYV12() in the avs script the problem is solved.




Thank you very much.
Daimroc.
daimroc is offline   Reply With Quote
Old 12th November 2008, 18:00   #4  |  Link
laserfan
Aging Video Hobbyist
 
Join Date: Dec 2004
Location: Off the Map
Posts: 2,461
If I may ask: is there an easy way to ID the input files colorspace i.e. that it Needs the ConvertToYV(12).

Can one put ConvertToYV(12) in *every* script or does this risk contamination or at least wasted CPU cycles?
laserfan is offline   Reply With Quote
Old 12th November 2008, 18:03   #5  |  Link
Dark Shikari
x264 developer
 
Dark Shikari's Avatar
 
Join Date: Sep 2005
Posts: 8,666
Quote:
Originally Posted by laserfan View Post
Can one put ConvertToYV(12) in *every* script or does this risk contamination or at least wasted CPU cycles?
No, its a nop if the source is YV12.
Dark Shikari is offline   Reply With Quote
Old 12th November 2008, 18:03   #6  |  Link
squid_80
Registered User
 
Join Date: Dec 2004
Location: Melbourne, AU
Posts: 1,963
Just put it at the end anyway, if it's not needed it doesn't chew up any time.

Edit: Damn it.
squid_80 is offline   Reply With Quote
Old 12th November 2008, 21:29   #7  |  Link
laserfan
Aging Video Hobbyist
 
Join Date: Dec 2004
Location: Off the Map
Posts: 2,461
Thanks for clarifying!!!
laserfan is offline   Reply With Quote
Old 14th November 2008, 07:07   #8  |  Link
foxyshadis
ангел смерти
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Lost
Posts: 9,558
Are you sure it was solved? Unless you used ImageSource, QTSource,or BlankClip to import the source, "unsupported input format (DIB )" always means an avisynth error. Unless you just fixed the real problem and added ConvertToYV12 at the same time.
foxyshadis is offline   Reply With Quote
Old 14th November 2008, 07:58   #9  |  Link
Snowknight26
Registered User
 
Join Date: Aug 2007
Posts: 1,430
Not always. Say you have a graph of source -> ffdshow, with ffdshow set to output strictly RGB32. If you use DirecShowSource() in conjunction with that graph, you will get that "unsupported input format (DIB )" error until you add ConvertToYV12().
Snowknight26 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 22:39.


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