bthoven Posted June 30, 2022 Share Posted June 30, 2022 I installed ffmpeg in my Unraid as a native app (wget https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz ) a while back in order to create a script to record fm online radio with user script plugin. It has been working fine until after I upgraded my Unraid to the newest version. As soon as the script run the ffmpeg command, it stops immediately with "segmentation fault" error, without any other error information. Anyone has experienced the same and has any solution to this? Thank you. Quote Link to comment
primeval_god Posted June 30, 2022 Share Posted June 30, 2022 12 hours ago, bthoven said: I installed ffmpeg in my Unraid as a native app (wget https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz ) a while back in order to create a script to record fm online radio with user script plugin. It has been working fine until after I upgraded my Unraid to the newest version. You should not install things directly on the unRAID host, and this is one of the reasons why. Use a docker container instead https://hub.docker.com/r/linuxserver/ffmpeg. Your script can launch the ffmpeg container just as easily as it could launch a native app. 2 Quote Link to comment
bthoven Posted July 1, 2022 Author Share Posted July 1, 2022 (edited) Thanks a lot. Running it as a disposable docker container with docker run cli in my User Scripts has solved the problem. Just for future reference as to how I change the ffmpeg command line to make it work: # native installed ffmpeg no longer works after unraid upgrade, then use docker instead #ffmpeg -i http://lb-media.mcot.net:1935/RadioLive/fm965_live.smil/chunklist_w828819029_b2000000.m3u8 -t 00:$1:00 -acodec mp3 -ab 128k -metadata title=$2 -metadata artist=$3 -metadata album=$4 /mnt/user/unraid_shared/radio/$FILENAME.mp3 docker run --rm -v /mnt/user/unraid_shared/radio:/config linuxserver/ffmpeg -i http://lb-media.mcot.net:1935/RadioLive/fm965_live.smil/chunklist_w828819029_b2000000.m3u8 -t 00:$1:00 -acodec mp3 -ab 128k -metadata title=$2 -metadata artist=$3 -metadata album=$4 /config/$FILENAME.mp3 Edited July 1, 2022 by bthoven remove -it option Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.