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. |
30th November 2009, 06:07 | #1 | Link |
x264 developer
Join Date: Sep 2005
Posts: 8,666
|
x264: enhanced Avisynth input
You don't need Avisynth scripts anymore. At least not unless you're filtering.
$ ./x264 "c:\OldE\Sample X.Men.Origins.Wolverine.mkv" -o NUL avs [info]: Trying FFmpegSource2... Indexing... succeeded avs [info]: 1920x1080 @ 23.99 fps (1816 frames) $ ./x264 "c:\OldE\LosslessKoishi.mkv" -o NUL avs [info]: Trying FFmpegSource2... not found avs [info]: Trying DSS2... succeeded avs [warning]: converting input clip to YV12 avs [info]: 640x480 @ 60.00 fps (795 frames) $ ./x264 "c:\OldE\vs720p.mpg" -o NUL make: Nothing to be done for `all'. avs [info]: Trying FFmpegSource2... not found avs [info]: Trying DSS2... not found avs [info]: Trying DirectShowSource... succeeded avs [warning]: converting input clip to YV12 avs [info]: 1280x720 @ 59.94 fps (5138 frames) $ ./x264 "c:\OldE\shortElephantsDream.avi" -o NUL make: Nothing to be done for `all'. avs [info]: Trying AVISource... succeeded avs [info]: 1280x720 @ 24.00 fps (1001 frames) Post questions and bug reports/issues here.
__________________
Follow x264 development progress | akupenguin quotes | x264 git status ffmpeg and x264-related consulting/coding contracts | Doom10 Last edited by Dark Shikari; 30th November 2009 at 08:02. |
30th November 2009, 06:56 | #2 | Link |
Registered User
Join Date: Aug 2007
Posts: 1,430
|
Are fps values written as fractions when using this new input method or are they still written as decimals by default (like they have before unless you specified)?
Last edited by Snowknight26; 30th November 2009 at 07:03. Reason: typo |
30th November 2009, 06:58 | #3 | Link |
Compiling Encoder
Join Date: Jan 2007
Posts: 1,348
|
General Comments:
1) Due to a limitation in the used Avisynth API, using Avisynth 2.6.x or higher will always result in the avs [warning]: converting input clip to YV12 message to appear. 2) The patch supports and uses avisynth x64 when built for win64. no, it does not magically bridge between x264 x64 and avisynth x86. continue to use avs2yuv or w/e for this situation. 3) Failing to have avisynth installed or having a broken/superbly old build of it will result in the avs [error]: failed to load avisynth message to appear. 4) the oldest version of avisynth that is known to be supported is 2.5.5, i did not try with older versions, they could very well be supported too. |
30th November 2009, 07:05 | #5 | Link |
Registered User
Join Date: Nov 2003
Posts: 1,281
|
Built-in resizing would be nice.
__________________
http://www.7-zip.org/ |
30th November 2009, 07:06 | #6 | Link | |
Compiling Encoder
Join Date: Jan 2007
Posts: 1,348
|
Quote:
the same reporting format is used here. the only difference is that avisynth automatically reduces the fps rate to relative primes, so x264 does not need to divide the numerator/denominator by their gcd like in the VFW version. |
|
30th November 2009, 07:13 | #7 | Link |
Compiling Encoder
Join Date: Jan 2007
Posts: 1,348
|
A) which resizer? there's only about 9-11 of them depending on which avisynth you're using.
B) make a script for the purpose of anything beyond just opening a file, adding a filtering engine to x264 would just be needlessly cumbersome |
30th November 2009, 07:35 | #8 | Link |
Registered User
Join Date: Nov 2003
Posts: 1,281
|
__________________
http://www.7-zip.org/ |
30th November 2009, 09:33 | #10 | Link | |
HDConvertToX author
Join Date: Nov 2003
Location: Cesena,Italy
Posts: 6,552
|
got some problem with ffmpegsource
Quote:
any hint ? EDIT: one suggestion add ffmpeg/mencoder as another source. if dss/dss2/avisource/ffmpegsource.. if all fails look if in folder is present ffmpeg/mencoder and use it to pipe raw to x264 that would be very handy BHH
__________________
HDConvertToX: your tool for BD backup MultiX264: The quick gui for x264 AutoMen: The Mencoder GUI AutoWebM: supporting WebM/VP8 Last edited by buzzqw; 30th November 2009 at 09:37. |
|
30th November 2009, 10:09 | #11 | Link | |
Registered User
Join Date: Feb 2006
Posts: 1,076
|
Quote:
Slightly related; AVS is in the proces of updating to 2.6. That version includes more color-planes lyke YV16 (4:2:2) /YV22 (4:4:4). Might this new avs-input be the first step to implement broader chorma handling / wider color-planes in x264 ? Last edited by G_M_C; 30th November 2009 at 10:14. |
|
30th November 2009, 10:34 | #13 | Link |
Spinner of yarns
Join Date: May 2009
Posts: 164
|
10L.
Code:
diff --git a/x264.c b/x264.c index c857f58..0e7d728 100644 --- a/x264.c +++ b/x264.c @@ -545,7 +545,7 @@ static int select_output( char *filename, const char *pipe_format, x264_param_t if( !strcmp( filename, "-" ) ) ext = pipe_format; - if( !strcasecmp( ext, ".mp4" ) ) + if( !strcasecmp( ext, "mp4" ) ) { #ifdef MP4_OUTPUT output = mp4_output; // FIXME use b_annexb=0
__________________
僕と契約して、L-SMASH developerになってよ! L-SMASH | L-SMASH Works | Opus-in-ISOBMFF specification and reference software |
30th November 2009, 12:14 | #15 | Link | ||
Registered User
Join Date: Feb 2008
Posts: 733
|
I have 2.5.8 and i get
Quote:
also Quote:
__________________
Last edited by juGGaKNot; 30th November 2009 at 12:17. |
||
30th November 2009, 12:49 | #17 | Link |
Spinner of yarns
Join Date: May 2009
Posts: 164
|
That delay derives from B-frames, and it's normal.
If that annoy you, 1): insert EditBox/edts (EditListBox/elst). 2): set 0 on the first CTS offset and subtract it from the all CTSs with DTS hacking.
__________________
僕と契約して、L-SMASH developerになってよ! L-SMASH | L-SMASH Works | Opus-in-ISOBMFF specification and reference software Last edited by VFR maniac; 30th November 2009 at 17:24. |
30th November 2009, 14:20 | #18 | Link |
Registered User
Join Date: Apr 2008
Posts: 1,181
|
@Dark Shikari
Is there any good of using an avisynth wrapper instead of directly reading from a DirectShow graph? FFMS2 also exports interface that allows a program to decode files and several programs are using it(e.g. AegiSub). And why do x264-devels stick to avisynth? With DSS you messed up with vfr file and those with inexactly fps in file header(e.g. 23.976fps VOBs show 29.97fps in DSS). You also lose AR information with avisynth but most dshow decoders will report it correctly. @VFR maniac Initial delay in mp4 and flv can be safely removed. IMO MPC-HC has problem dealing with initial delay. |
30th November 2009, 14:32 | #19 | Link | |
Spinner of yarns
Join Date: May 2009
Posts: 164
|
Quote:
MPC-HC's splitter is faithful about DTS+Offset and duration. x264 does not parse their timestamps, so the encoded video is to become CFR.
__________________
僕と契約して、L-SMASH developerになってよ! L-SMASH | L-SMASH Works | Opus-in-ISOBMFF specification and reference software Last edited by VFR maniac; 30th November 2009 at 15:01. |
|
|
|