executing shell script for de/remuxing

Questions about codecs, DVD playback, web plugins...
Forum rules
Before you post please read this

executing shell script for de/remuxing

Postby dungbeetle on Fri Mar 14, 2008 6:21 am

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 windoze 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
Sony Vaio VGN-FW31E
User avatar
dungbeetle
Level 1
Level 1
 
Posts: 40
Joined: Mon Dec 03, 2007 2:10 pm
Location: Lincolnshire, England

Linux Mint is funded by ads and donations.
 

Re: executing shell script for de/remuxing

Postby Husse on Fri Mar 14, 2008 7:26 am

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
Image
Don't fix it if it ain't broken, don't break it if you can't fix it
Husse
Level 21
Level 21
 
Posts: 19710
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Re: executing shell script for de/remuxing

Postby dungbeetle on Fri Mar 14, 2008 8:22 am

Thanks Husse, the terminal is now accepting the command. How do I actually get the script to execute?
Sony Vaio VGN-FW31E
User avatar
dungbeetle
Level 1
Level 1
 
Posts: 40
Joined: Mon Dec 03, 2007 2:10 pm
Location: Lincolnshire, England

Re: executing shell script for de/remuxing

Postby Husse on Sat Mar 15, 2008 3:32 pm

./drmux.sh in a terminal
or is it /.drmux.sh....
For some reason this has not stuck in my memory
Image
Don't fix it if it ain't broken, don't break it if you can't fix it
Husse
Level 21
Level 21
 
Posts: 19710
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Re: executing shell script for de/remuxing

Postby dungbeetle on Sun Mar 16, 2008 6:43 am

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
Sony Vaio VGN-FW31E
User avatar
dungbeetle
Level 1
Level 1
 
Posts: 40
Joined: Mon Dec 03, 2007 2:10 pm
Location: Lincolnshire, England


Return to Sound, Multimedia, & Codecs

Who is online

Users browsing this forum: No registered users and 2 guests