FLAC to OGG transcoding question

Posted:
Thu Mar 25, 2010 4:22 pm
by tommy
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.

Posted:
Thu Mar 25, 2010 7:08 pm
by tommy
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!

Posted:
Tue Nov 30, 2010 12:19 am
by gabbott
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?

Posted:
Tue Nov 30, 2010 9:33 am
by stozher
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").

Posted:
Sun Dec 05, 2010 6:13 pm
by nicolasavru
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.