Click here to go to the forum index Click here for the home page
 
Author Message

<  Computer connections  ~  Converting rec to mp2 or mp3

Page 1 of 2
Goto page 1, 2  Next
simonc
Posted: Thu Jan 11, 2007 11:52 pm Reply with quote
Frequent contributor Joined: 12 Apr 2005 Posts: 5618 Location: Cheltenham
Do you have a load of radio recordings on your Toppy that you need to convert to mp2 or mp3 so you can listen on another device? Try this Windows batch file (2000/XP only). You will also need MPlayer and for mp3 conversion, LAME, installed on the path.

Syntax:
rectomp3 [-mp2] <recfile> [<recfile>...]

Examples:
Convert something.rec to something.mp2
rectomp3 -mp2 something.rec

Convert all rec files in the current directory to mp3
rectomp3 *.rec

Convert multiple files to mp3
rectomp3 something.rec "something else.rec" subdir\*.rec

The original rec file is left unchanged.

Files converted to mp3 are encoded at a variable bit rate and resampled to 44.1kHz (because my player plays 48kHz files at 44.1 killllloooooherrrrrrrrrrtzzzzzzz)


Last edited by simonc on Fri Sep 28, 2007 11:04 am; edited 2 times in total
View user's profile Send private message Visit poster's website
cookie365
Posted: Fri Jan 12, 2007 8:15 pm Reply with quote
Frequent contributor Joined: 01 Apr 2005 Posts: 223
Or ProjectX will do this, and I think Pvastrumento too

_________________
Several broken Topfields and a working Humax Fox HDR T2
View user's profile Send private message
simonc
Posted: Sat Jan 13, 2007 12:48 am Reply with quote
Frequent contributor Joined: 12 Apr 2005 Posts: 5618 Location: Cheltenham
And mpeg streamclip too, but I got fed up with having to do it manually - I just want to be able to listen in winamp or burn a cd to play in the kitchen. Hopefully the thread title will catch a few searches and save a few people some effort.
View user's profile Send private message Visit poster's website
cookie365
Posted: Sat Jan 13, 2007 1:55 pm Reply with quote
Frequent contributor Joined: 01 Apr 2005 Posts: 223
Good thinking.

If you have an mp3 player that doesn't play mp2 then you can convert with Audacity or dbpoweramp though if I remember correctly you need to pay for/provide an mp3 encoder for dbpoweramp once the trial finishes. There are loads of free ones anyway.

_________________
Several broken Topfields and a working Humax Fox HDR T2
View user's profile Send private message
Freefall
Posted: Fri Feb 09, 2007 2:51 pm Reply with quote
Regular contributor Joined: 30 May 2006 Posts: 36
simonc wrote:
Do you have a load of radio recordings on your Toppy that you need to convert to mp2 so you can listen on another device? Try this Windows batch file (2000/XP only). You will also need MPlayer installed on the path.

Syntax:
rectomp2 <recfile> [<recfile>...]

Examples:
Convert something.rec to something.mp2
rectomp2 something.rec

Convert all rec files in the current directory
rectomp2 *.rec

Convert multiple files
rectomp2 something.rec "something else.rec" subdir\*.rec

The original rec file is left unchanged.


Could you give some more basic guidance please - I have Mplayer gui and the command line one but dont know what to do with that and the batch file

Thanks

Freefall Embarassed

_________________
TF5800, IA On, TS On, F/W: MS6 Recommended F/W 12/9/2009 -Sy
TAPs: EPG2MEI v0.96; MyStuff 6.3; Font Manager 1.0d; Extend v1.7; SecCache (UK) v0.4; EIT Sub v0.6; MyInfo B5.5;
Sig generated by MyInfo on 22/12/10
View user's profile Send private message
SonicLife
Posted: Tue Feb 27, 2007 6:15 pm Reply with quote
Frequent contributor Joined: 24 Oct 2005 Posts: 1262
If anyone is interested I have extended Simon's command to also do a mp2 to mp3 conversion after the demux. I use this with a bat file to FTP all .recs from a specific directory on the toppy and then convert them all into mp3, this allows me to schedule the task overnight ready to drop them onto my MP3 player when convenient.
View user's profile Send private message Visit poster's website
simonc
Posted: Tue Feb 27, 2007 11:19 pm Reply with quote
Frequent contributor Joined: 12 Apr 2005 Posts: 5618 Location: Cheltenham
@Freefall
The easiest thing would be to put rec2mp2.cmd in the same directory as mplayer.exe, and add it to your system path. Then create a shortcut to rec2mp2.cmd and change the shortcut's "Start In" setting to the directory you'd like the mp2 files output to.

@SonicLife:
What do you use for the conversion?
View user's profile Send private message Visit poster's website
SonicLife
Posted: Wed Feb 28, 2007 9:44 am Reply with quote
Frequent contributor Joined: 24 Oct 2005 Posts: 1262
simonc wrote:
@SonicLife:
What do you use for the conversion?


LAME 3.97, I use the same trick as you do with mplayer, just stick the exe in the same path. I'll post the code when I get home.

I got the windows compile from http://www.rarewares.org/mp3.html


Last edited by SonicLife on Wed Feb 28, 2007 12:21 pm; edited 1 time in total
View user's profile Send private message Visit poster's website
mike.hinson
Posted: Wed Feb 28, 2007 12:20 pm Reply with quote
Frequent contributor Joined: 18 Nov 2005 Posts: 1735 Location: Bordon, Hants UK
Might be worth noting that 3.97 beta1 had a bug that prevented it recognising mp2 files, so make sure you get a more recent version from
http://www.rarewares.org/mp3.html

(Sonic you might want to edit your post to remove the unwanted full stop at the end of the url) Wink

Thanks,
/\/\

