Author Topic: audio extraction from dvd using smplayer  (Read 3082 times)

Offline ecoalex

  • Full Member
  • ***
  • Posts: 191
Re: audio extraction from dvd using smplayer
« Reply #15 on: June 06, 2010, 09:13:48 PM »
So many suggestions I will try them all.Starting with audiokonvertor.that sounded simple. I tried it,and got this.I'm too inept to place the message in this window so here's a snapshot url of what I got after I clicked actions extract audio to.Another no go.

http://farm2.static.flickr.com/1287/4677531874_ae8990679a_b.jpg

Offline ecoalex

  • Full Member
  • ***
  • Posts: 191
Re: audio extraction from dvd using smplayer
« Reply #16 on: June 06, 2010, 11:19:07 PM »
Trying mkvtoolnix, I got this error notice,it was a dvd.iso.idx file. It plays on smplayer, originally it is an .iso file, when added to mvkmerge it adds the .idx extension, and I get the error notice:


http://farm5.static.flickr.com/4012/4677872308_25cc724913_b.jpg

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: audio extraction from dvd using smplayer
« Reply #17 on: June 07, 2010, 01:38:50 AM »
So many suggestions I will try them all.Starting with audiokonvertor.that sounded simple. I tried it,and got this.I'm too inept to place the message in this window so here's a snapshot url of what I got after I clicked actions extract audio to.Another no go.

http://farm2.static.flickr.com/1287/4677531874_ae8990679a_b.jpg


It is just asking what bitrate you want the audio file to be when extracted .......  make a selection from the drop-down box.

Offline ecoalex

  • Full Member
  • ***
  • Posts: 191
Re: audio extraction from dvd using smplayer
« Reply #18 on: June 07, 2010, 10:18:46 PM »
Audiokonvertor >actions didn't offer extract audio from the dvd.iso file I wish to extract the audio from.

Konvertor,  I got this> http://farm5.static.flickr.com/4033/4681261280_daf9db92ea_b.jpg

I must be missing some files for these suggestions to work.I seem either not to be able to make them work, files are missing,or I cannot use these apps with a dvd.iso file.

I don't comprehend muxing, or how it would extract the audio tracks, I don't see audio in the display.

Handbrake I seems to be just for video,I must be missing something.


How do I  add images inside the brackets?

Offline pags

  • Hero Member
  • *****
  • Posts: 2517
  • Keep it clean.
Re: audio extraction from dvd using smplayer
« Reply #19 on: June 08, 2010, 11:22:34 AM »
Have you looked at mencoder?  It is a companion program to mplayer (of which smplayer is a frontend).  It will do what you want, I believe.

I can't recall the syntax off the top of my head.  I'll do some checking and come back here.  If this isn't [Solved] by then, I'll post what I have...

Offline ecoalex

  • Full Member
  • ***
  • Posts: 191
Re: audio extraction from dvd using smplayer
« Reply #20 on: June 08, 2010, 08:45:57 PM »
I had  mencoder installed, but it isn't in the video menu,how do I launch it in command line?

Offline pags

  • Hero Member
  • *****
  • Posts: 2517
  • Keep it clean.
Re: audio extraction from dvd using smplayer
« Reply #21 on: June 09, 2010, 07:14:12 AM »
I had  mencoder installed, but it isn't in the video menu,how do I launch it in command line?

mencoder (like mplayer, to which it is a companion program) is run from the command line.

For reading the file (DVD, etc) it's options are the same as mplayer.  So, you can use mplayer from the command line to check that you're getting what you want.  I tested this with an iso file of a DVD (should work the same straight from disk).  You need to know what track on the DVD you want to extract from.  The main movie is usually track #1.  Change the track # until you find what you want  :).
An example of mplayer is:
Code: [Select]
mplayer dvd://1 -dvd-device /path/to/dvd_device_or_file -alang en
I believe, if your playing from the actual disk, you can exclude the -dvd-device option.  I had to add the -alang en option for my test, otherwise it defaulted to Spanish ???

From here, you can start building the mencoder command.
Check out:
Code: [Select]
man mencoder
This produced an mp3 file of my test dvd.iso:
Code: [Select]
mencoder dvd://1 -dvd-device /path/to/dvd_device_or_file -alang en -of rawaudio -ovc copy -oac mp3lame -o test.mp3
I killed it about 7% in (after maybe 30 seconds or so), and ended up with an 18MB file...

