How to disable FFMPEG process

Please post your questions about using the web-based Photo, Music, Video Stations here.
smitty123

Re: How to disable FFMPEG process

Post by smitty123 »

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”