How to disable FFMPEG process

Please post your questions about using the web-based Photo, Music, Video Stations here.
User avatar
dolbyman
Guru
Posts: 22728
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: How to disable FFMPEG process

Post by dolbyman » Thu Jul 28, 2016 11:50 pm

how is file station supposed to know if the folder you are moving it to/from is used by a media streaming addon ? (so it rewrites the thumbnail index db)

Benna80
Know my way around
Posts: 241
Joined: Tue May 19, 2015 4:43 pm

Re: How to disable FFMPEG process

Post by Benna80 » Thu Nov 29, 2018 8:00 am

In my case was Twonky server that seems to be the root cause for ffmpeg process runinng at 70%.
After i've disabled the service the cpu load dropped at 9%.

smitty123

Re: How to disable FFMPEG process

Post by smitty123 » Mon Apr 05, 2021 11:08 am

peppebytes wrote:
Wed Apr 02, 2014 8:14 pm
Hi to all,

i fixed ffmpeg at any boot in this way that remove execution right after 60 seconds after boot:

a. scripts building

1. create script dir

Code: Select all

mkdir /share/HDA_DATA/.qpkg/autorun

2. move to script dir

Code: Select all

cd /share/HDA_DATA/.qpkg/autorun

3. create script autorun.sh:

Code: Select all

vi autorun.sh
and insert this:

Code: Select all

#!/bin/sh
/share/HDA_DATA/.qpkg/autorun/ffmpeg-x.sh &
4. save and exit

Code: Select all

:wq!
6. create script ffmpeg-x.sh

Code: Select all

vi ffmpeg-x.sh

and insert this:

Code: Select all

#!/bin/sh
sleep 60
chmod -x /usr/local/medialibrary/bin/ffmpeg
7. save and exit

Code: Select all

:wq!
8. change permission to scripts:

Code: Select all

chmod 744 autorun.sh
	chmod 744 ffmpeg-x.sh

b. enabling auto start in init.d

1. edit qpkg.conf file:

Code: Select all

 vi /etc/config/qpkg.conf

at the end of file add the follow section:

Code: Select all

[autorun]
Name = autorun
Version = 0.1
Author = peppebytes
Date = 2014-03-31
Shell = /share/HDA_DATA/.qpkg/autorun/autorun.sh
Install_Path = /share/HDA_DATA/.qpkg/autorun
QPKG_File = autorun.qpkg
Enable = TRUE
2. save and exit

Code: Select all

:wq!

reboot and enjoy!!
Sorry to resurrect this old thread, but...

Hi Peppebytes , do you still use the script to fix ffmpeg on your nas?

Just wondering if you could come up with a way to bundle your steps in a qpkg for us ?

it would help so many people, you'd be a hero !

Post Reply

Return to “Photo Station, Music Station, Video Station”