E90Post
 


jb4store
 
BMW 3-Series (E90 E92) Forum > E90 / E92 / E93 3-series Technical Forums > ConnectedDrive / I-Drive / Navigation Related Discussion > Idrive backup MP3 to USB



Reply
 
Thread Tools Search this Thread
      02-25-2012, 01:26 PM   #23
nyrcritter
Registered
0

 
Drives: 535i
Join Date: Feb 2012
Location: east coast


Posts: 2
iTrader: (0)

Hi lucho1970, could you please send me your BR-Converter. Thank you very much. (kirby4344@yahoo.com)
Appreciate 0
      02-25-2012, 01:28 PM   #24
nyrcritter
Registered
0

 
Drives: 535i
Join Date: Feb 2012
Location: east coast


Posts: 2
iTrader: (0)

Guess I should have kept reading. Thanks
Appreciate 0
      03-06-2012, 11:39 PM   #25
zuec
Registered
0

 
Drives: 2011 320d
Join Date: Sep 2011
Location: South Africa


Posts: 1
iTrader: (0)

thaks to lucho1970 for sharing the script! Thanks to doug_335ic for posting the first python script! this worked like a charm!!
Appreciate 0
      05-04-2012, 08:20 AM   #26
pasc
Registered
0

 
Drives: 318
Join Date: May 2012
Location: Italia


Posts: 1
iTrader: (0)

hi, lucho1970, send me please your version of BR converter. thanks (esposito.p@mitweb.it)
Appreciate 0
      07-03-2012, 10:02 AM   #27
Jayemtl
Registered
0

 
Drives: M3
Join Date: May 2012
Location: Montreal


Posts: 1
iTrader: (0)

Lucho - Great program, thank you for your efforts!
Appreciate 0
      07-29-2012, 11:18 AM   #28
williamuk
Registered
0

 
Drives: BMW X1
Join Date: Jul 2012
Location: Devon UK


Posts: 1
iTrader: (0)

Thanks

Many thanks for that It worked a treat. Now I can enjoy my music that was lost due to computer crash and have now copied back via the USB in the car.

You are a star.
Appreciate 0
      09-28-2012, 02:09 AM   #29
skanman
Registered
0

 
Drives: 2010 Carbon Black 535 M-Sport
Join Date: Sep 2010
Location: Silicon Valley


Posts: 4
iTrader: (0)

BMW Converter (BR Converter) for Backup Audio Files

Sorry I didn't post this back in 2010. I was busy going through a nasty divorce and my ex-wife hid my cars.

---

/*
* BMWCONV v0.10 - BMW Audio File Converter
*
* Converts BMW audio files (BR3/BR4/BR5) to/from regular audio files (MP4/MP3/WMA)
*
* Written quickly by Justin Newman <180ring@gmail.com>
*
* No license, it's public domain (feel free to do what you want with it)
*
* This code should convert the above-mentioned audio files to/from each other. I
* wrote and built this code under Cygwin on Windows XP. It should build/run on
* most Windows releases with or without Cygwin. It should also build/run on most
* Linux and Mac distros/releases. I did a quick test on Debian and it worked fine.
*
* To build, go to the directory with this code and type:
*
* gcc bmwconv.c -o bmwconv
*
* If gcc does not exist, you may need to install it. If you run into errors
* compiling, you may need to fix them.
*
* This code has not been fully tested, but it should work. I tested this code with
* my 2013 BMW 550i and 2010 BMW 535i. It converted to/from without any issues. The
* export capability does not exist on my 2006 BMW 330i.
*
* If you need to process a lot of files, multiple directories, etc, just write a
* small script that passes the directory and name of each file to this code. It is
* very easy to do.
*
* WARNING: Use at your own risk. Only operate on backup files in a safe directory.
* This code will overwrite files with the same name.
*
*/

#include <stdio.h>
#include <string.h>

void usage() {
printf("bmwconv v0.10 - converts bmw's audio files (br3/br4/br5) to/from regular audio files (mp4/mp3/wma)\n");
printf("written quickly by justin newman <180ring@gmail.com> - no license, it's public domain\n");
printf("\n");
printf("usage: bmwconv [options] <input.ext> [output.ext]\n");
printf("\n");
printf("options:\n");
printf(" -h | --help shows this help screen\n");
printf("\n");
printf("mapping:\n");
printf(" br3 = mp4\n");
printf(" br4 = mp3\n");
printf(" br5 = wma\n");
printf("\n");
printf("example: bmwconv depeche_mode_enjoy_the_silence.BR4\n");
printf(" (converts to depeche_mode_enjoy_the_silence.mp3)\n");
printf("\n");
printf("note: use correct input ext or output ext will be wrong\n");
}

