View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 39 posts ] 
Go to page 1, 2, 3  Next

Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: Rip audio of TV?
PostPosted: Wed Feb 28, 2007 12:58 pm 
Offline
Joined: Fri Oct 20, 2006 12:04 pm
Posts: 905
Location: LA, CA
Is there a easy way to rip the audio of part of an HDTV recording to say an mp3 file? I'd like to play in MythMusic and my iPod.

TIA


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 28, 2007 4:47 pm 
Offline
Joined: Wed Apr 28, 2004 10:42 pm
Posts: 405
Location: Bendigo, Victoria, Australia
According to http://www.bunkus.org/dvdripping4linux/ ... tractaudio

Quote:
MPG -> MP2: mplayer -vo null -nogui -dumpaudio -dumpfile audio.mp2 myvideo.mpg
This will extract the audio to a file called audio.mp2.


Another articlesays:
Quote:
To extract the audio track from the source, type:

ffmpeg -i <input_file> -vn <output_file>

The command can be applied to both DV/DivX/XviD AVI and MPEG files. The vn switch disables video in the output file. The resulting file would be a raw PCM audio file.

_________________
Paul Turpie
-------------
<--Is your location in your profile? Why not?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 03, 2007 8:19 am 
Offline
Joined: Mon May 01, 2006 5:07 am
Posts: 17
Location: Colchester, England
Quote:
MPG -> MP2: mplayer -vo null -nogui -dumpaudio -dumpfile audio.mp2 myvideo.mpg
This will extract the audio to a file called audio.mp2.


I couldn't get this to work, for a 15 minute recording the program rang for 15 minutes, but no file was produced. :(

Another articlesays:
Quote:
To extract the audio track from the source, type:

ffmpeg -i <input_file> -vn <output_file>

The command can be applied to both DV/DivX/XviD AVI and MPEG files. The vn switch disables video in the output file. The resulting file would be a raw PCM audio file.
[/quote]

This worked a treat and only took a few minutes to produce a file.

Steve


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 04, 2007 2:42 pm 
Offline
Joined: Sun Mar 05, 2006 11:27 am
Posts: 44
Location: Edinburgh, Scotland
Not sure if this works with HDTV files but another possibility is nuvexport-mp3. I use this for exporting the sound portion of DVB radio shows.
Code:
nuvexport-mp3 --nice 19 --input="/myth/tv/1719_20071004192100.mpg"

You might also have to install libid3-3.8.3-dev and id3v2 for it to fill in all the mp3 tags in the file produced.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 19, 2007 9:28 pm 
Offline
Joined: Fri Oct 20, 2006 12:04 pm
Posts: 905
Location: LA, CA
I was able to rip audio from an HD recording with this:

Code:
ffmpeg -i <input_file>.mpg -vn -ab 128 -ar 44100 <output_file>.mp3


Piece of cake... :)


Top
 Profile  
 
 Post subject: user command
PostPosted: Thu Dec 20, 2007 10:37 am 
Offline
Joined: Sun Sep 02, 2007 2:30 pm
Posts: 94
Any idea how we could turn the above command into a user command - so that you could just slect a job on a recorded program and then produce an mp3 file (with all the mp3 tags filled in) (like the iPod transcode one) which can then be later downloaded off the knoppmyth website?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 24, 2007 1:34 am 
Offline
Site Admin
Joined: Fri Sep 19, 2003 6:37 pm
Posts: 2657
Location: Whittier, Ca
Just write a little BASH script. Then set that script as a user job in mythtv-setup. I'd suggest taking a look at the MythTV or KnoppMyth wiki for further tips.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 14, 2008 11:26 am 
Offline
Joined: Fri Jul 21, 2006 11:12 pm
Posts: 1185
Location: SC
Here is a script that can be used as a user job to convert a recording to an mp3 file. The script uses ffmpeg and will place the resulting mp3 file in your /myth/music directory.

Britney


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 14, 2008 7:14 pm 
Offline
Joined: Fri Nov 18, 2005 9:22 am
Posts: 777
Location: spencerport, ny (USA)
brfransen wrote:
Here is a script that can be used as a user job to convert a recording to an mp3 file. The script uses ffmpeg and will place the resulting mp3 file in your /myth/music directory.


Wow - that's awesome. Great for PBS concerts, American Idol, etc..
I tried it, works as advertised. Great job! I'm going to nominate this for the R6 wishlist....


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 14, 2008 7:27 pm 
Offline
Joined: Fri Oct 20, 2006 12:04 pm
Posts: 905
Location: LA, CA
thornsoft wrote:
brfransen wrote:
Here is a script that can be used as a user job to convert a recording to an mp3 file. The script uses ffmpeg and will place the resulting mp3 file in your /myth/music directory.


Wow - that's awesome. Great for PBS concerts, American Idol, etc..
I tried it, works as advertised. Great job! I'm going to nominate this for the R6 wishlist....


I 2nd the nomination!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 14, 2008 8:51 pm 
Offline
Joined: Thu Sep 30, 2004 11:29 am
Posts: 2419
Location: Mechanicsburg, PA
Is it possible to make it honor the cutlist from the recording, or will it do that automatically as a User Job?

_________________
KnoppMyth R5.5
MythiC Dragon v2.0
Join the KnoppMyth Frappr!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 14, 2008 9:14 pm 
Offline
Joined: Fri Jul 21, 2006 11:12 pm
Posts: 1185
Location: SC
It does not honor the cutlist. To my knowledge ffmpeg doesn't support EDLs like mencoder. However, I have never been able to get mencoder EDLs to work right with any of my MPEG2 HD recordings. I know others have reported getting the EDLs to work with SD. I have played with it quite a bit but the cuts always end up off even though the times in the EDL are correct.

Usually I just cut what I want and do a lossless transcode and then run a user job like myth2mp3 to get the desired result.

Britney


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 14, 2008 9:18 pm 
Offline
Joined: Thu Sep 30, 2004 11:29 am
Posts: 2419
Location: Mechanicsburg, PA
brfransen wrote:
Usually I just cut what I want and do a lossless transcode and then run a user job like myth2mp3 to get the desired result.

Hmm. Maybe the User Job could chain those two actions together automatically?

_________________
KnoppMyth R5.5
MythiC Dragon v2.0
Join the KnoppMyth Frappr!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 14, 2008 9:39 pm 
Offline
Joined: Fri Jul 21, 2006 11:12 pm
Posts: 1185
Location: SC
Good idea. I think it is mythtranscode that does the built in transcoding. I will have to look at the command line options for that.

Britney


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 18, 2008 1:31 pm 
Offline
Joined: Fri Jul 21, 2006 11:12 pm
Posts: 1185
Location: SC
I took a look at how mythtranscode works and have incorporated it into the myth2mp3 script v0.2. There is now an option in the script to use the cutlist or not. If you have set it to use the cutlist and it doesn't find one it will just transcode the entire recording to mp3.

To incorporate the cutlist functionallity the user job command is slightly different:
Code:
/usr/local/bin/myth2mp3 "%FILE%" "%TITLE% - %SUBTITLE%" "%CHANID%" "%STARTTIME%"


Britney


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 39 posts ] 
Go to page 1, 2, 3  Next



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu