![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
BMW Garage | BMW Meets | Register | Search | Today's Posts | Mark Forums Read |
![]() |
![]() ![]() |
BMW 3-Series (E90 E92) Forum
>
Idrive backup MP3 to USB
![]() |
![]() |
07-29-2012, 11:18 AM | #28 |
Registered
0
Rep 1
Posts |
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 |
Registered
0
Rep 4
Posts |
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; } |
Appreciate
0
|
09-28-2012, 02:33 AM | #30 |
Registered
0
Rep 4
Posts |
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 |
Registered
0
Rep 4
Posts |
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-14-2012, 04:34 AM | #34 |
Registered
0
Rep 1
Posts |
![]()
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, 09:51 AM | #35 |
Registered
0
Rep 2
Posts |
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 09:56 AM.. |
Appreciate
0
|
02-11-2013, 03:51 AM | #37 |
Registered
0
Rep 1
Posts |
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 | |
Second Lieutenant
![]() ![]() 8
Rep 217
Posts |
Quote:
Thanks |
|
Appreciate
0
|
09-26-2013, 02:38 AM | #39 |
BMW For Life
![]() 0
Rep 11
Posts |
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 || M Performance 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 |
Lieutenant Colonel
![]() ![]() 74
Rep 1,793
Posts |
this is awesome! thanks a million!
__________________
2014 F30 335 X-Drive | 6-MT | Alpine White/Coral Red | ZMM ZDH ZDA |
![]() |
Appreciate
0
|
04-24-2014, 04:35 PM | #42 |
Registered
0
Rep 2
Posts |
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-15-2014, 07:33 PM | #44 |
New Member
0
Rep 15
Posts |
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
|
![]() |
Bookmarks |
Thread Tools | Search this Thread |
|
|