If possible, please list out the steps. This is what I already know -
1. I have a original source video (either in MKV or Blu-ray disc remux).
2. I download x265 10bit from here - https://builds.x265.eu/. I want to do a 10bit encoding.
3. I opened command prompt and opened x265 from that.
After this, I'm not clear. I read somewhere that I have to convert my source to YUV format, but I haven't found anything anywhere. I can't believe after so much searching, I can't find anything to proceed. Please help.
+ Reply to Thread
Results 1 to 22 of 22
-
-
You can use e.g. ffmpeg to decode to YUV:
ffmpeg.exe -i "input.mkv" -f yuv4mpegpipe - | x265.exe - --y4m -o "output.265"
ffmpeg also has x265 integrated but the binaries you find online are often only 8 bit:
https://trac.ffmpeg.org/wiki/Encode/H.265Last edited by sneaker; 3rd Oct 2016 at 15:44. Reason: forgot the "-o"
-
https://ffmpeg.zeranoe.com/builds/
Here there are three different versions. Which one should I download, static, shared, dev?
Also, will this conversion reduce the quality? Please tell me in detail about what to do, how to use this ffmpeg and what to do after that. You can assume me to be a complete noob (Until now I only have used Staxrip CRF encoding which is very easy). This will help anyone new to this. -
If in doubt: static.
Technically every lossy conversion (like x264, x265 in non-lossless mode) will lose quality. Often, you will not notice any difference though (we call that "transparent"). How much quality is lost depends on the settings you use, mainly the bitrate (lower --crf = higher bitrate = less quality lost)
Download and extract ffmpeg and x265. Put ffmpeg.exe and x265.exe to where you want to work (or add them to Windows %PATH% to make them work anywhere). Start a command-prompt in the folder you want to work in (where your e.g. "input.mkv" is) by holding shift and right-click, "Open Command Window Here". Then enter the command I showed you in my last post. -
Oh no. I meant to ask if mkv to YUV conversion will cause loss of quality. If it does, x265 is inefficient? mkv to yuv to hevc?
Thank you so much for further steps! -
ffmpeg.exe -i "input.mkv" -f yuv4mpegpipe - | x265.exe - --y4m --crf=22 "output.265"
Is this correct? Now whatever x265 settings I want to use from here http://x265.readthedocs.io/en/default/cli.html, I should write them after --crf 22, right? -
The command order doesn't matter, mostly. All the same:
x265.exe - --y4m --crf 22 -o "output.265"
x265.exe --crf=22 -o "output.265" - --y4m
x265.exe - -o "output.265" --crf 22 --y4m
x265.exe --y4m --crf=22 -o "output.265" -
But: I made a small mistake. I forgot the "-o" that signals output file name. I edited my old post to correct this. -
An alternative solution would be avs4x26x if you just want to feed an AviSynth script output to x265 (or x264, or even x262?). This is just a "pipe bridge" so you don't need to save an intermediate YUV or Y4M file, instead the AviSynth output is fed to the encoder in RAM.
-
-
It should abort with an error message. Nothing else should happen.
You can add an extra line with the shutdown -s command at the end of a batch file if that's what you mean. -
Thanks a lot. Will this command line change in future updates? If so can I keep track of it anywhere?
-
Try the ampersand instead (a pipe chains output to input, but does not wait; and "shutdown" does not care about any input).
Multiple Commands On A Single Windows Command Line
Code:ffmpeg.exe -i "input.mkv" -f yuv4mpegpipe - | x265.exe - --y4m -o "output.hevc" && shutdown -s
-
Hey guys, does x265 support cropping? This is the code that I tried to crop black bars, but it isn't working.
ffmpeg.exe -i "input.mkv" -f yuv4mpegpipe - | x265.exe - --y4m --display-window 0,138,0,138 --overscan crop --crf=22 -o "output.hevc" -
The decoder may be directed to crop away this region before displaying the images...
In addition, I wonder if MediaInfo would report these flags in a "full" (CLI: -f) / "extended" (GUI: Debug menu) analysis. If yes, they are certainly stored in the bitstream; if no, you can't be sure if not just MediaInfo does not report them, and may need a different HEVC analyzer. -
Can you help me with the command line? My current default command line is this
Code:ffmpeg.exe -i "i.mkv" -f yuv4mpegpipe - | x265.exe - --y4m -o "o.265"
-
ffmpeg.exe -i "i.mkv" -vf crop=w=1920:h=804:x=0:y=138 -f yuv4mpegpipe - | x265.exe - --y4m -o "o.265"
https://ffmpeg.org/ffmpeg-filters.html#crop -
The brief option format of the "video filter" parameter (-vf ...) is possibly deprecated. I believe the the new verbose form (generic:specific) is recommended instead in new ffmpeg versions: -filter:v "..."; just similar to "-vcodec" vs. "-codec:v".
Last edited by LigH.de; 3rd Nov 2016 at 09:41.
Similar Threads
-
mkvtoolnix 8.9.0 mkvmerge from command line
By jshupert in forum MacReplies: 2Last Post: 7th Mar 2016, 09:57 -
PotPlayer: Command Line
By burningbush in forum Software PlayingReplies: 5Last Post: 7th Dec 2013, 17:54 -
How to Use x264 Command Line
By Anonymous344 in forum Newbie / General discussionsReplies: 37Last Post: 2nd Nov 2013, 08:49 -
NeoScene command-line encoding - any tricks?
By Taapo in forum Video ConversionReplies: 8Last Post: 15th May 2013, 19:04 -
Player with the command line.
By Belini in forum ProgrammingReplies: 2Last Post: 29th Mar 2012, 06:29