This could be wrapped in a script, and GUI-fied with zenity, I suppose... ;)

Offline everge48

  • Sr. Member
  • ****
  • Posts: 383
Re: audio extraction from dvd using smplayer
« Reply #22 on: June 10, 2010, 01:05:07 AM »
This produced an mp3 file of my test dvd.iso:
Code: [Select]
mencoder dvd://1 -dvd-device /path/to/dvd_device_or_file -alang en -of rawaudio -ovc copy -oac mp3lame -o test.mp3

Nice one pags, thanks for sharing. I'm gonna try that out when I have DVD drive on hand.
Without any options I'm not sure if mp3lame will produce ABR or CBR.
I think adding -lameopts vbr=2:q=0 would probably do the trick to get a nice quality VBR MP3 .
Code: [Select]
mencoder dvd://1 -dvd-device /dev/dvd -of rawaudio -ovc copy -oac mp3lame -lameopts vbr=2:q=0 -o title.mp3
« Last Edit: June 10, 2010, 02:00:26 AM by 4evergr8ful »
Any sufficiently advanced technology is indistinguishable from magic.

Offline ecoalex

  • Full Member
  • ***
  • Posts: 191
Re: audio extraction from dvd using smplayer
« Reply #23 on: June 10, 2010, 09:13:05 PM »
I entered your code in the command window ;

 mplayer dvd://1 -dvd-device /path/to/dvd_device_or_file -alang en

I got nothing.

There is no mplayer in pclos,I substituted smplayer using your code in the command line.

I opened the dvd and got this:

http://farm5.static.flickr.com/4005/4689962018_05e543711e_b.jpg

I clicked ok, and got a blank smplayer screen.How do I launch mencoder now?

Offline everge48

  • Sr. Member
  • ****
  • Posts: 383
Re: audio extraction from dvd using smplayer
« Reply #24 on: June 11, 2010, 01:02:28 AM »
Your tenacity compels me to help though I am tempted to just send you the link to the torrent so you can just download the soundtrack and be done with it. I'll refrain for obvious reasons.
Follow these instructions.
First install 'mountiso' through Synaptic. Then reboot.
Open Konqueror.
Then go to the directory where the .iso is located (/home/alex/DVD/Shins New Slang/sonata_volume.iso)
Right click on the .iso file (not the .idx file).
Upon right clicking you will see 'Manage ISO'
Scroll down to it then click Mount Image.
A dialog will pop up asking for your root password. Enter it then click 'OK'.
Now you will see 2 folders. Enter the folder that is named VIDEO_TS
Now you are in the VIDEO_TS folder.