_________________
TF5800, TS On, F/W: MS6 Recommended F/W 12/9/2009 -Sy
TAPs: EPG2MEI v0.96; Standby v1.8; SecCache (UK) v0.4; QuickJump 1.72; MyStuff 6.5; mei2archive BETA 3.8l7; Extend v1.7; MyInfo B5.6; EIT Sub (Game) v0.6; Font Manager 1.0d; MHEG On/Off A3;
Sig generated by MyInfo on 10/11/13
View user's profile Send private message
SonicLife
Posted: Wed Feb 28, 2007 7:45 pm Reply with quote
Frequent contributor Joined: 24 Oct 2005 Posts: 1262
This is my modified code for the rec2mp2.cmd

@echo off
if "%~1"=="" goto usage
:loop
if "%~x1"==".rec" (
for %%a in ("%~1") do (
echo Processing %%~a
mplayer.exe "%%~a" -dumpaudio -dumpfile "%%~na.mp2"
lame -V 2 --vbr-new --brief --tt "%%~na" --ta "Radio" --tl "Radio" "%%~na.mp2" "%%~na.mp3"
del "%%~na.mp2"
del "%%~a"
)
) else echo Skipping %~1
shift
if "%~1" neq "" goto loop
goto :eof

:usage
echo RECtoMP2 ^<recfile^> [^<recfile^>...]
echo Examples:
echo Convert something.rec to something.mp2
echo rectomp2 something.rec
echo.
echo Convert all rec files in the current directory
echo rectomp2 *.rec
echo.
echo Convert multiple files
echo rectomp2 something.rec "something else.rec" subdir\*.rec

Some notes on the above. I have added 2 delete statements that delete the .rec and the .mp2 files after conversion to mp3, if you don't want this just remove the 2 del lines. I tag the mp3 with artist and title of "Radio", and a track of the input file name. Any questions just ask. This should probably be called rec2mp3.cmd.

If anyone wants the FTP + auto rec2mp3 script just should shout.
View user's profile Send private message Visit poster's website
moogaloo
Posted: Thu Mar 01, 2007 12:43 pm Reply with quote
Frequent contributor Joined: 01 Jul 2005 Posts: 585 Location: Whitstable, Kent, UK
All we need now is some command line tagging and something to auto add to itunes!

_________________
TF5800, F/W: MS6 Recommended F/W 12/9/2009 -Sy+Pe
TAPs: MyStuff 6.2; SecCache (UK) v0.4; EPG2MEI v0.96; MHEG Control B1; Power Manager v2.1; Font Manager 1.0d; Extend v1.7; MyInfo B5.0; SDS V1.3e;
Sig generated by MyInfo on 24/5/10
View user's profile Send private message Visit poster's website
SonicLife
Posted: Thu Mar 01, 2007 7:13 pm Reply with quote
Frequent contributor Joined: 24 Oct 2005 Posts: 1262
moogaloo wrote:
All we need now is some command line tagging and something to auto add to itunes!


My script does do tagging, do you want something more than I did, if so what?

Auto adding to iTunes should be easy, you can use a bat file to move the mp3 to the relevant directory and there are apps out there that poke it to recognise the change. But I am not an itunes user so have not investigated further.
View user's profile Send private message Visit poster's website
SonicLife
Posted: Mon Mar 05, 2007 8:56 pm Reply with quote
Frequent contributor Joined: 24 Oct 2005 Posts: 1262
moogaloo wrote:
All we need now is ... something to auto add to itunes!


Have a look at http://ask.metafilter.com/21800/iTunes-windows-and-the-Command-line the addToPlaylist.js should be what you want.
View user's profile Send private message Visit poster's website
simonc
Posted: Tue Sep 25, 2007 11:16 pm Reply with quote
Frequent contributor Joined: 12 Apr 2005 Posts: 5618 Location: Cheltenham
Bump, added mp3 conversion into the batch file because I've now got a player that doesn't recognise mp2. Booo. Poor show Sony. And don't talk to me about SonicStage.
View user's profile Send private message Visit poster's website
Bawbagg
Posted: Wed Sep 26, 2007 3:19 pm Reply with quote
MyStuff Team Joined: 11 Aug 2005 Posts: 1122
Did you make the same gaff as I did?? I bought an NWA3000 a year or so back (actually I got it on warranty 'cos my Rio Karma died - now that was a *great* device!!).

I didn't want an iPod, and the Sony was the nicest looking device with the best feature set. I (foolishly) didn't spend any time looking at the implications of SonicStage, and then realised the err of my ways as soon as I tried to do anything. Sad.

My PC died, and took SonicStage with it, and I hadn't bothered to backup my MP3 'cos they were on the NWA3000. THEN I realised you can't get them off the NWA3000!!!!

I've played around a bit with some app or other to get them off, but it didn't quite work. I haven't been back to look at it for a while.

My NWA3000 is nice - but SonicStage renders it virtually unusable. Sony are now out the HDD MP3 game, and only doing flash based players. Incidentally, they've now scrapped SonicStage, and the latest players use Windows Media Player.

I'm seriously thinking about an iPod 80GB now they're so cheap. Following another thread, it would be really nice if we could get a slug or linkstation to grab files in a specific folder on the toppy, and transcode to 320x240 for playback on a portable device. Doesn't really matter how long it takes.

BB

_________________
TAPs: MyStuff Something or other + whatever CW recommends
MEI readme and latest version at http://my.opera.com/bawbagg
Current MyStuff Known Bugs http://www.BobDsMyStuff.co.uk/Bugs.shtml
View user's profile Send private message Visit poster's website

Display posts from previous:  

All times are GMT
Page 1 of 2
Goto page 1, 2  Next

Jump to:  

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 vote in polls in this forum