Transcoding from FLAC to OGG for your Android FAIL

Need help? Post your questions here.

Moderator: moderators

Postby GJ51 » Wed Jun 01, 2011 2:01 am

Tried just about every possible combinatiobn, but still can't get flac > ogg to work on the std Windows install. If anyone has done this, please let us know the secret.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Postby yourlord » Wed Jun 01, 2011 3:56 pm

have you tried it on an actual command line and see if it produces a usable file? That would at least tell us if the issue is subsonic or the utilities. decode a file using ffmpeg and pipe it's output to oggenc2 and see if you get a usable output file.

for simplicity's sake and assuming the windows versions of the utils use the same command line options as the unix versions and are in your search path:

ffmpeg -i test.flac -v 0 -f wav - |oggenc2 -Q -q2 -o test.ogg -
yourlord
 
Posts: 29
Joined: Fri Apr 29, 2011 1:05 am

Postby tschan » Wed Jun 01, 2011 8:19 pm

So you've got the file "oggenc2.exe" in your transcode folder as well as "flac.exe"?

If not download them here and here.

Then try this command line:
flac > ogg | flac | ogg | flac.exe --decode --stdout %s | oggenc2.exe -b %b -s 1 -o - - | <blank>

Maybe that will work. :)
tschan
 
Posts: 16
Joined: Sat Jan 01, 2011 9:43 pm

Postby GJ51 » Wed Jun 01, 2011 9:04 pm

flac.exe
oggenc2.exe

Are already both in my C:\Subsonic\Transode subdirectory but I still can't get any combination of the suggested transcoding settings to work.

The only thing I can get working is:

flac > mp3

ffmpeg -i %s -v 0 -f wav -
lame -b %b --tt %t --ta %a --tl %l -S --resample 44.1 - -

I even tried a few 3 Step guesses.

Classic Microsoft FAIL.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Postby tschan » Wed Jun 01, 2011 9:22 pm

Well then. Try this:

Open a command window (Windows + R, then enter "cmd" and press enter).
Change to your transcode folder (enter: "cd C:\Subsonic\Transode")
Then try to start "oggenc2.exe" and "flac.exe" respectively without any command line arguments and see, if they print out any error messages.
tschan
 
Posts: 16
Joined: Sat Jan 01, 2011 9:43 pm

Postby GJ51 » Thu Jun 02, 2011 1:21 am

Yes, they run, I haven't yet tried a file in the command window, but I will some time tonight.

Edit: I'm getting the following:

av_interleaved_write_frame<>: Error while opening file

I'm beginning to wonder if there's a problem with the file.

Edit2: flac -t says An error occurred opening the input file; it is likely that it does not exist or is not readable.

If anybody wants to donate a known good flac, please send me a PM for my email address.

No wonder I wasn't getting anywhere - Duh... :oops:

Thanks
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Postby tschan » Thu Jun 02, 2011 7:56 am

This error does not really sound like the flac file is corrupt. It seems more like the program is not able to open it. Are you sure the path to the file is correct and you have the necessary permissions to read it?
tschan
 
Posts: 16
Joined: Sat Jan 01, 2011 9:43 pm

Postby GJ51 » Thu Jun 02, 2011 11:33 am

tschan wrote:This error does not really sound like the flac file is corrupt. It seems more like the program is not able to open it. Are you sure the path to the file is correct and you have the necessary permissions to read it?


Yes. I put the flac test file into the transcode subdirectory and ran flac -t while in that directory as administrator.

The file plays in VLC. I don't have any idea what the problem is.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Postby tschan » Thu Jun 02, 2011 3:54 pm

Weird. Does the filename contain any special characters?
tschan
 
Posts: 16
Joined: Sat Jan 01, 2011 9:43 pm

Postby yourlord » Thu Jun 02, 2011 4:13 pm

so if the file is named test.flac, you are running

flac -t test.flac

in the directory where the flac.exe and the flac file are both located?
yourlord
 
Posts: 29
Joined: Fri Apr 29, 2011 1:05 am

Postby GJ51 » Thu Jun 02, 2011 4:34 pm

Yes. The file is Symphony.flac, the opening track of Handel's Messiah.

Plays fine in VLC.

I copied it to C:\Subsonic\Transcode then ran flac -t Symphony.flac

Result:

test: ERROR initializing decoder
state = FLAC_STREAM_DECODER_UNPARSEABLE_STREAM

The FLAC stream may have been created by a more advanced encoder...
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Postby yourlord » Thu Jun 02, 2011 7:47 pm

what is the result when you do flac -v
yourlord
 
Posts: 29
Joined: Fri Apr 29, 2011 1:05 am

Postby GJ51 » Thu Jun 02, 2011 7:54 pm

flac 1.1.2
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Postby yourlord » Thu Jun 02, 2011 8:01 pm

that version is old.. it's quite possible it can't deal with your files.

I'm running 1.2.1 which is the latest.

try grabbing the latest version from the flac site:

flac.sourceforge.net

I'll bet that solves a lot of your problems.
yourlord
 
Posts: 29
Joined: Fri Apr 29, 2011 1:05 am

Postby GJ51 » Thu Jun 02, 2011 11:37 pm

I did, it don't.

I'll try a few more transcoding otions to see if I can get it to go.

I just downloaded the flac installer and extracted the flac.exe into the transcode subdirectory. Do I need to do anything else? flac -t and flac -v report the test file as ok now.

Strange that SS doesn't install the latest flac.exe, it looks like it's been around a while.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

PreviousNext

Return to Help

Who is online

Users browsing this forum: No registered users and 22 guests