Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 10 of 10
  1. #1
    Senior Member
    Join Date
    May 2005
    Posts
    169

    Help with Flac2MP3.pl

    Hi there,

    I have recently tried to get Robin Bowes' old perl script working again, having moved to a new server. I am getting the error shown below. Can anyone make sense of this?

    I have put copies of LAME.exe and FLAC.exe in the FLAC2MP3 folder, as I thought the problem was with the paths to those files, but seemingly not.

    Error as follows:

    An error occurred opening the input file; it is likely that it does not exist
    or is not readable.
    "flac" --decode --stdout --silent M\:\\NewRips\/The\ Mae\ Trio\/Housewarming\/07
    \ \-\ Rain\.flac| "lame" --noreplaygain --vbr-new -V 2 -h --nohist --quiet - M\:
    \\MP3Rips\\The\ Mae\ Trio\\Housewarming\\FZfeUdvL6q\.tmp failed with exit code 2
    56
    Transcoding "M:\NewRips/The Mae Trio/Housewarming/08 - Yours for the Keeping.
    flac"

    The\: ERROR initialilame: excess arg Mae\
    zing decoder
    init status = FLAC__STREAM_DECODER_INIT_STATUS_ERROR_OPENING_FIL E

    An error occurred opening the input file; it is likely that it does not exist
    or is not readable.

    : ERROR initializing decoder
    init status = FLAC__STREAM_DECODER_INIT_STATUS_ERROR_OPENING_FIL E

    An error occurred opening the input file; it is likely that it does not exist
    or is not readable.

    08\: ERROR initializing decoder
    init status = FLAC__STREAM_DECODER_INIT_STATUS_ERROR_OPENING_FIL E

    An error occurred opening the input file; it is likely that it does not exist
    or is not readable.

    : ERROR initializing decoder
    init status = FLAC__STREAM_DECODER_INIT_STATUS_ERROR_OPENING_FIL E

    An error occurred opening the input file; it is likely that it does not exist
    or is not readable.

    : ERROR initializing decoder
    init status = FLAC__STREAM_DECODER_INIT_STATUS_ERROR_OPENING_FIL E

    An error occurred opening the input file; it is likely that it does not exist
    or is not readable.

    : ERROR initializing decoder
    init status = FLAC__STREAM_DECODER_INIT_STATUS_ERROR_OPENING_FIL E

    An error occurred opening the input file; it is likely that it does not exist
    or is not readable.

    : ERROR initializing decoder
    init status = FLAC__STREAM_DECODER_INIT_STATUS_ERROR_OPENING_FIL E

    An error occurred opening the input file; it is likely that it does not exist
    or is not readable.

    .flac: ERROR initializing decoder
    init status = FLAC__STREAM_DECODER_INIT_STATUS_ERROR_OPENING_FIL E

    An error occurred opening the input file; it is likely that it does not exist
    or is not readable.

  2. #2
    Senior Member DJanGo's Avatar
    Join Date
    Sep 2005
    Location
    Germany
    Posts
    2,272
    Quote Originally Posted by neilcoburn View Post
    M:\NewRips/The Mae Trio/Housewarming/08 - Yours for the Keeping.
    flac"

    An error occurred opening the input file; it is likely that it does not exist
    or is not readable.
    seem easy...

    m:\ lokks like a winblows OS - so \ is for changing folders/dirs - on *ux systems its / and \ is for masking some specialchars. "1 2" must be used as "1/ 2".

    Take a look whats going on in the script and change that.
    May you already changed something cause
    "M:\NewRips/The Mae Trio/Housewarming/08 - Yours for the Keeping.
    flac"
    Is not *blows or *ux.

  3. #3
    Senior Member
    Join Date
    May 2005
    Posts
    169
    Thanks, Jan - I should have said, it's Windows. However if I change M:\ to M:/ or M: I get a similar error. Any other ideas?

    Name:  Capture.JPG
Views: 211
Size:  48.5 KB

  4. #4
    Senior Member DJanGo's Avatar
    Join Date
    Sep 2005
    Location
    Germany
    Posts
    2,272
    Quote Originally Posted by neilcoburn View Post
    Thanks, Jan - I should have said, it's Windows. However if I change M:\ to M:/ or M: I get a similar error. Any other ideas?

    Name:  Capture.JPG
