android
  #21  
Old 10-17-2007, 12:32 PM
pienose pienose is offline
Member
 
Join Date: Mar 2007
Posts: 358
Default

hello? can somebody PLEASE help me with this? I have tried every thing to convert videos but none of them work. I really like the sound of this one too!
Reply With Quote

Advertisement [Remove Advertisement]

  #22  
Old 10-17-2007, 12:57 PM
cpchan's Avatar
cpchan cpchan is offline
Ultra Senior Member
 
Join Date: Feb 2007
Location: Toronto, Ontario
Posts: 2,012
Default

Quote:
Originally Posted by pienose View Post
then I ran sansampeg </home/tim/videos/eyecandy.3gp>
Your syntax is wrong, try:

sansampeg /home/tim/videos/eyecandy.3gp

Charles
Reply With Quote

  #23  
Old 10-17-2007, 02:04 PM
pienose pienose is offline
Member
 
Join Date: Mar 2007
Posts: 358
Default

I tried that and it just ses that the command is not found
Reply With Quote

  #24  
Old 10-17-2007, 02:19 PM
cpchan's Avatar
cpchan cpchan is offline
Ultra Senior Member
 
Join Date: Feb 2007
Location: Toronto, Ontario
Posts: 2,012
Default

Quote:
Originally Posted by pienose View Post
I tried that and it just ses that the command is not found
You might have put it in a directory that is not on you path. After you have download the file, run:

Code:
chmod 755 sansampeg
and then run

Code:
./sansampeg <the files you  want to covert>
(There is a period before /) or put it in a directory that is in your path and omit ./

If you still have problem, please send the output of

Code:
which mencoder
and

Code:
which file
Charles
Reply With Quote

  #25  
Old 10-17-2007, 03:30 PM
pienose pienose is offline
Member
 
Join Date: Mar 2007
Posts: 358
Default

ok, I did what you sed and this happend-

