X265

jakkor
Joined: Wed Feb 25, 2009 5:07 pm
Org Profile

Re: X265

Post by jakkor » Wed Nov 13, 2013 12:04 pm

C:\jk\mblack\hansel\elysium>ffmpeg -i -f yuv4mpegpipe - | x265 --crf 18 --pre
set ultrafast -o ".265" - --y4m
ffmpeg version r58009 git-d14c88b Copyright (c) 2000-2013 the FFmpeg developers
built on Nov 10 2013 02:53:02 with gcc 4.8.2 (GCC)
libavutil 52. 52.100 / 52. 52.100
libavcodec 55. 41.100 / 55. 41.100
libavformat 55. 21.100 / 55. 21.100
libavdevice 55. 5.100 / 55. 5.100
libavfilter 3. 90.102 / 3. 90.102
libavresample 1. 1. 0 / 1. 1. 0
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 17.104 / 0. 17.104
libpostproc 52. 3.100 / 52. 3.100
-f: No such file or directory
x265 [error]: unable to open input file <->

my system winxp 32bit
avs file named elysium.avs

User avatar
l33tmeatwad
Joined: Wed Feb 16, 2005 3:22 pm
Location: Christiansburg, VA
Contact:
Org Profile

Re: X265

Post by l33tmeatwad » Wed Nov 13, 2013 12:24 pm

What version of AviSynth do you have installed? Does the script open in VirtualDub?
Software & Guides: AMVpack | AMV 101 | AviSynth 101 | VapourSynth 101
PixelBlended Studios: Website | Twitter | YouTube

User avatar
Qyot27
Surreptitious fluffy bunny
Joined: Fri Aug 30, 2002 12:08 pm
Status: Creepin' between the bullfrogs
Location: St. Pete, FL
Contact:
Org Profile

Re: X265

Post by Qyot27 » Wed Nov 13, 2013 1:04 pm

The problem seems to be that something about the Command Prompt is broken. It's not expanding the %1 and %~n1 placeholders correctly (insert obligatory 'this is why I prefer bash' comment). That might also serve to explain why running this stuff plain wasn't working either - if the Prompt is borked, then who knows what's actually wrong.
My profile on MyAnimeList | Quasistatic Regret: yeah, yeah, I finally got a blog

User avatar
l33tmeatwad
Joined: Wed Feb 16, 2005 3:22 pm
Location: Christiansburg, VA
Contact:
Org Profile

Re: X265

Post by l33tmeatwad » Wed Nov 13, 2013 2:18 pm

Qyot27 wrote:The problem seems to be that something about the Command Prompt is broken. It's not expanding the %1 and %~n1 placeholders correctly (insert obligatory 'this is why I prefer bash' comment). That might also serve to explain why running this stuff plain wasn't working either - if the Prompt is borked, then who knows what's actually wrong.
What brings you to that conclusion? I would assume the user would be complaining about software such as zarxgui not working if that were the case. I have heard that ffmpeg only works well with AviSynth 2.6, but I don't know exactly how that would error out.
Software & Guides: AMVpack | AMV 101 | AviSynth 101 | VapourSynth 101
PixelBlended Studios: Website | Twitter | YouTube

jakkor
Joined: Wed Feb 25, 2009 5:07 pm
Org Profile

Re: X265

Post by jakkor » Wed Nov 13, 2013 2:38 pm

Avisynth 2.6 latest alfa. Script works with zarx264qui

User avatar
Qyot27
Surreptitious fluffy bunny
Joined: Fri Aug 30, 2002 12:08 pm
Status: Creepin' between the bullfrogs
Location: St. Pete, FL
Contact:
Org Profile

Re: X265

Post by Qyot27 » Wed Nov 13, 2013 10:46 pm

l33tmeatwad wrote:
Qyot27 wrote:The problem seems to be that something about the Command Prompt is broken. It's not expanding the %1 and %~n1 placeholders correctly (insert obligatory 'this is why I prefer bash' comment). That might also serve to explain why running this stuff plain wasn't working either - if the Prompt is borked, then who knows what's actually wrong.
What brings you to that conclusion? I would assume the user would be complaining about software such as zarxgui not working if that were the case. I have heard that ffmpeg only works well with AviSynth 2.6, but I don't know exactly how that would error out.
If you look at the latest output, it's completely missing the input file name and the output filename is ".265". This is what points to the placeholders not expanding. It probably wouldn't affect Zarx264gui because the file open process is different and in the .bat generation it provides, it hardcodes the filename (it also doesn't pipe anything).

The rundown of what happened with FFmpeg's AviSynth support:
A) FFmpeg 1.2: still uses the old VFW-based AviSynth demuxer that was written by DivX and first committed back in 2006. Has no problems with either 2.5.8 or 2.6.
B) March 21st, 2013: Rewritten AviSynth demuxer that uses the library directly (like x264 does) gets committed.
C) The git version, and later FFmpeg 2.0, both have an issue with 2.5.8 that results in a crash - no error messages, just crash - when AviSynth has to use avs_get_row_size_p and avs_get_height_p through avs_bit_blt (in other words, any kind of real video; Version() was unaffected, and you could serve audio-only scripts through 2.5.8 without problems)
D) In August, this was patched to prevent 2.5.8 from even being used. The error message explicitly tells the user 2.5.8 isn't supported and that they should upgrade to 2.6. I can't remember, but FFmpeg 2.0.1 should contain this 'fix'.
E) 10 days after that, proper 2.5.8 support was restored*. The rewritten demuxer now has no gamebreaking issues with either 2.5.8 or 2.6. This proper support is present in git (since August 17th), FFmpeg 2.0.2 and FFmpeg 2.1.

*I actually got the commit message slightly wrong in regard to AvxSynth; it wasn't affected because it always ever used its own set of headers. That it happens to use 2.6's versions of those functions was just coincidence.
My profile on MyAnimeList | Quasistatic Regret: yeah, yeah, I finally got a blog

User avatar
l33tmeatwad
Joined: Wed Feb 16, 2005 3:22 pm
Location: Christiansburg, VA
Contact:
Org Profile

Re: X265

Post by l33tmeatwad » Wed Nov 13, 2013 11:17 pm

Ah thanks, good to know :)
Software & Guides: AMVpack | AMV 101 | AviSynth 101 | VapourSynth 101
PixelBlended Studios: Website | Twitter | YouTube

jakkor
Joined: Wed Feb 25, 2009 5:07 pm
Org Profile

Re: X265

Post by jakkor » Thu Nov 14, 2013 6:12 am

My avs file is elysium.avs. How should to look .bat file?

User avatar
Qyot27
Surreptitious fluffy bunny
Joined: Fri Aug 30, 2002 12:08 pm
Status: Creepin' between the bullfrogs
Location: St. Pete, FL
Contact:
Org Profile

Re: X265

Post by Qyot27 » Fri Nov 15, 2013 4:17 pm

Change the .bat to the following:

Code: Select all

ffmpeg -i "elysium.avs" -f yuv4mpegpipe "elysium.y4m"
pause
x265 --crf 18 --preset ultrafast -o "elysium.265" "elysium.y4m"
pause
If the script is serving something longer than a typical AMV, I'd suggest using Trim() to cut it down to 3 or minutes at the most. This is just for testing, because if you can run the commands independently, it'll show exactly where the problem is.
My profile on MyAnimeList | Quasistatic Regret: yeah, yeah, I finally got a blog

jakkor
Joined: Wed Feb 25, 2009 5:07 pm
Org Profile

Re: X265

Post by jakkor » Sat Nov 16, 2013 5:35 am


Locked

Return to “Video & Audio Help”