streaming mp4 to rtmp via server-side task

Shane 2019-09-11 04:22:54 UTC in WMSPanel functionality

I am trying to loop an mp4 to rtmp via server-side task with no luck. I can do it from via console under root, but it doesn't work when I try to do it via server task in Nimble UI.

I have set enable_tasks to true. Interface at is on.

I don't see anything at all in the nimble logs that has anything on the task.

I'm guessing it has to do with some permissions on the "nimble" user? ffmpeg should be executable by nimble (as well as the mp4 input readbale), but I must be missing something... any ideas?

Sergei Ovchinnikov 2019-09-11 05:19:58 UTC 

Hello, Shane!

Just to make sure, have you restarted nimble after editing /etc/nimble/nimble.conf using command service nimble restart?

When your server-side command execution failed, there will be Status set to Failed and blue balloon with 'i' appears. Please click on this balloon to get error output.
Most commonly, it is full path to ffmpeg omitted type error.
Please make sure, you've entered full path to ffmpeg as /usr/local/bin/ffmpeg...

Shane 2019-09-11 14:03:21 UTC 

Hey there,

So I did restart the nimble service after editing conf file. But I just did a full reboot of the server, and that seems to have done the trick - it seems to be running fine now.

Thanks for the help!

Shane 2019-09-11 14:29:49 UTC 

P.S. On a semi-related note, my ultimate goal is to record a live stream, then take that VOD file and loop it for playback on the same stream name as the live stream when it's over.

Theoretically I'd like it to also have a mechanism where I could start the livestream back up (so the loop playback would be interrupted and the rtmp livestream would take over with no change in stream name).

Is something like this possible? Essentially I want to have a 24-hour stream playing a looped file, but with the ability to interrupt it with a live rtmp.


Sergei Ovchinnikov 2019-09-18 04:30:18 UTC 

Please take a look at Transcoder's Hot Swap feature on the following link:
You can stop the main stream, and It will switch to your backup video seamlessly. It can be VOD or live stream for main or backup streams.

Support Smit-ICTdiensten 2023-03-26 20:26:57 UTC 

Hi, I know this is an old post, and with older ubuntu's than 22 lts I have no problems to add the right permissions for server-side task control to record mp4 files with ffmpeg. But with my new Ubuntu 22lts server I get permission denied all the time with nimble with a ffmpeg task in wmspanel. Is something changed? nimble is still the the user behind tasks? with sudo -u nimble ffmpeg -re -i rtmp:// -c copy -bsf:a aac_adtstoasc "//home/archive/video/`date +%V_%d-%m-%Y_%H.%M`_1080mp4" nimble has no problem with permissions to record the mp4 file. please help.

Sergei 2023-03-27 09:13:57 UTC 


Please open a ticket at
We are happy to help to our customers.

Thank you.

Post a reply

Post a new question


This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the Privacy Policy. If you want to know more or withdraw your consent to all or some of the cookies, please refer to the Privacy Policy.
By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to the use of cookies.