LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-21-2010, 03:18 PM   #1
panonoobis
LQ Newbie
 
Registered: Sep 2010
Posts: 6

Rep: Reputation: 0
Cool linux FLV to mp3 convertor nautilus script


here is a simple nautilus script to convert flv to mp3.
FLV2MP3
use

Code:
sudo chmod +x FLV2MP3.sh
sudo mv FLV2MP3.sh ~/.gnome2/nautilus-scripts/
go to your flv file right click scripts and click FLV2MP3

that's it

greets

Last edited by panonoobis; 10-22-2010 at 03:51 AM. Reason: link changed
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 10-22-2010, 12:15 AM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Warning : don't follow above link, you would get a Windows executable :
Quote:
bash-4.1$ file FreeCompressor-setup.exe
FreeCompressor-setup.exe: PE32 executable for MS Windows (GUI) Intel 80386 32-bit
Reported

Last edited by Didier Spaier; 10-22-2010 at 01:04 AM.
 
Old 10-22-2010, 12:27 AM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
the link above dose , eventually with noscript turned off ( OP - DO NOT USE THAT SITE EVER AGAIN!)
it WANTS to install a Microsoft "toolbar" -- almost always BAD
this is the script -- good / bad ???
Code:
 
BASENAME=`basename $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS`

zenity --info --title "FLV TO MP3" --text "$BASENAME will be converted"
    
szAnswer=$(zenity --entry --text "enter output dir, emty for default" ) ; echo $szAnswer

zenity --info --title "FLV TO MP3" --text "$BASENAME  will be converted plaze wait press OK to Start" 

echo "20"
echo "40"

if ffmpeg -i $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS -ar 44100 -ab 160 -ac 2  $szAnswer$BASENAME.mp3 | zenity --progress --pulsate --auto-close --percentage=0
echo "70"
echo "100"  
then

zenity --info --title "FLV TO MP3" --text "$BASENAME succesfolly converted to $szAnswer"

else
zenity --error --title "FLV TO MP3" --text "Cannot Convert $BASENAME! to $szAnswer"

fi

exit 1

fi
 
2 members found this post helpful.
Old 10-22-2010, 03:49 AM   #4
panonoobis
LQ Newbie
 
Registered: Sep 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Wink

i have uploadid to a to megaopload hope this wil get rit of the toolbar thingy, script is good i thoth i wold share it with u all no virus its just a nautilus script. and it works great, ist also my first nautilus script.

flv-to-mp3

greets
 
Old 10-22-2010, 04:25 AM   #5
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Spelling ...

Quote:
Originally Posted by panonoobis View Post
i have uploadid to a to megaopload hope this wil get rit of the toolbar thingy, script is good i thoth i wold share it with u all no virus its just a nautilus script.
From your other posts it is clear that you are not a native English speaker. But it is also obvious that your English is not as bad as you pretend in your sentence above. Please put some effort in correct spelling. You do not have to write Pulitzer price worthy articles here but the above is very annoying.
 
Old 10-22-2010, 09:34 AM   #6
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Quote:
Originally Posted by John VV View Post
this is the script -- good / bad ???
Well, the only piece of code that is actually doing something is
Code:
ffmpeg -i $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS -ar 44100 -ab 160 -ac 2  $szAnswer$BASENAME.mp3
Everything else is just GUI eye candy. For someone who is afraid of touching a CLI it *might* seem interesting at first.
But then again
Code:
szAnswer=$(zenity --entry --text "enter output dir, emty for default" )
Someone who suffers from cli-phobia probably also would not want to type in a path. He probably would prefer a dialog providing a mouse-oriented point 'n' click solution.
 
Old 10-22-2010, 02:06 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
i have also seen "nautilus actions " for things like this
but seeing as the only videos i would be transcoding are large ones

they add it to the r-click menu
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
simple nautilus script flv to mp3 panonoobis Linux - Newbie 2 10-22-2010 09:49 AM
Mp3 to OGG Convertor Chargh Linux - Software 1 05-11-2007 02:45 PM
.flv > .ogg (.mp3) karjola Linux - Desktop 2 12-11-2006 09:27 AM
MP3 to OGG convertor for linux? anticuchos Linux - Software 2 09-06-2005 08:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration