User Tools

This is an old revision of the document!


Writing /var/www/html/wiki.freefm.uk/data/log/deprecated/2025-12-16.log failed
Writing /var/www/html/wiki.freefm.uk/data/log/error/2025-12-16.log failed
Writing /var/www/html/wiki.freefm.uk/data/log/error/2025-12-16.log failed
Writing /var/www/html/wiki.freefm.uk/data/log/error/2025-12-16.log failed
Writing /var/www/html/wiki.freefm.uk/data/log/error/2025-12-16.log failed
Writing /var/www/html/wiki.freefm.uk/data/log/error/2025-12-16.log failed
Writing /var/www/html/wiki.freefm.uk/data/log/error/2025-12-16.log failed
Writing /var/www/html/wiki.freefm.uk/data/log/error/2025-12-16.log failed
Writing /var/www/html/wiki.freefm.uk/data/log/error/2025-12-16.log failed
Writing /var/www/html/wiki.freefm.uk/data/log/error/2025-12-16.log failed
Writing /var/www/html/wiki.freefm.uk/data/log/error/2025-12-16.log failed

Emby Server Little helpers

Linux Shell Convert Videos with Emby NVIDIA HW transcoding

First, add Emby libraries to Linux:

echo "/opt/emby-server/lib" | tee /etc/ld.so.conf.d/mycustomlib.conf
Then run:
ldconfig

Then You can convert videos using Emby ffmpeg. Example for HEVC:

for i in *.mkv; do /opt/emby-server/bin/ffmpeg -y -start_at_zero -init_hw_device "cuda=cuda:0"  -i "$i" -map 0:v -map 0:a -c:v:0 hevc_nvenc -c:a copy  "${i%.mkv} - HD.mkv";done

Or scale down:

for i in *.mkv; do /opt/emby-server/bin/ffmpeg -y -start_at_zero -init_hw_device "cuda=cuda:0"  -i "$i" -map 0:v -map 0:a -vf scale="iw/2:ih/2"  -c:a copy  "${i%.mkv} - HD.mkv";done

Set niceness for the emby service

Clean way to do this is with a service unit override.

1. Stop emby and restore the original unit file.

service emby-server stop

2. Verify that the unit file has the original ExecStart command:

systemctl show emby-server |grep ExecStart

3. Create a unit override to add the Nice parameter. This will open an editor where you can add Nice=-5 to the service block.

systemctl edit emby-server

Add:

[Service]
Nice=-20
4. Exit and save the override file. Y and enter for the prompts.

5. Start the Emby server. And run top/htop to verify the new nice value.

service emby-server start

Source: Emby forums

Announcement text at top of home page

/*--- Announcement text at top of home page ---*/

.verticalSection.section0:before {
    content: "first line \A second line.";
    white-space: pre-wrap;
    position: relative;
font-family: 'Times New Roman', serif;
    font-size: 200%;
    color: red;
    text-align: center;
    justify-content: center;
    display: flex;
}