libX265 for ffmpeg? [& later: RazPi Graphics]
Is the h265 codec(?) compiled for slarm64? I'm getting
Code:
Unknown encoder libx265 They took over 20 minutes each on my 6 core box @3.5Ghz using 850-1100% cpu averaging 2.5x normal speed while converting. I wanted to try one on my RazPi for comparison purposes, but ffmpeg is embarrassed for the h265 encoder. It might compete with my old twin core laptop. Edit: forgot to post the command: Code:
ffmpeg -i input.mp4 -c:v libx265 -vtag hvc1 output.mp4 |
I just had a look on my rpi4.
Code:
duncan@rpi-4:~$ ffmpeg -codecs | grep 26 Code:
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Big_Buck_Bunny_1080_10s_10MB.mp4': Dunc. |
Thanks for the fast reply. The video was actually 4.2G. I found my AMD box had Alien Bob's libX265, so I looked up the package, and got this:
Quote:
Code:
# git clone https://bitbucket.org/multicoreware/x265_git.git I never go too far on these timings tests. I will compile libX265 for it, but not ffmpeg. I'm ok, because I'm comparing myself with myself. Otherwise,these timing comparisons usually deteriorate into a little boy's "Whose willy is biggest?" competion:rolleyes: |
Edit: Unnecessary Post - ignore
|
OK this thread is finished from my POV for the moment. Not sorted, but finished.
I'm using a binary image from around the time of the 15.0 release with a slightly updated kernel. But it's light on development stuff. I tried building, but cmake puked thusly Code:
-- The C compiler identification is GNU 11.2.0 |
build script, x265-3.5-aarch64-1mara.txz
|
Quote:
To business, though: This command Code:
time ffmpeg -i New.Tricks.S09E07.Dead.Poets.1080p.WEB-DL.DDP2.0.H.264-squalor.mkv -c:v libx265 -vtag hvc1 New.Tricks.S09E07.Dead.Poets.1080p.WEB-DL.DDP2.0.H.265-squalor.mp4 Code:
Unknown encoder 'libx265' Does this mean I have to recompile ffmpeg? |
Quote:
|
Quote:
Thanks for your help, nevertheless. Maybe add that option to whatever ffmpeg script you use? |
all slarm64 uses original slackware64 scripts.
|
Quote:
Anyhow, we have the answer. I could just add libx265 to the unrestricted ffmpeg build on x86_64 and ffmpeg picked it up, whereas yours didn't. I gather it's the restricted build for the U.S. It's your choice what you distribute, of course. The other items to get restricted/unrestricted treatment were vlc and iirc some of the gst plugins. Alien does _a_lot_ of audio stuff so there could be others. You may be able to farm out doing alternative builds to whoever maintains the 'slackware.uk/slarm64' mirror site? None of the codecs are restricted there, but they are copyrighted in the US. |
Quote:
|
I always build (or re-build) ffmpeg to include x264, x265, xvidcore, and a whole host of other video related stuff.
SBo builds are available for most of these libraries, and are simple to modify for aarch64 architecture, though in the past I've also modified standard Slackware build scripts for my purpose. The standard Slackware build script has options to re-build ffmpeg in localities where things are less restrictive. It is not difficult to do. However, build times on a Pi are quite long compared to even modest x86_64 systems! If you build these things yourself, you will know that they are optimised for your hardware. Generic builds are OK, but can be "over-engineered". For example, AlienBob's VLC is a monster, though it does cover all bases on x86_64! -- Pete |
Quote:
I'd build for needs, and this is not a need. I think I built Quartus fpga software, which was a 15G download. But to be fair, most of that was chip data. My install was a 15.0 binary image which has to be upgraded to include the rest of 15.0. I'll pass on the timing test. I built ffmpeg before, and while not difficult, it was work On my standard AMD box (Ryzen 5 5600 6 cores/12 threads@3.5Ghz with 16G & nvme) it took over 20 minutes to convert a particular video from h264 to h265. The space saving was 4.0GB --> ~400Megs. I just wondered how long the Pi would take to do it, but I'm not building ffmpeg for that. EDIT: Yes, Alien's unrestricted build is huge. But it's a Swiss Army knife. His unrestricted ffmpeg is the same - hence it's attractiveness. Now that I have you, it's possible the slarm64 vlc won't play h265 videos. That's my media box. So I might have to switch them to something else. I'll have to find a good alternative that the Pi handles. |
My Pi 400 plays x265 just fine - with one proviso: It struggles with 4K! That has nothing to do with the media player or x265, but is a problem with the graphics driver. Even 1080 videos on mine have all four cores running at 80%+ simply because the hardware acceleration is not working yet. I don't think its working on any of the 64-bit distros, not even Pi's own! Slarm64 at least tries to play 4K, although it is VERY jittery.
SLackwareaarch64 can't even play 1080 on my system, and struggles with 720! We are promised better hardware graphics support in kernel 5.20/6 which is due in a month or so's time. The problem seems to be the Broadcom graphics chip. Although it is (allegedly) 4K capable, they have been slow/reluctant to release drivers for it. I'm not sure if the promised kernel drivers are reverse engineered or official releases. I guess we won't know if they work until they land... -- Pete |
All times are GMT -5. The time now is 04:31 PM. |