LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-29-2004, 09:41 PM   #1
bendeco13
Member
 
Registered: Oct 2004
Distribution: Fedora 7
Posts: 232

Rep: Reputation: 30
Question mplayer decode


When I use this script, It only decodes the first file in the list, when it should decode all the files in the list....
Code:
find "$DIR" -name "*.ra" | while read list
do
   echo "Decoding..."
   echo "$list"
   mplayer -really-quiet -nojoystick -ao pcm -aofile "${list%%.*}.wav" "$list"
   echo "...Done"
   echo ""
done
echo "All Finished"
I believe that it has something to do with mplayer, because when I do this script, it works for all files in the list...

Code:
find "$DIR" -name "*.mp3" | while read list
do
   echo "Decoding..."
   echo "$list"
   mpg321 -q -w "${list%%.*}.wav" "$list"
   echo "...Done"
   echo ""
done
echo "All Finished"
Anyone know how to the script to decode all files in the generated list?
Thanks in advance.
 
Old 10-31-2004, 05:18 AM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Moved: This thread is more suitable in Programming and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 10-31-2004, 07:19 AM   #3
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
mplayer won't generate files, try mencoder instead. Sorry I can't help to decode audio with
mencoder as I just did rip some dvds with it.
 
Old 10-31-2004, 11:06 AM   #4
bendeco13
Member
 
Registered: Oct 2004
Distribution: Fedora 7
Posts: 232

Original Poster
Rep: Reputation: 30
O.K ....This works.....
Code:
find "$DIR" -name "*.ra" | while read list
do
   echo "Decoding..."
   echo "$list"
   mplayer -really-quiet -nojoystick -noconsolecontrols -ao pcm -aofile "${list%%.*}.wav" "$list"
   echo "...Done"
   echo ""
done
echo "All Finished"
I don't get why adding the (-noconsolecontrols) makes it work, and I sure don't understand why I chose to add it and test it out, but it worked, BY JESUS, It WORKS.........

Thanks anyways....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
MP3 stream decode cppkid Programming 0 10-20-2005 12:43 AM
k3b can't decode it's own products...!? ungua Linux - Software 4 08-31-2005 05:29 PM
decode my syslog file epoo Slackware 6 04-04-2005 06:30 PM
Where can I get decode plugins for xdtv? jimdaworm Linux - Software 0 02-14-2005 08:41 PM
anyone can decode this URL address? sirpelidor Linux - Software 8 02-21-2004 02:49 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:54 PM.

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