char *swapext(char *ext, char *buf, int maxlen) {

if (!buf) {
return NULL;
}

buf[0] = '\0';

if (!ext) {
return buf;
}

if (!strcasecmp(ext, "BR3")) {
strncpy(buf, "mp4", maxlen);
} else if (!strcasecmp(ext, "BR4")) {
strncpy(buf, "mp3", maxlen);
} else if (!strcasecmp(ext, "BR5")) {
strncpy(buf, "wma", maxlen);
} else if (!strcasecmp(ext, "mp4")) {
strncpy(buf, "BR3", maxlen);
} else if (!strcasecmp(ext, "mp3")) {
strncpy(buf, "BR4", maxlen);
} else if (!strcasecmp(ext, "wma")) {
strncpy(buf, "BR5", maxlen);
}

return buf;
}

int main(int argc, char **argv) {

FILE *fpi, *fpo;
char input[256] = "\0";
char output[256] = "\0";
char ext[256] = "\0";
char buf[1024] = "\0";
char *p;
int i, l, c;

for (i = 1; i < argc; i++) {
if (*argv[i] != '-' && *argv[i] != '/') {
break;
}
if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "--help")) {
usage();
return 0;
} else {
printf("error: invalid option specified\n");
return -1;
}
}

if (i >= argc) {
printf("error: missing input filename\n");
return -1;
}

strncpy(input, argv[1], sizeof(input));
strncpy(output, (argc > 2) ? argv[2] : input, sizeof(output));

if (argc < 3) {
if ((p = strrchr(output, '.')) != NULL) {
*p++ = '\0';
}
swapext(p, ext, sizeof(ext));
if (strlen(ext) < 1) {
printf("error: cannot figure file type from input ext\n");
return -1;
}
strncat(output, ".", sizeof(output) - strlen(output));
strncat(output, ext, sizeof(output) - strlen(output));
}

if ((fpi = fopen(input, "rb")) == NULL) {
printf("error: could not open input \"%s\"\n", input);
return -1;
}

unlink(output);
if ((fpo = fopen(output, "wb")) == NULL) {
printf("error: could not open output \"%s\"\n", output);
return -1;
}

while (!feof(fpi)) {
l = fread(buf, 1, sizeof(buf), fpi);
if (l < 1) {
break;
}
for (i = 0; i < l; i++) {
c = ~(buf[i] & 0xff) & 0xff;
buf[i] = c;
}
fwrite(buf, 1, l, fpo);
}

fflush(fpo);
fclose(fpo);

fclose(fpi);

return 0;
}
Attached Files
File Type: zip bmwconv-0.10.zip (9.8 KB, 1643 views)
Appreciate 0
      09-28-2012, 02:33 AM   #30
skanman
Registered
0

 
Drives: 2010 Carbon Black 535 M-Sport
Join Date: Sep 2010
Location: Silicon Valley


Posts: 4
iTrader: (0)

Forgot to mention the Windows compiled version is in the zip file at the end of the last message. You don't need to compile it for Windows XP or later and Linux and Mac users should know how to compile with gcc.
Appreciate 0
      09-28-2012, 08:31 AM   #31
skanman
Registered
0

 
Drives: 2010 Carbon Black 535 M-Sport
Join Date: Sep 2010
Location: Silicon Valley


Posts: 4
iTrader: (0)

On Linux, Mac, or if you are running under Cygwin on Windows, you can issue the following with bmwconv to process all files under the current directory:

find . -type f -iregex ".*[.]br[3-5]$" -print0 | xargs -0 -n 1 bmwconv

Make sure that you run that from the directory in which bmwconv resides or change the path to bmwconv.

Keep in mind bmwconv converts to/from. If you run it once, it converts to, twice, it converts from. Running it twice gives you what you started with.

Justin Newman
180ring@gmail.com
Appreciate 0
      11-02-2012, 02:10 PM   #32
SergeP
Registered
Canada
0

 
Drives: E92, MelRed, Mdrive, EDC, 6MT
Join Date: Apr 2012
Location: Lachine


Posts: 2
iTrader: (0)

DUDE!

Lucho1970!

Thanks so much for this!



Serge.
Appreciate 0
      11-04-2012, 08:21 PM   #33
Garik
New Member
United_States
1

 
Garik's Avatar
 
Drives: 2010 335iM
Join Date: Sep 2012
Location: Bellevue, WA


Posts: 24
iTrader: (0)

br5 converter

Luis,

Thank you for the converter!

This should be added to the sticky section!
__________________
2010 335i M+PPK
Appreciate 0
      11-14-2012, 05:34 AM   #34
dennybick
Registered
0

 
Drives: bmw
Join Date: Nov 2012
Location: colchester, england


Posts: 1
iTrader: (0)

Smile Converter programme

Many thanks Luis for the link to your program. Had been tearing my hair out trying to convert these files before I came across your post. It worked excellently and I have converted all my files.

Would highly recommend anybody else who is having the same problem to use your program.

Many thanks again.

Denny
Appreciate 0
      02-01-2013, 10:51 AM   #35
Bobo320sw
Registered
0

 
Drives: BMW 320 SW
Join Date: Jan 2013
Location: Italy


Posts: 2
iTrader: (0)

I have a Bmw320sw browser professiol
Br5 conversion program in WMA or MP3.
I can help someone?
in Italy there is!!
thanks
roby@laif.bs.it

Last edited by Bobo320sw; 02-01-2013 at 10:56 AM.
Appreciate 0
      02-01-2013, 11:18 AM   #36
Bobo320sw
Registered
0

 
Drives: BMW 320 SW
Join Date: Jan 2013
Location: Italy


Posts: 2
iTrader: (0)

Thanks from Italy Lucho1970
all ok from Br5 in Wma
Now convert Wma to Mp3
it works!
Appreciate 0
      02-11-2013, 04:51 AM   #37
gpozzallo
Registered
0

 
Drives: X1
Join Date: Feb 2013
Location: Italy


Posts: 1
iTrader: (0)

Hi lucho1970, could you send me your BR-Converter, please. gpozzallo@gmail.com

Hi lucho1970, could you send me your BR-Converter, please. gpozzallo@gmail.com
Appreciate 0
      05-23-2013, 02:14 PM   #38
Martin32
Private First Class
Scotland
2

 
Drives: 335d M Sport Coupe
Join Date: Apr 2012
Location: Central Scotland


Posts: 122
iTrader: (1)

Quote:
Originally Posted by lucho1970 View Post
I have attempted to email the program that I have created to some people. Was having some trouble so I decided to share it here:
http://www.mdssconsulting.com/download/BR-converter.zip
Luis
I've managed to download this program, but it doesn't recognise the input and output file paths. How should the paths look?
Thanks
Appreciate 0
      09-26-2013, 02:38 AM   #39
shwettee
New Member
United_States
0

 
shwettee's Avatar
 
Drives: 2012 135i cp Alpine White
Join Date: Sep 2007
Location: Miami, FL


Posts: 10
iTrader: (0)

BR Converter

Lucho,
Thank you for your work with the converter. Could you possibly send me an idea of how to use it to apalace@aol.com
What to open first and so on after downloading, thanks. I have a mac if it helps
__________________
|| 6 MT || M-Sport || Premium || Nav || HK || Apps || Convenience Pkg || AFE Axle Back Exhaust || JB4 || BMS Wheel Spacers || BMS Performance Intake || BMW Performance Carbon Spoiler || BMW Performance Black Kidney Grilles || Black Performance Stripes || M-Power Aluminum Pedals || 20% Tints ||
Appreciate 0
      10-19-2013, 09:18 AM   #40
ZheHbKa
Lieutenant Colonel
Russian Federation
21

 
ZheHbKa's Avatar
 
Drives: the Wind
Join Date: Jul 2007
Location: NYC


Posts: 1,795
iTrader: (0)

Garage List
2014 BMW 335 Xi  [5.00]
this is awesome! thanks a million!
__________________
2014 F30 335 X-Drive | 6-MT | Alpine White/Coral Red | ZMM ZDH ZDA |

Appreciate 0
      02-18-2014, 12:26 PM   #41
BOTUS
Second Lieutenant
2

 
Drives: E90 335d
Join Date: Nov 2013
Location: UK


Posts: 226
iTrader: (0)

Quote:
Originally Posted by doug_335ic View Post
Thanks! Flipping the bytes worked.

that's fantastic...

shame MP3 isn't worth hearing. Why choose such a dreadful format ?
Appreciate 0
      04-24-2014, 04:35 PM   #42
baburyan
Registered
0

 
Drives: 2013 328i
Join Date: Apr 2014
Location: los angeles, ca


Posts: 2
iTrader: (0)

Whats up everyone, all the links to the br converters are expired, can someone please help me out? I have like 5gb of music on my usb and I cant figure out how to convert the files to wma and mp3. I dont know much about coding or flipping bytes or stuff like that I was just hoping for a easy solution like a converter or program to do my dirty work. Anyways I would appreciate any help!

Thanks beemer forum
Appreciate 0
      05-06-2014, 02:43 PM   #43
baburyan
Registered
0

 
Drives: 2013 328i
Join Date: Apr 2014
Location: los angeles, ca


Posts: 2
iTrader: (0)

Anyone? ?? ^^^^^^^ if somebody can put up a program I can quickly download to convert my br4 br5 files to mp3 I would really appreciate it
Appreciate 0
      05-15-2014, 07:33 PM   #44
Bratekz
New Member
0

 
Drives: 2010 335xi coupe
Join Date: Aug 2013
Location: Albany ny


Posts: 15
iTrader: (0)

I'm also in need of a converter

Hi I'm also struggling to get my music off my hd. All the previously posted links are removed or expired. Any help would be greatly appreciated.

Thanks
Appreciate 0
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 12:26 PM.




e90post
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
1Addicts.com, BIMMERPOST.com, E90Post.com, F30Post.com, M3Post.com, ZPost.com, 5Post.com, 6Post.com, 7Post.com, XBimmers.com logo and trademark are properties of BIMMERPOST