Subject: Re: very long mp3 files From: kris west <kris.west@xxxxxxxx> Date: Thu, 8 Jan 2009 11:47:16 +0100 List-Archive:<http://lists.mcgill.ca/scripts/wa.exe?LIST=AUDITORY>------=_Part_243992_4142945.1231411636281 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Were it me, I'd knock together an MP3 decoder in Java (using tritonus/JLayer) and write the audio stream down as a WAV file or other PCM format. It should stream the MP3 file avoiding any memory issues (we've played days long recordings this way). There would be nothing stopping you from breaking every X minutes and starting a new WAV file. This piece of code: http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/T= ranscode.java Appears to transcode from one format to another and only write out the portion between the specified time indices - note you would need the Jlayer= , tritonus and mp3spi Jar files on your classpath. Alternatively if you download the JLayer source from: http://www.javazoom.net/javalayer An example format converter class is provided: javazoom.jl.converter.Converter A few simple tweaks to this would allow it to start a new file every N frames. Finally the VLC media player can transcode a segment of a file. However you would have to give it the time indices of the chunk to do each time. K 2009/1/8 Peter van Hengel <peter.vanhengel@xxxxxxxx> > Dear list, > > We are looking for a way to split very long MP3 recordings (several > hours up to several days!) into smaller parts and/or convert them to > wav-format. We have tried various MP3-to-wav converters, but they all > hang themselves on these long recordings. The way we solve the problem > now is to use one PC as MP3 player, and take the sound output of that as > input for a second PC, which then makes shorter recordings in > wav-format. It works, but the solution is far from ideal. > > Is there anyone who has any experience with this or suggestions? > > All the best, > Peter van Hengel > > -- > --- > dr. ir. Peter van Hengel > Fraunhofer Institut Digitale Medientechnologie (IDMT) > Project Group Hearing, Speech and Audio Technology > Haus de H=F6rens - Marie-Curie-Strasse 2 - 26129 Oldenburg - Germany > T: +49 (0) 441 2172 436 > F: +49 (0) 441 2172 450 > E: peter.vanhengel@xxxxxxxx > W: www.idmt.fraunhofer.de > --=20 Regards, Kris West Tel (UK): +44 (0)208 123 1709 Tel (US): +1 217 883 4553 Tel (FR - Home): +33 (0)16070 8292 Tel (UK - Mob): +44 (0)7984 833159 Skype: kriswest ------=_Part_243992_4142945.1231411636281 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Were it me, I'd knock together an MP3 decoder in Java (using tritonus/J= Layer) and write the audio stream down as a WAV file or other PCM format. I= t should stream the MP3 file avoiding any memory issues (we've played d= ays long recordings this way). There would be nothing stopping you from bre= aking every X minutes and starting a new WAV file. <br> <br>This piece of code:<br><a href=3D"http://java.sun.com/javase/technologi= es/desktop/media/jmf/2.1.1/solutions/Transcode.java">http://java.sun.com/ja= vase/technologies/desktop/media/jmf/2.1.1/solutions/Transcode.java</a><br> Appears to transcode from one format to another and only write out the port= ion between the specified time indices - note you would need the Jlayer, tr= itonus and mp3spi Jar files on your classpath.<br><br>Alternatively if you = download the JLayer source from: <a href=3D"http://www.javazoom.net/javalay= er">http://www.javazoom.net/javalayer</a><br> An example format converter class is provided: javazoom.jl.converter.Conver= ter<br>A few simple tweaks to this would allow it to start a new file every= N frames.<br><br>Finally the VLC media player can transcode a segment of a= file. However you would have to give it the time indices of the chunk to d= o each time.<br> <br>K<br><br><div class=3D"gmail_quote">2009/1/8 Peter van Hengel <span dir= =3D"ltr"><<a href=3D"mailto:peter.vanhengel@xxxxxxxx">peter.va= nhengel@xxxxxxxx</a>></span><br><blockquote class=3D"gmail_quo= te" style=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt= 0.8ex; padding-left: 1ex;"> Dear list,<br> <br> We are looking for a way to split very long MP3 recordings (several<br> hours up to several days!) into smaller parts and/or convert them to<br> wav-format. We have tried various MP3-to-wav converters, but they all<br> hang themselves on these long recordings. The way we solve the problem<br> now is to use one PC as MP3 player, and take the sound output of that as<br= > input for a second PC, which then makes shorter recordings in<br> wav-format. It works, but the solution is far from ideal.<br> <br> Is there anyone who has any experience with this or suggestions?<br> <br> All the best,<br> Peter van Hengel<br> <br> --<br> ---<br> dr. ir. Peter van Hengel<br> Fraunhofer Institut Digitale Medientechnologie (IDMT)<br> Project Group Hearing, Speech and Audio Technology<br> Haus de H=F6rens - Marie-Curie-Strasse 2 - 26129 Oldenburg - Germany<br> T: +49 (0) 441 2172 436<br> F: +49 (0) 441 2172 450<br> E: <a href=3D"mailto:peter.vanhengel@xxxxxxxx">peter.vanhengel@xxxxxxxx= mt.fraunhofer.de</a><br> W: <a href=3D"http://www.idmt.fraunhofer.de" target=3D"_blank">www.idmt.fra= unhofer.de</a><br> </blockquote></div><br><br clear=3D"all"><br>-- <br>Regards,<br><br>Kris We= st<br><br>Tel (UK): +44 (0)208 123 1709<br>Tel (US): +1 217 883 4553<br>Tel= (FR - Home): +33 (0)16070 8292<br>Tel (UK - Mob): +44 (0)7984 833159<br> <br>Skype: kriswest <br> ------=_Part_243992_4142945.1231411636281--