VideoHelp Forum

Our website is made possible by displaying online advertisements to our visitors. Consider supporting us by disable your adblocker or Try ConvertXtoDVD and convert all your movies to DVD. Free trial ! :)
+ Reply to Thread
Results 1 to 5 of 5
  1. Hi,
    I can use x264.exe, but I really don't know how to use x265.exe. I want to do some testing, so I get a feeling of the encoder.
    There are so many sites, where I can download x265 builds, but which one should I choose?
    x264 is on videolan, which works fine for me. This is easy.

    I already found but I can't get one command line working for testing. Are there some sample command lines that work and I can test?
    I have some videoclips to reencode for testing.

    Thank you
    Quote Quote  
  2. x265 accepts only RAW YUV or --input - y4m specified if fed thru stdin,
    so in real world you should "prepare" videoinput somehow,
    I use builds --- by snowfag simply that was the first thing I found, ... i'd like to feed it with Avisynth script so I use:
    avs4x26x.exe -L x265_10bit.exe --crf 22 --vbv-bufsize 20000 --vbv-maxrate 20000 --output out.hevc input.avs

    or there is dedicated thread to x265, where you can find command lines and some info as well here , there might be examples how to make that yuv video using ffmpeg and then to feed it into x265 or all done in one line using stdin
    Last edited by _Al_; 9th Apr 2016 at 10:18.
    Quote Quote  
  3. What is raw YUV input? Isn't it possible to throw a mp4 file on it to encode?
    What is y4m? I read this already but I don't get it.
    Quote Quote  
  4. YUV is raw , uncompressed video in YUV color space, not RGB. It could be 4:2:0, 4:2:2 or 4:4:4. x265 should support all now. But use 4:2:0 in and out, most realistically.
    That YUV has to be generated from your MP4. That can be done with ffmpeg, not sure if that is correct, just copied it from that other thread :
    ffmpeg -i input.mp4 -an -pix_fmt yuv420p -f rawvideo -y video.yuv
    and then you have to encode it:
    x265.exe --crf 22 --width 640 --height 480 --rate 29.970 --frames ALL --input "video.yuv" --output "video.h265"
    again, not sure if it is correct 100%, just example what to do

    but that yuv could be really large file so it is ussually piped from that ffmpeg directly to x265, where x265 is beeing fed on need bases, that yuv is generated what x265 needs at a time, so no large yuv is generated, example:
    ffmpeg -i INPUT.mp4 -f yuv4mpegpipe -pix_fmt yuv420p - | x265 --y4m -o encoded.265 -
    Then you need tu mux your audio to MP4 (Mp4box) or MKV (mkvmerge)

    Or you can use just ffmpeg and its x265 libraries, no x265.exe directly, and muxing it into mp4:
    ffmpeg -i INPUT.Mp4 -an -x265-params crf=25 OUT.mkv

    look at here:
    Quote Quote  
  5. I did several tests, but there is much to do for compressing already H.264 compressed files I have.
    Thank you
    Quote Quote  

Similar Threads