Views: 211
Size:  48.5 KB
    Hi,
    above you've wrote also something about .exe so its clear (even *ux and macos doesnt have the driveletterthing) that you are under *blows

    You must check carefully the sourcecode maybe its written for all kind of os or not.

    eg:

    Most Os can handle something like
    "artistprename artistsurname"

    On *.blows it the only "working" solution for specialchars like a blank.

    *ux (macos and linux) can also handle artistprename/ artistsurname

    where is the pl. you want help ?
    and whats the real path and name for the file in the screenshoot?
    everything like "/\" has to be changed in"\" and the path\file must be in ""
    Last edited by DJanGo; 2015-05-27 at 04:03.

  5. #5
    Senior Member
    Join Date
    May 2005
    Posts
    169
    The .pl script is written for Windows and Linux. Here's the source http://robinbowes.github.io/flac2mp3/. It's rather old, and I don't think the author is still around here. But it was working fine on my previous server box. Nothing about the directory structures has changed. Incidentally, when I run it, it does copy the directory structures from the source to destination, but does't transcode the files. So perhaps it can't find FLAC.exe and LAME.exe. Here's the user config and instructions:


    # ------- User-config options start here --------
    # Assume flac and lame programs are in the path.
    # If not, put full path to programs here.
    #
    # On Windows:
    # * If you specify a path, you must include the ".exe" extension
    # * Long filenames are OK, e.g. c:/Program Files/flac/flac.exe
    # * You can use "/" or "\\" or even "\" as path separator, e.g.:
    # c:\windows\system32\flac.exe
    # or
    # c:/windows/system32/flac.exe
    # or
    # c:\\windows\\system32\\flac.exe
    my $flaccmd = "C:\\program files\\flac2mp3\\flac.exe";
    my $lamecmd = "C:\\program files\\flac2mp3\\lame.exe";

    Here's the whole thing:
    Attached Files Attached Files

  6. #6
    Senior Member DJanGo's Avatar
    Join Date
    Sep 2005
    Location
    Germany
    Posts
    2,272
    Quote Originally Posted by neilcoburn View Post
    So perhaps it can't find FLAC.exe and LAME.exe.
    Nope - take a carefull look @ your screenshoot....
    Flac is found and its pissed of for the arg mae - that means you have to "mask" the filename.


    Maybe its in line 263 - change
    Code:
    path_and_conversion($src_file);
    to
    Code:
    path_and_conversion("$src_file");
    Last edited by DJanGo; 2015-05-28 at 09:35.

  7. #7
    Senior Member
    Join Date
    May 2005
    Posts
    169
    Thanks, Jan, but that hasn't solved it:
    Attached Images Attached Images  
    Last edited by neilcoburn; 2015-05-28 at 14:50.

  8. #8
    Senior Member Mike Meyer's Avatar
    Join Date
    Oct 2005
    Location
    Minnesota
    Posts
    337
    I'm not sure what is wrong either. I used to use Robin's script as well but at some point switched to this: FLAC2MP3

    That has been working well for me. Hope you get it figured out.
    My Last.fm Page
    PGAScores & CollegeHockey (SuperDateTime Add-ons)

  9. #9
    Senior Member
    Join Date
    May 2005
    Posts
    169
    Thanks, Mike - I'll try that one.

  10. #10
    Senior Member Mike Hanson's Avatar
    Join Date
    Apr 2005
    Location
    Toronto, Canada
    Posts
    116
    I ran into this same problem. I struggled with it for a while, then gave up, and then just revisited it again. I believe the newer version of flac2mp3.pl is essentially an ambitious, albeit unfinished, upgrade. I dug around for an older version on my machine, and found flac2mp3-0.2.7.zip. That flac2mp3.pl file within there is significantly different (simpler) than the latest, and it works. I suspect that version 0.3 is when things went pear-shaped. There is a mention of 0.2.9 being available, but I've not found a public download link for that or the earlier 0.2.7 that I have backed up here.

    FWIW, I've sent a message to Robin Bowes, but I've not heard back yet.

    Mike Hanson

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •