LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-10-2021, 10:24 PM   #1
gregors
Member
 
Registered: Mar 2018
Posts: 177

Rep: Reputation: Disabled
[vlc] Save audio as mp3


Hi there!

I have an very old mp3 player (Archos, 4GB) which I like to use to listen to audio books. Now I want to use this player to listen to movies I have already seen. With xine and lame this is no problem - it just can take hours because xine only saves its audio output when playing at normal (1x) speed.

VLC can do this a lot faster. But the documents I found don't help me with achieving this task on the command line. Using the GUI is a torture (imagine saving the audio tracks of a TV serial, having to wait 30 to 45 minutes for every episode to finish).

Is there anyone around who has done this with VLC? It seems the VLC docs aren't very helpful when it comes to scripting (or I didn't find the right docs).

TIA

Gregor

PS: This is how I do it using xine and lame:
Code:
DESTFILE=`basename $1 | cut -d. -f1`
echo "Zieldatei:  $DESTFILE.mp3"

xine $1 --auto-play=q -A file
lame --preset standard xine-out.wav $DESTFILE.mp3; rm xine-out.wav
PPS: ffmpeg does it:
Code:
/usr/bin/ffmpeg -i /home/gszaktilla/dokumente/platz/s04e01.mp4 -c:a mp3 s04e01.mp3

Last edited by gregors; 11-10-2021 at 11:58 PM.
 
Old 11-12-2021, 08:12 AM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,989

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
It appears you already have your movies ripped to mp4. vlc is just going to use ffmpeg under the hood to extract the audio from your mp4 movie file so I don't think you will get much speed improvement switching to vlc from ffmpeg and ffmpeg is clearly scriptable. You can also open the mp4 file in audacity and export the audio as mp3 or any other audio format you desire. As for using vlc from the command line, check this out:

https://www.maketecheasier.com/maste...nd-line-linux/
 
Old 11-12-2021, 09:25 AM   #3
gregors
Member
 
Registered: Mar 2018
Posts: 177

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by kilgoretrout View Post
It appears you already have your movies ripped to mp4. vlc is just going to use ffmpeg under the hood to extract the audio from your mp4 movie file so I don't think you will get much speed improvement switching to vlc from ffmpeg and ffmpeg is clearly scriptable. You can also open the mp4 file in audacity and export the audio as mp3 or any other audio format you desire.
Well, I'm not just referring to mp4 movies, this was just an example.

Quote:
As for using vlc from the command line, check this out:

https://www.maketecheasier.com/maste...nd-line-linux/
Thanks a lot for this link! You can be sure I'll read that.

Gregor
 
  


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
[SOLVED] flash audio stream - save to mp3 exactiv Linux - Software 8 09-11-2013 08:49 AM
VLC error: VLC could not open the file "/usr/share/vlc/skins2/text.bmp". brjoon1021 Ubuntu 1 01-14-2009 10:48 PM
not able to play mp3 files and install vlc & mp3 players in fedora 8 harit agarwal Linux - Software 5 12-22-2008 04:50 PM
audio cd works - mp3's, streaming audio, flash sound don't spoody_goon Linux - Software 7 07-08-2006 03:11 PM
Encoding audio: Mp3 to Mp3 SolidSnakeX28 Linux - Software 7 06-25-2006 10:14 AM

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

All times are GMT -5. The time now is 09:18 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