X265

This forum is for video and audio help and discussion.

Re: X265

Postby 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
Qyot27
Surreptitious fluffy bunny
 
Joined: 30 Aug 2002
Location: St. Pete, FL
Status: Creepin' between the bullfrogs

Re: X265

Postby l33tmeatwad » Wed Nov 13, 2013 11:17 pm

Ah thanks, good to know :)
Sites: Website | Facebook | Twitter | YouTube
Guides & Scripts: AMV 101 | AviSynth 101 | Anime Upscale
PixelBlended Studios: Website | Facebook | Tumblr | Twitter | YouTube
User avatar
l33tmeatwad
 
Joined: 16 Feb 2005
Location: Charleston, SC
Status: Trolling

Re: X265

Postby jakkor » Thu Nov 14, 2013 6:12 am

My avs file is elysium.avs. How should to look .bat file?
jakkor
 
Joined: 25 Feb 2009

Re: X265

Postby 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
User avatar
Qyot27
Surreptitious fluffy bunny
 
Joined: 30 Aug 2002
Location: St. Pete, FL
Status: Creepin' between the bullfrogs

Re: X265

Postby jakkor » Sat Nov 16, 2013 5:35 am

error
video
[url]
Code: Select all
http://www.filefactory.com/file/vxb91c07nnb/errorx265_mp4
[/url]
jakkor
 
Joined: 25 Feb 2009

Re: X265

Postby jakkor » Sat Nov 16, 2013 3:25 pm

It works when I added
ffmpeg -i "paranoia.avs" -an -pix_fmt yuv420p -f yuv4mpegpipe "paranoia.y4m"
pause
x265 --crf 25 --preset fast -o "paranoia.265" "paranoia.y4m"
pause

but I don't know what this. I found this here
http://forum.videohelp.com/threads/3577 ... ngw-builds
jakkor
 
Joined: 25 Feb 2009

Re: X265

Postby Qyot27 » Sat Nov 16, 2013 7:20 pm

It's because the rext stuff hasn't been fully fleshed out in the HEVC standard (or x265) yet, so you have to convert it to YV12. It'd also have worked if you added ConvertToYV12() to the end of the script.
My profile on MyAnimeList | Quasistatic Regret: yeah, yeah, I finally got a blog
User avatar
Qyot27
Surreptitious fluffy bunny
 
Joined: 30 Aug 2002
Location: St. Pete, FL
Status: Creepin' between the bullfrogs

Re: X265

Postby jakkor » Sun Nov 17, 2013 4:09 am

File y4m is very large about 100gb so have to have big free spece disk.

ffmpeg -i "red.avs" -an -pix_fmt yuv420p -f yuv4mpegpipe "red.y4m"

x265 --crf 25 --preset faster -o "red.265" "red.y4m"
ConvertToYV12()
is it good now?


How to join file x265 with audio aac?
jakkor
 
Joined: 25 Feb 2009

Re: X265

Postby jakkor » Sun Nov 17, 2013 3:28 pm

Of course in avisynth convertoyuv.
jakkor
 
Joined: 25 Feb 2009

Re: X265

Postby Qyot27 » Mon Nov 18, 2013 6:36 pm

If you have ConvertToYV12() in the AviSynth script, there's no need to use -pix_fmt yuv420p when using ffmpeg. The fact that y4m is uncompressed is why I said that if it's longer than an AMV, use Trim() to run the test.

As it stands, muxing it together with audio is only possible with mp4box right now. L-SMASH's support for it is experimental and has been disabled until the extension to the 14496-15 3rd edition is ratified, and the work on getting it into Matroska is hinged upon both that ratification and the work DivX is doing on the patches to mkvtoolnix. That's why I said this is where the real problem is.
My profile on MyAnimeList | Quasistatic Regret: yeah, yeah, I finally got a blog
User avatar
Qyot27
Surreptitious fluffy bunny
 
Joined: 30 Aug 2002
Location: St. Pete, FL
Status: Creepin' between the bullfrogs

Re: X265

Postby jakkor » Tue Nov 19, 2013 12:50 am

I tried gdsmux part of haali. File x265 read but after 1,4% not muxing .
jakkor
 
Joined: 25 Feb 2009

Re: X265

Postby Qyot27 » Tue Nov 19, 2013 7:52 am

I repeat: As it stands, muxing it together with audio is only possible with mp4box right now.

Avoid MKV for HEVC for the time being (and furthermore, there is zero chance that Haali's muxer would work for HEVC, since the last update was June 23rd), because the files may not work in the future.
My profile on MyAnimeList | Quasistatic Regret: yeah, yeah, I finally got a blog
User avatar
Qyot27
Surreptitious fluffy bunny
 
Joined: 30 Aug 2002
Location: St. Pete, FL
Status: Creepin' between the bullfrogs

Re: X265

Postby M'o'l » Thu Aug 14, 2014 10:26 am

Bump, sorry for necro'. Is h.265 any better yet? :dino:
GO MAGIC CARP USE SPLASH ATTACK.
User avatar
M'o'l
Strawberry Pie
 
Joined: 22 Feb 2007
Location: Sweden
Status: Problem, Officer?

Re: X265

Postby mirkosp » Thu Aug 14, 2014 10:59 am

It got better but not worth it yet, imho.
Image
User avatar
mirkosp
MODkip
 
Joined: 24 Apr 2006
Location: Gallarate (VA), Italy
Status: (」・ワ・)」(⊃・ワ・)⊃

Re: X265

Postby jakkor » Thu Aug 21, 2014 5:42 am

Hey
Since 09.03.2014 version ffmpeg included libx265 but crf doesn't work command line

ffmpeg.exe -i video.mkv -vcodec libx265 -preset veryslow -b:crf 24 video265.mp4

bitrate always too low about 400kb and doesnt deppend crf=20 crf=26 still bitrate and size the same
jakkor
 
Joined: 25 Feb 2009

PreviousNext

Return to Video & Audio Help

Who is online

Users browsing this forum: No registered users and 1 guest