Code:
tim@ubuntu:~$ chmod 755 sansampeg
chmod: cannot access `sansampeg': No such file or directory
tim@ubuntu:~$ /home/tim/.sansampg/sansampeg eye candy.3gp
/home/tim/.sansampg/sansampeg: 22: function: not found

sansampeg: A script to batch convert video for Rockbox

Usage: sansampeg <list_of_files>

Wildcards are allowed

/home/tim/.sansampg/sansampeg: 36: function: not found
/home/tim/.sansampg/sansampeg: 82: parse_infile: not found
/home/tim/.sansampg/sansampeg: 82: parse_infile: not found

0 videos converted successfully, 0 unsuccessful
Skipped 2 non-video files

tim@ubuntu:~$
and the other stuff-
Code:
tim@ubuntu:~$ which mencoder
/usr/bin/mencoder
tim@ubuntu:~$ which file
/usr/bin/file
tim@ubuntu:~$
really sorry for being such a pain, hope you can help!
Reply With Quote

  #26  
Old 10-17-2007, 03:44 PM
cpchan's Avatar
cpchan cpchan is offline
Ultra Senior Member
 
Join Date: Feb 2007
Location: Toronto, Ontario
Posts: 2,012
Default

Quote:
Originally Posted by pienose View Post
tim@ubuntu:~$ /home/tim/.sansampg/sansampeg eye candy.3gp
/home/tim/.sansampg/sansampeg: 22: function: not found
Try running the script with bash, i.e.:

Code:
bash sansampeg <list_of_files>
I forgot that Ubuntu now defaults to using dash for scripts. There are some bashish in my script- I need to change the first line to:

Code:
#!/bin/bash
Charles
Reply With Quote

  #27  
Old 10-17-2007, 03:51 PM
pienose pienose is offline
Member
 
Join Date: Mar 2007
Posts: 358
Default

Quote:
Originally Posted by cpchan View Post
Try running the script with bash, i.e.:

Code:
bash sansampeg <list_of_files>
Charles
nope, ses

Code:
bash: sansampeg: No such file or directory
Reply With Quote

  #28  
Old 10-21-2007, 02:07 PM
janitux janitux is offline
Junior Member
 
Join Date: Oct 2007
Location: Santiago, Chile
Posts: 7
Default

Quote:
Originally Posted by pienose View Post
nope, ses

Code:
bash: sansampeg: No such file or directory

try moving the script to /usr/bin :
sudo mv sansampeg /usr/bin ; sudo chmod 755 /usr/bin/sansampeg

then sansampeg eyecandy.3gp
(if it doesn't work try bash sansampeg eyecandy.3gp)

PD : thanks for the script cpchan
Reply With Quote

  #29  
Old 10-21-2007, 02:48 PM
cpchan's Avatar
cpchan cpchan is offline
Ultra Senior Member
 
Join Date: Feb 2007
Location: Toronto, Ontario
Posts: 2,012
Default

Quote:
Originally Posted by janitux View Post
try moving the script to /usr/bin :
sudo mv sansampeg /usr/bin ; sudo chmod 755 /usr/bin/sansampeg

then sansampeg eyecandy.3gp
(if it doesn't work try bash sansampeg eyecandy.3gp)
Thanks for making this more clear to the OP.

Quote:
PD : thanks for the script cpchan
No problem. Enjoy.

Charles
Reply With Quote

  #30  
Old 10-21-2007, 03:33 PM
pienose pienose is offline
Member
 
Join Date: Mar 2007
Posts: 358
Unhappy

Quote:
Originally Posted by janitux View Post
try moving the script to /usr/bin :
sudo mv sansampeg /usr/bin ; sudo chmod 755 /usr/bin/sansampeg

then sansampeg eyecandy.3gp
(if it doesn't work try bash sansampeg eyecandy.3gp)

PD : thanks for the script cpchan
nope, it still didn't work!! do you think I've been doing something horribly wrong all along?
Reply With Quote

  #31  
Old 10-21-2007, 03:40 PM
cpchan's Avatar
cpchan cpchan is offline
Ultra Senior Member
 
Join Date: Feb 2007
Location: Toronto, Ontario
Posts: 2,012
Default

Quote:
Originally Posted by pienose View Post
nope, it still didn't work!! do you think I've been doing something horribly wrong all along?
What errors are you getting now.?

Charles
Reply With Quote

  #32  
Old 10-21-2007, 04:29 PM
janitux janitux is offline
Junior Member
 
Join Date: Oct 2007
Location: Santiago, Chile
Posts: 7
Default

i don't use GNOME or nautilus, but i made a nautilus-script (yep, i was so bored)

you can get it here

hope you like it (and sorry for the bad English :P)

Download it to your ~/.gnome2/nautilus-scripts/ folder and give it execution permissions
Reply With Quote

  #33  
Old 10-27-2007, 05:19 PM
janitux janitux is offline
Junior Member
 
Join Date: Oct 2007
Location: Santiago, Chile
Posts: 7
Default

I made a .tar.gz which contains the sansampeg script (of cpchan) and my script for nautilus just read the README :P screenshots included (of the nautilus script "working)

PD : cpchan, what about already .mpg files and sansampeg? , i end with a 4k file (the original file is missing)

bye :B
Attached Images
File Type: jpg nautilus-sansampeg_pre.jpg (78.5 KB, 21 views)
File Type: jpg nautilus-sansampeg_post.jpg (77.9 KB, 17 views)
Attached Files
File Type: zip sansampeg+nautilusscript.zip (1.7 KB, 31 views)
Reply With Quote

  #34  
Old 10-27-2007, 05:59 PM
cpchan's Avatar
cpchan cpchan is offline
Ultra Senior Member
 
Join Date: Feb 2007
Location: Toronto, Ontario
Posts: 2,012
Default

Quote:
Originally Posted by janitux View Post
I made a .tar.gz which contains the sansampeg script (of cpchan) and my script for nautilus just read the README :P screenshots included (of the nautilus script "working)
Great. Thanks.

Quote:
PD : cpchan, what about already .mpg files and sansampeg? , i end with a 4k file (the original file is missing)
I will upload a new version that fixes that some time tonight.

Charles
Reply With Quote

  #35  
Old 10-31-2007, 02:20 PM
pienose pienose is offline
Member
 
Join Date: Mar 2007
Posts: 358
Default

ok, so at the moment I have got to a stage where if I run the command and try to convert a video, in a file with 26 other .mov videos, I get the responce-

Code:
tim@ubuntu:~$ sansampeg Episode 1 Pilot.mov

0 videos converted successfully, 0 unsuccessful
Skipped 3 non-video files
the same if I run it with bash.
Reply With Quote

  #36  
Old 10-31-2007, 04:32 PM
janitux janitux is offline
Junior Member
 
Join Date: Oct 2007
Location: Santiago, Chile
Posts: 7
Default

Quote:
Originally Posted by pienose View Post
ok, so at the moment I have got to a stage where if I run the command and try to convert a video, in a file with 26 other .mov videos, I get the responce-

Code:
tim@ubuntu:~$ sansampeg Episode 1 Pilot.mov

0 videos converted successfully, 0 unsuccessful
Skipped 3 non-video files
the same if I run it with bash.
um, the video name is "Episode 1 Pilot.mov" so in the terminal would be Episode\ 1\ Pilot.mov or try putting the video name between ""

example : sansampeg Episode\ 1\ Pilot.mov or
sansampeg "Episode 1 Pilot.mov"

try that

PD : if you don't like the terminal you can use my nautilus-script :P
Reply With Quote

  #37  
Old 11-01-2007, 11:32 AM
pienose pienose is offline
Member
 
Join Date: Mar 2007
Posts: 358
Default

Quote:
Originally Posted by janitux View Post
um, the video name is "Episode 1 Pilot.mov" so in the terminal would be Episode\ 1\ Pilot.mov or try putting the video name between ""

example : sansampeg Episode\ 1\ Pilot.mov or
sansampeg "Episode 1 Pilot.mov"

try that

PD : if you don't like the terminal you can use my nautilus-script :P
hm, nope and the nautilus script did not work eather, when I left click, I don't see a menu item called scripts, like in the screenshot. Oh yeh and I have upgraded to ubuntu 7.10 if that makes a difference.

P.S: thanks fall all the help!
Reply With Quote

  #38  
Old 11-02-2007, 10:20 PM
janitux janitux is offline
Junior Member
 
Join Date: Oct 2007
Location: Santiago, Chile
Posts: 7
Default

Well, i'll make it simple

First download the attached zip (i forgive to add the nautlius script on the last .zip, i think you will save it on your desktop or other folder)
next open a terminal and do:
unzip sansampeg+nautilusscript.zip
next do :
sudo mv usr/local/bin/sansampeg /usr/local/bin (we're moving sansampeg to a folder that is on the path)
next we give it execution permissions:
sudo chmod u+x /usr/local/bin/sansampeg
next we install the nautilus-script:
mkdir -p /home/tim/.gnome2/nautilus-scripts/
mv .gnome2/nautilus-scripts/sansampeg /home/tim/.gnome2/nautilus-scripts/ (one line)
next we give it execution permissions:
chmod u+x /home/tim/.gnome2/nautilus-scripts/sansampeg


and that's all :B
try with sansampeg to convert a video (a tip, try using tab-completion for the video's names, it puts automatically the correspondents \) if sansampeg works from the console you will be able to use the nautilus script properly

PD : if you get errors please post them.
Reply With Quote

  #39  
Old 11-03-2007, 08:30 AM
pienose pienose is offline
Member
 
Join Date: Mar 2007
Posts: 358
Default

ok, this is weird I get errors from the very start! but here is all the commands any way-

Code:
tim@ubuntu:~$ unzip sansampeg+nautilusscript.zip
unzip:  cannot find or open sansampeg+nautilusscript.zip, sansampeg+nautilusscript.zip.zip or sansampeg+nautilusscript.zip.ZIP.
tim@ubuntu:~$ sudo mv usr/local/bin/sansampeg /usr/local/bin
[sudo] password for tim:
mv: cannot stat `usr/local/bin/sansampeg': No such file or directory
tim@ubuntu:~$ sudo chmod u+x /usr/local/bin/sansampeg
tim@ubuntu:~$ mkdir -p /home/tim/.gnome2/nautilus-scripts/
tim@ubuntu:~$ mkdir -p /home/tim/.gnome2/nautilus-scripts/
tim@ubuntu:~$ mv .gnome2/nautilus-scripts/sansampeg /home/tim/.gnome2/nautilus-scripts/
mv: cannot stat `.gnome2/nautilus-scripts/sansampeg': No such file or directory
tim@ubuntu:~$ chmod u+x /home/tim/.gnome2/nautilus-scripts/sansampeg
chmod: cannot access `/home/tim/.gnome2/nautilus-scripts/sansampeg': No such file or directory
tim@ubuntu:~$ sansampeg Episode 1 Pilot.mov

0 videos converted successfully, 0 unsuccessful
Skipped 3 non-video files

tim@ubuntu:~$
Reply With Quote

  #40  
Old 11-03-2007, 08:48 PM
cpchan's Avatar
cpchan cpchan is offline
Ultra Senior Member
 
Join Date: Feb 2007
Location: Toronto, Ontario
Posts: 2,012
Default

Quote:
Originally Posted by pienose View Post
sansampeg Episode 1 Pilot.mov
Try:

Code:
sansampeg "Episode 1 Pilot.mov"
When dealing with file names containing spaces you should either quote it or escape the spaces.

Charles
Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 01:53 AM.