executing shell script for de/remuxing

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
dungbeetle
Level 1
Level 1
Posts: 41
Joined: Mon Dec 03, 2007 2:10 pm
Location: Lincolnshire, England
Contact:

executing shell script for de/remuxing

Post by dungbeetle »

Hi Guys, I am trying to archive some .pes files from my Thompson dvr4000 onto my hard drive and would like to convert them to mpeg2 so they can be easily edited. I have an app to extract them (in Windows unfortunately but it seems to work well) but I am having probs with the muxing as the various tools I have tried have always come back with errors. I found a shell script that I would like to try that should do the job here:

http://www.digitalspy.co.uk/forums/show ... p?t=659595

I haven't run a shell script before and I can't seem to get the command right. I named the script drmux.sh and tried

Code: Select all

mike@acer7520:~$ sudo chmod +x /mike/drmux.sh
[sudo] password for mike:
chmod: cannot access `/mike/drmux.sh': No such file or directory
mike@acer7520:~$ 
I think I am doing something stupid, so 3 questions:
1. Which directory should I place the script in?
2. How do I make sure that the terminal is opened in the correct directory?
3. Can you see what else I might be doing wrong?

Thanks guys,
Mike
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
PCSpecialist Lafite ultrabook with Skybridge i5
Husse

Re: executing shell script for de/remuxing

Post by Husse »

The error is easily spotted
mike@acer7520:~$ sudo chmod +x /mike/drmux.sh
/mike means a directory in root just like /home or /etc....
If drmux.sh is in your home you should do sudo chmod +x drmux.sh
You see where the terminal is opened directly before the $ and ~ means /home/your_user_name
This is where the terminal opens when invoked from the menu
Anything you want to use to manipulate things the way you want here should preferably be in home
dungbeetle
Level 1
Level 1
Posts: 41
Joined: Mon Dec 03, 2007 2:10 pm
Location: Lincolnshire, England
Contact:

Re: executing shell script for de/remuxing

Post by dungbeetle »

Thanks Husse, the terminal is now accepting the command. How do I actually get the script to execute?
PCSpecialist Lafite ultrabook with Skybridge i5
Husse

Re: executing shell script for de/remuxing

Post by Husse »

./drmux.sh in a terminal
or is it /.drmux.sh....
For some reason this has not stuck in my memory
dungbeetle
Level 1
Level 1
Posts: 41
Joined: Mon Dec 03, 2007 2:10 pm
Location: Lincolnshire, England
Contact:

Re: executing shell script for de/remuxing

Post by dungbeetle »

Thanks Husse, ./ seems to work. Hopefully, I will remember by noting the keys are in that order on the keyboard, and right next to each other. :mrgreen:

Just need to adapt the script to work on my set up now......

Cheers, Mike
PCSpecialist Lafite ultrabook with Skybridge i5
Locked

Return to “Sound”