OK, shotgun approach:
sudo find / -name '.Trash*'
Steve.
Results 21 to 30 of 31
Thread: Problems using flac2mp3
-
2008-02-22, 11:06 #21
-
2008-02-22, 12:41 #22Member
- Join Date
- Oct 2007
- Posts
- 53
I've emptied the content of /home/felles/Media/Musikk/Rippet/.Trash-lars and deleted .Trash-lars in /home/felles/Media/Flac_som_MP3/ from Midnight commander (sudo mc).Code:lars@ubuntu-server:~$ sudo find / -name '.Trash*' [sudo] password for lars: /home/felles/.Trash-lars /home/felles/Media/Flac_som_MP3/.Trash-lars /home/felles/Media/Musikk/Rippet/.Trash-lars /home/felles/Media/Flac_som_MP3DDDDDDDDD/.Trash-lars /home/lars/.Trash /home/skotten/.Trash-lars /media/LACIE/.Trash-lars lars@ubuntu-server:~$
I've now ran the script again with this result
Two folders are created within /home/felles/Media/Flac_som_MP3/ Both with subfolders, the first with mp3 files, the second empty.Code:Transcoding ".Trash-lars/MTV Unplugged in New York/07. Nirvana - Polly.flac" "flac" --decode --stdout --silent ".Trash-lars/MTV Unplugged in New York/07. Nirvana - Polly.flac"| "lame" --noreplaygain --preset standard --quiet - "/home/felles/Media/Flac_som_MP3DDDDDDDDD/.Trash-lars/MTV Unplugged in New York/gHuSWuF4LG.tmp" 07. Nirvana - Polly.flac: WARNING, don't have accurate sample count available for WAVE header. Generated WAVE file will have a data chunk size of 0. Try decoding directly to a file instead. 07. Nirvana - Polly.flac: ERROR while decoding data state = FLAC__STREAM_DECODER_END_OF_STREAM Exit value from convert command: 0 pf_exists: 1 pf_tags: 1 $::Options{pretend}: not set Writing tags to "/home/felles/Media/Flac_som_MP3DDDDDDDDD/.Trash-lars/MTV Unplugged in New York/07. Nirvana - Polly.mp3" changedframe is 'MUSICBRAINZ_ALBUMID' method is TXXX Setting MUSICBRAINZ_ALBUMID = 'e5edb300-0df6-4089-87ae-ab4bfd20b66d' changedframe is 'DATE' method is TYER Setting DATE = '1994-01-01' changedframe is 'ARTIST' method is TPE1 Setting ARTIST = 'Nirvana' changedframe is 'MUSICBRAINZ_SORTNAME' method is TXXX Setting MUSICBRAINZ_SORTNAME = 'Nirvana' changedframe is 'ALBUM' method is TALB Setting ALBUM = 'MTV Unplugged in New York' changedframe is 'TITLE' method is TIT2 Setting TITLE = 'Polly' changedframe is 'MUSICBRAINZ_TRACKID' method is UFID Setting MUSICBRAINZ_TRACKID = '122ba116-1b78-4d27-886b-d394077761a2' changedframe is 'TRACKNUMBER' method is TRCK Setting TRACKNUMBER = '07' changedframe is 'MUSICBRAINZ_ARTISTID' method is TXXX Setting MUSICBRAINZ_ARTISTID = '5b11f4ce-a62d-471e-81fc-a69a8278c7da' changedframe is 'MD5' method is TXXX Setting MD5 = '00000000000000000000000000000000' srcfile: '.Trash-lars/Welcome_To_Earth/01._Apoptygma_Berzerk_-_Everything_We_Know_Is_Wrong.flac' destfile: '/home/felles/Media/Flac_som_MP3DDDDDDDDD/.Trash-lars/Welcome_To_Earth/01._Apoptygma_Berzerk_-_Everything_We_Know_Is_Wrong.mp3' [.Trash-lars/Welcome_To_Earth/01._Apoptygma_Berzerk_-_Everything_We_Know_Is_Wrong.flac] Unable to read metadata from FLAC! at /bin/flac2mp3-0.3.0rc1/lib/Audio/FLAC/Header.pm line 94. lars@ubuntu-server:~$ sudo find / -name '.Trash*' [sudo] password for lars: /home/felles/.Trash-lars /home/felles/Media/Flac_som_MP3/.Trash-lars /home/felles/Media/Musikk/Rippet/.Trash-lars /home/felles/Media/Flac_som_MP3DDDDDDDDD/.Trash-lars /home/lars/.Trash /home/skotten/.Trash-lars /media/LACIE/.Trash-lars lars@ubuntu-server:~$ /bin/flac2mp3-0.3.0rc1/flac2mp3.pl /home/felles/Media/Musikk/Rippet /home/felles/Media/Flac_som_MP3 Using flac from: /usr/bin/flac Using lame from: /usr/bin/lame Processing directory: /home/felles/Media/Musikk/Rippet 6338 flac files found. Sorting... Sort complete. Transcoding "4 Non Blondes/What's Up?/01. 4 Non Blondes - What's Up?.flac" Writing tags to "/home/felles/Media/Flac_som_MP3/4 Non Blondes/What's Up?/01. 4 Non Blondes - What's Up?.mp3" Transcoding "4 Non Blondes/What's Up?/02. 4 Non Blondes - What's Up? (remix).flac" Writing tags to "/home/felles/Media/Flac_som_MP3/4 Non Blondes/What's Up?/02. 4 Non Blondes - What's Up? (remix).mp3" Transcoding "4 Non Blondes/What's Up?/03. 4 Non Blondes - Train.flac" Writing tags to "/home/felles/Media/Flac_som_MP3/4 Non Blondes/What's Up?/03. 4 Non Blondes - Train.mp3" Transcoding "4 Non Blondes/What's Up?/04. 4 Non Blondes - What's Up? (Piano version).flac" Writing tags to "/home/felles/Media/Flac_som_MP3/4 Non Blondes/What's Up?/04. 4 Non Blondes - What's Up? (Piano version).mp3" Transcoding "A Tribe Called Quest/Anthology Bonus CD/01. A Tribe Called Quest - Bonita Applebum (12" Why? Edit).flac" sh: Syntax error: ")" unexpected "flac" --decode --stdout --silent "A Tribe Called Quest/Anthology Bonus CD/01. A Tribe Called Quest - Bonita Applebum (12" Why? Edit).flac"| "lame" --noreplaygain --preset standard --quiet - "/home/felles/Media/Flac_som_MP3/A Tribe Called Quest/Anthology Bonus CD/88Lsix7Epf.tmp" failed with exit code 512 lars@ubuntu-server:~$
Yours,
Lars
-
2008-02-22, 13:03 #23Robin BowesGuest
Problems using flac2mp3
OiPenguin wrote:
> Robin Bowes;271970 Wrote:
>> This output contradicts your assertion that there is no .Trash-lars
>> dir
>>
>> somewhere in that tree.
>>
>> Please try running it with the --debug switch - it will produce
>> lots more outupt. Please post that.
>>
>> R.
>
> The output is too long to be posted, but I've posted it in full here:
> http://pastebin.com/m16686c78 No files are written to
> /home/felles/Media/Flac_som_MP3
I won't need that, because...
>
> Code: --------------------
>
> lars@ubuntu-server:~$ /bin/flac2mp3-0.3.0rc1/flac2mp3.pl --debug
> /home/felles/Media/Musikk/Rippet
> /home/felles/Media/Flac_som_MP3DDDDDDDDD Using flac from:
> /usr/bin/flac Using lame from: /usr/bin/lame Processing directory:
> /home/felles/Media/Musikk/Rippet $VAR1 = 'Mental
> Overdrive/Plugged/02. Mental Overdrive - Disto Disco.flac';
>
> 6348 flac files found. Sorting... Sort complete. srcfile:
> '.Trash-lars/02. Diverse - O jul med din glede.flac' destfile:
> '/home/felles/Media/Flac_som_MP3DDDDDDDDD/.Trash-lars/02. Diverse - O
> jul med din glede.mp3'
.... I can see here that there's still a .Trash-lars directory.
Also:
OiPenguin wrote:
> I've emptied the content of
> /home/felles/Media/Musikk/Rippet/.Trash-lars and deleted .Trash-lars
> in /home/felles/Media/Flac_som_MP3/ from Midnight commander (sudo
> mc).
>
> I've now ran the script again with this result
>
>
> Code: --------------------
>
> Transcoding ".Trash-lars/MTV Unplugged in New York/07. Nirvana -
> Polly.flac"
There it is again - .Trash-lars.
Try this:
# This will delete all files/directories named ".Trash-lars"
# under the /home/felles/Media/Musikk/Rippet dir
find /home/felles/Media/Musikk/Rippet \
-name ".Trash-lars" \
-exec rm -rf {} \;
Then run flac2mp3.
R.
-
2008-02-22, 13:23 #24
Robin, I think that trash folder was left from a previous run. His post now shows what looks more like a real failure. I think it's a track name with a " character in it.
Steve.
-
2008-02-22, 13:28 #25Member
- Join Date
- Oct 2007
- Posts
- 53
-
2008-02-22, 13:41 #26
Just copy/paste the 3 lines starting at "find...".
Steve.
-
2008-02-22, 14:17 #27Member
- Join Date
- Oct 2007
- Posts
- 53
The result is an error at the same place as previously.
We're leaving for the airport in eight hours and I need some sleep. I'll resort to SoundKonverter for a selcted few files, but will do another attempt after our holiday.Code:lars@ubuntu-server:~$ /bin/flac2mp3-0.3.0rc1/flac2mp3.pl /home/felles/Media/Musikk/Rippet /home/felles/Media/Flac_som_MP3 Using flac from: /usr/bin/flac Using lame from: /usr/bin/lame Processing directory: /home/felles/Media/Musikk/Rippet 6338 flac files found. Sorting... Sort complete. Transcoding "A Tribe Called Quest/Anthology Bonus CD/01. A Tribe Called Quest - Bonita Applebum (12" Why? Edit).flac" sh: Syntax error: ")" unexpected "flac" --decode --stdout --silent "A Tribe Called Quest/Anthology Bonus CD/01. A Tribe Called Quest - Bonita Applebum (12" Why? Edit).flac"| "lame" --noreplaygain --preset standard --quiet - "/home/felles/Media/Flac_som_MP3/A Tribe Called Quest/Anthology Bonus CD/a2X7YPFNkA.tmp" failed with exit code 512 lars@ubuntu-server:~$
As you no doubt can tell, I'm a definitive newbie, but I learn as I go along and will get a grip of Linux with its CLI and everything one day.
Thanks to all for great help.
Yours,
Lars
-
2008-02-22, 14:20 #28Member
- Join Date
- Oct 2007
- Posts
- 53
Sigh... SoundKonverter appears not to do its job. Currently working at speed 0,0 X. I've tried Sound Converter as well, but that didn't work either. Is there a command for the CLI which will convert four folders for me right away. My last resort now is Wine/EAC but I expect that to take a while.
Yours,
Lars
-
2008-02-22, 14:39 #29
Your problem now is that the failing track has a " character in the filename. Try renaming the track to remove that character and run again.
Steve.
-
2008-02-22, 15:00 #30Robin BowesGuest
Problems using flac2mp3
OiPenguin wrote:
> The result is an error at the same place as previously.
>
>
> Code:
> --------------------
>
> lars@ubuntu-server:~$ /bin/flac2mp3-0.3.0rc1/flac2mp3.pl /home/felles/Media/Musikk/Rippet /home/felles/Media/Flac_som_MP3
> Using flac from: /usr/bin/flac
> Using lame from: /usr/bin/lame
> Processing directory: /home/felles/Media/Musikk/Rippet
> 6338 flac files found. Sorting...
> Sort complete.
> Transcoding "A Tribe Called Quest/Anthology Bonus CD/01. A Tribe Called Quest - Bonita Applebum (12" Why? Edit).flac"
> sh: Syntax error: ")" unexpected
> "flac" --decode --stdout --silent "A Tribe Called Quest/Anthology Bonus CD/01. A Tribe Called Quest - Bonita Applebum (12" Why? Edit).flac"| "lame" --noreplaygain --preset standard --quiet - "/home/felles/Media/Flac_som_MP3/A Tribe Called Quest/Anthology Bonus CD/a2X7YPFNkA.tmp" failed with exit code 512
> lars@ubuntu-server:~$
>
That's a different error, and is caused by the " in the file name.
That's a known bug, and one I've not fixed because I've been
procrastinating over choosing the "best" way to do it.
You can do something like this:
Replace these lines:
my $quotedsrc = $srcfilename;
my $quoteddest = $destfilename;
with:
my ($quotedsrc = $srcfilename) =~ s/"/\\"/g;
my ($quoteddest = $destfilename) =~ s/"/\\"/g;
I *will* get round to fixing this properly one day...
R.

Reply With Quote

