LinHES Forums
http://forums.linhes.org/

Rip audio of TV?
http://forums.linhes.org/viewtopic.php?f=17&t=14392
Page 1 of 3

Author:  Too Many Secrets [ Wed Feb 28, 2007 12:58 pm ]
Post subject:  Rip audio of TV?

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

Author:  turpie [ Wed Feb 28, 2007 4:47 pm ]
Post subject: 

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.

Author:  stevegoodey [ Wed Oct 03, 2007 8:19 am ]
Post subject: 

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

Author:  babblefish [ Thu Oct 04, 2007 2:42 pm ]
Post subject: 

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.

Author:  Too Many Secrets [ Wed Dec 19, 2007 9:28 pm ]
Post subject: 

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... :)

Author:  mythman13 [ Thu Dec 20, 2007 10:37 am ]
Post subject:  user command

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?

Author:  cecil [ Mon Dec 24, 2007 1:34 am ]
Post subject: 

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.

Author:  brfransen [ Fri Mar 14, 2008 11:26 am ]
Post subject: 

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

Author:  thornsoft [ Fri Mar 14, 2008 7:14 pm ]
Post subject: 

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....

Author:  Too Many Secrets [ Fri Mar 14, 2008 7:27 pm ]
Post subject: 

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!

Author:  Human [ Fri Mar 14, 2008 8:51 pm ]
Post subject: 

Is it possible to make it honor the cutlist from the recording, or will it do that automatically as a User Job?

Author:  brfransen [ Fri Mar 14, 2008 9:14 pm ]
Post subject: 

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

Author:  Human [ Fri Mar 14, 2008 9:18 pm ]
Post subject: 

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?

Author:  brfransen [ Fri Mar 14, 2008 9:39 pm ]
Post subject: 

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

Author:  brfransen [ Tue Mar 18, 2008 1:31 pm ]
Post subject: 

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

Page 1 of 3 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/