FLAC to OGG transcoding question

General discussions.

Moderator: moderators

FLAC to OGG transcoding question

Postby tommy » Thu Mar 25, 2010 4:22 pm

Most ogg encoders can read directly from FLAC, so theoretically a transcode operation from these two formats could be one step. I set up a transcoding entry to do this:

oggenc2 -q 0 %s

Stdout is the default output, so you do not need to specify this.

The problem is that it places the transcoded file in the same directory as the original file--that is, it leaves it on the server, rather than on the client (for me, an Android phone). How can I correct this?

The default WAV to MP3 entry works fine, and it goes to stdout as well.
tommy
 
Posts: 17
Joined: Sat Nov 07, 2009 5:37 pm

Postby tommy » Thu Mar 25, 2010 7:08 pm

I figured it out. The correct line is:

oggenc2 -Q -q 0 %s -o -

This allows you to go from FLAC to ogg in one step, which means it will preserve tags. YAY!
tommy
 
Posts: 17
Joined: Sat Nov 07, 2009 5:37 pm

Postby gabbott » Tue Nov 30, 2010 12:19 am

tommy wrote:I figured it out. The correct line is:

oggenc2 -Q -q 0 %s -o -

This allows you to go from FLAC to ogg in one step, which means it will preserve tags. YAY!


This is working for me to stream FLAC as OGG but it isn't preserving the tags in the resulting OGG file. Any ideas?
gabbott
 
Posts: 17
Joined: Tue Nov 30, 2010 12:17 am
Location: US

Postby stozher » Tue Nov 30, 2010 9:33 am

FLAC to OGG:

ffmpeg -i %s -f ogg -acodec libvorbis -ar 44100 -ab 192k -ac 2 -map_meta_data 0:0 -

ffmpeg -i %s -f ogg -acodec libvorbis -ar 44100 -aq 6 -ac 2 -map_meta_data 0:0 -

Use only "-ab" or "-aq" option. For "-aq" option value see "Wikipedia: Vorbis - Technical details". If you specify only "-f ogg" (not "-acodec") FFmpeg use "-acodec vorbis" - better variant is a libvorbis. Option "-map_meta_data 0:0" used to transfer vorbis tags from FLAC to OGG.

PP: For SS 4.2 "%b" option don't work at all (bugs: don't use "-ab %bk").
User avatar
stozher
 
Posts: 313
Joined: Tue Nov 16, 2010 10:56 am
Location: Sofia, Bulgaria

Postby nicolasavru » Sun Dec 05, 2010 6:13 pm

Another option (and the one I use):

sox -V0 -t flac %s -t ogg -C 4 -

The 4 after the -C specifies the quality, so I transcode to ogg q 4.

The V0 is verbosity 0, not compression/quality.
nicolasavru
 
Posts: 2
Joined: Sun Feb 15, 2009 12:06 am


Return to General

Who is online

Users browsing this forum: No registered users and 6 guests