A 64bit kernel ain’t good enough, was having issues with Channels DVR and hardware transcoding. But debugging it with 32bit user land is too much work.
So I put Armbian on it. And AdGuard Home refused to work right with the old config, I couldn’t resolve anything, but could connect to the interface. Just move the config, run as root, and copy anything you need into the new config.
Too lazy to try and figure out what’s different between the two. Also installed the wrong version of AdGuard Home, probably a beta version or something, maybe a really old version, no idea. But the newest stable version didn’t work either.
Haven’t reinstalled Channels DVR yet, it’s installing a bunch of stuff from the txt file I made from Raspberry Pi OS.
You have to reinstall to get 64bit user land apparently. And I don’t want to reinstall Raspberry Pi OS, might as well switch the distro if I’m doing that.
Transcoding my recordings on Channels DVR to H265, removing the commercials would make it even smaller though, but I’m lazy. Found a script to convert using HandBrakeCLI, using it on Mac mini, since it has better video encoding. Just making a symlink from the old file to the mkv. If I used software transcoding on Channels DVR it worked, when playing in a browser.
Using Channels DVR on iPhone, worked, probably wasn’t even transcoding. I don’t want a half working Channels DVR, so I switched the distro.
I could have tried Podman, perhaps it would be 64bit user land.
Running ffmpeg-dl actually does something now, missing a library it looks like.
Looks like trying to install everything from that text file is going to take forever, couldn’t use the command that makes it one command, as some packages aren’t available. And I don’t want to remove all those from the file. So using a while loop. I’d give you the command, but it’s still running, and no longer in clipboard history, and site with command not opened anymore.
Maybe hardware transcoding doesn’t work at all in Armbian. No idea, still waiting for a shitload of stuff to install. Reinstalling Channels DVR might be a bad idea to do currently, if it runs apt.
The script for transcoding hasn’t been tested yet. The command for HandBrakeCLI works though. I’m going to need to reboot the Raspberry Pi, so no point in testing it yet.
And the Samhung micro SD card is slow, when flashing the img, it was under 10 MB/s. But the read speed is around 90 MB/s. Is the write speed supposed to be so slow? Perhaps just flashing is that slow. Some people might use these cards for video. I do on my security cameras, they work fine.
To reinstall packages from a txt file, use while read line; do sudo apt install -y $line; done < packages_list.txt, I forgot the command I used to make the txt file. If you make it one command, and there’s one or more “Unable to locate package” errors, it won’t install shit.
To reinstall Channels DVR, just run install.sh in the Channels DVR folder. It’ll get the service back, and you’ll be good to go. And hardware transcoding still doesn’t work. Bummer. Rebooting the Pi though. Then I’ll try running the ffmpeg-dl file again.
Just says starting, forever. Can it not use hardware transcoding for H265 to H264? The encoding part, is using H264, and it should support hardware decoding of H265. Not that the ffmpeg provided supports it.
And ffmpeg-dl is useless, not a downloader, just for something else. Dynamic linking. Now how long does it take to start encoding with hardware encoding? Hardware should be fast, not take ages.
Enable “Old Streaming System” and it works, but is hardware transcoding actually being used? Around 70% CPU I think. I think for encoding it is, would be better if it decoded with hardware too. Either way, it works better then software, with the new streaming system. And you have to enable that every time the server restarts. Didn’t try software encoding in Armbian, so perhaps everything 64bit helped.
Bad script, means I have to remake the symlinks, and re transcode one file. It doesn’t currently delete anything, just moves original file to .bak. Well, the backup server, probably has the file. But need to make sure the script works, before doing any other folders. It doesn’t do sub folders. Need to make sure the script isn’t going to transcode again, so I can just run it, and only do new files.
Symlinks probably don’t work, because it used the full path. That might work on the Mac, but not anything else.
And symlinks fixed, the actual script might be right, transcoding the last file in that folder.
Oh that’s why symlinks don’t work, macOS is using Samba, guess it doesn’t support NFS, no idea how to make that work with the latest macOS. Now to see if I can enable symlink following in Samba.
And you most likely have to get NFS working somehow, might simply not be possible. Thanks Apple.
And NFS is easy, follow instructions here. But use vifs. Nice, might not need Samba crap now.
xxxx:/mnt/nfs /private/nas nfs resvport,rw,timeo=14,intr
Can’t create folders though. Files probably don’t work either. Wrong UID on folder.
Pretty sure I tried getting NFS working before, but couldn’t. Perhaps I wasn’t using vifs.
I think I just need to add the pi user to the Mac. Rebooting, added the group, but deleted the user. Even with 777 permissions, my user can’t delete anything. If I add the user, need a system user, not a regular user.
Maybe this is the problem I had with macOS, couldn’t write to the share. I think the problem is, it’s mounting in /private. But I need it in my user folder. Use “vers=4,noowners” and put in the user folder, and hope for the best.
And macOS is a dick, it mounts it if you unmount it, so don’t run rm -fr to get rid of folder. Now to figure out what I’m missing.
Wonder how far I got last time, trying to get it to work. But still doesn’t work, even in my Users folder.
Got it to work, you need “all_squash” on the server. But how does Linux work without that? Oh right, my UID/GID is the same.
sudo vifs
xxx:/mnt/nfs /Users/thomasvanvalkinburgh/nas nfs vers=4,noowners,resvport,rw,timeo=14,intr
/etc/exports
/mnt/nfs xxxx/24(rw,sync,anonuid=1000,anongid=1000,no_subtree_check,all_squash)
Linux still works, even with that changed.
And having to copy everything back, is going to make a mess, because it’s copying the mpg files, that are already there, just .bak. And I get to remake symlinks.
With the script to make the transcodings, you can delete the mpg, and rename the mkv to to .mpg. But if you use a symlink, you can store the file anywhere on the drive.
And is around 20 FPS good? Well, I think it’s running crappy because of rsync. If you stream a video that needs encoding in the browser right now, it will buffer. Just making sure it works.
If it uses hardware decoding, it might do better, well not when the drive is running rsync.
And I guess no transcoding until tomorrow, rsync still not done. I shouldn’t have ran rm -fr after a bad rsync command. It put the folder inside the folder, which actually is a folder with stuff, so files in the wrong place. But I could have just ran –delete on my desktop, and it would delete the extra crap for me.
Probably low FPS saving to a bogged down drive.