At the top of Konqueror click 'Settings' then click 'Show Terminal Emulator'
A black box will pop up at the bottom of your screen.
Type all the VOB files in numerical order. Below I've given you an example but don't just copy and paste my example. You will have to type them one by one (remember only the VOB files in numercal order) from beginning to end. Remember to start by typing cat then your VOB files in numerical order and end it with > ShinsNewSlang.mpg It will look something like this:
Code: [Select]
cat VTS_01_0.VOB  VTS_01_1 VTS.VOB _02_0.VOB VTS_02_1.VOB VTS_03_0.VOB VTS_03_1.VOB VTS_03_02.VOB VTS_03_03.VOB  > ShinsNewSlang.mpg
After you have typed it all out exactly as I explained hit enter on your keyboard. Wait for the file 'ShinsNewSlang.mpg' to be completely created (you'll see it while it's being created but wait for it to finish). It will take a while so go have a drink or something. Then after it's completed creating ShinsNewSlang.mpg' (do not touch it until it's completed). Then you can use audiokonverter as I mentioned before.
http://www.pclinuxos.com/forum/index.php/topic,73826.msg609009.html#msg609009
After you have finished remember to move whatever you want to keep (the newly created MP3 for example) to a more permanent location like /home/alex/Music or wherever.

« Last Edit: June 20, 2010, 09:14:54 AM by 4evergr8ful »
Any sufficiently advanced technology is indistinguishable from magic.

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: audio extraction from dvd using smplayer
« Reply #25 on: June 11, 2010, 03:07:51 AM »
Your tenacity compels me to help though I am tempted to just send you the link to the torrent so you can just download the soundtrack and be done with it. I'll refrain for obvious reasons.

There is hardly a torrent for a DVD created from a VHS tape   ???

Quote
First it seems I must copy the dvd to hd1.How do I copy a dvd I made from a vhs tape of a tv show, to hd1?


There is no mplayer in pclos,I substituted smplayer using your code in the command line.


Yes mplayer is installed .......  just enter the name in a Konsole and see the result.
Smplayer is just a GUI for Mplayer and cannot work without it.

I would suggest you quit jumping between applications, settle on one and get help with that one.
Probably the easiest and simplest is K9copy Assistant.

All of this moving between different apps at every post is just frustrating for those trying to help as well as yourself.

At this point in time I cannot tell what your DVD is .......  is it a compliant DVD Video or is it a Data DVD with some video file/s on it?
If you open the DVD with a file manager what does it display ......  VIDEO_TS folder or something else?

I suggest to start again by specifying exactly what the source is - type of DVD - and what files are on it.
If it is a DVD Video then K9copy should have no problem extracting the audio.

regards.

Offline everge48

  • Sr. Member
  • ****
  • Posts: 383
Re: audio extraction from dvd using smplayer
« Reply #26 on: June 11, 2010, 03:16:07 AM »
There is hardly a torrent for a DVD created from a VHS tape   ???

As a matter of fact there is. Or else I wouldn't have mentioned it obviously.

Any sufficiently advanced technology is indistinguishable from magic.

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: audio extraction from dvd using smplayer
« Reply #27 on: June 11, 2010, 03:31:19 AM »
There is hardly a torrent for a DVD created from a VHS tape   ???

As a matter of fact there is. Or else I wouldn't have mentioned it obviously.

OK, I stand corrected ......  I saw no indication of what TV show/episode had been recorded to VHS and then copied to DVD.

ecoalex
                Install ffmpeg and then try K9copy again, which uses ffmpeg to extract the audio.

regards.

Offline exwintech

  • Hero Member
  • *****
  • Posts: 4340
  • 80% SandBox Rating Only
Re: audio extraction from dvd using smplayer
« Reply #28 on: June 11, 2010, 04:45:25 AM »
JohnBoy - Don't know about you, but if I had to go to the vast-complexities and scriptatious-discombobulations to wring the neck of some wriggling-squawking DVD or Video to prise the Audio from its screeching fanged throat - as some folk seem to want to do - I'd rather crawl 10-miles over broken-glass to a Sony-Shop, to pay 10-times the sane-value price for a Mega-DRM'd Sony-CD with the flamin' Audio on.... ::) ;D

Then I'd merely have an Evilly-DRM'd Sony-CD with which to stoush and get to decide Just-Who gets to hear the Audio - THEIR way....  :o 8)

Which at least - is Lotsa-Fun....!

I am yet to see a DRM'd-Vicious Sony-CD Attack a Linux-PC - and win.....   :D

Regards, Dave.

Registered Linux User #412504          Trainee Linuxer, jg

Offline pags

  • Hero Member
  • *****
  • Posts: 2517
  • Keep it clean.
Re: audio extraction from dvd using smplayer
« Reply #29 on: June 11, 2010, 06:37:51 AM »
I entered your code in the command window ;

 mplayer dvd://1 -dvd-device /path/to/dvd_device_or_file -alang en

I got nothing.

There is no mplayer in pclos,I substituted smplayer using your code in the command line.

I opened the dvd and got this:

http://farm5.static.flickr.com/4005/4689962018_05e543711e_b.jpg

I clicked ok, and got a blank smplayer screen.How do I launch mencoder now?


/path/to/dvd_device_or_file
This part should not be put into the command verbatim.  I apologize if that wasn't clear  :(

If you have the disc in the DVD drive, then use /dev/dvd.
If you have an .iso image of the DVD, then you need to put the appropriate path and filename.

Also, JohnBoy's comments are well taken:
1)  What type of DVD is this (data or video compliant)?
2)  One approach is best (for you, especially).  Just because there are multiple ways to accomplish a task, doesn't mean you need to be conversant in all of them  ;).  What approach are you most comfortable (or willing to deal) with?  The command-line will give you more options, at the expense of "ease", but there is no "right" or "wrong" way.  As long you accomplish your goal, and are satisfied with the results, it's the "right" approach.

I'm not online all the time, but if you need more details or assistance with my approach, let me know and I'll provide any assistance when I can.