ogg transcode

Tutorials, tips and tricks.

Moderator: moderators

ogg transcode

Postby jowtron » Wed Apr 29, 2015 12:46 am

Incase anyone wants to do this I've found this 1 step string works well transcoding anything to ogg.

ffmpeg -v 0 -i %s -map 0:0 -b:a %bk -f ogg -vn -acodec libvorbis -ar 44100 -ac 2 -

I use it with iSub app in place of the mp3 transcoding as the quality is better.
Posts: 9
Joined: Thu Dec 20, 2012 11:37 pm

Re: ogg transcode

Postby manwithaplan » Thu Apr 30, 2015 3:38 am

Very interesting, thanks for sharing that. Do you use this to transcode flac files to ogg, or other formats to ogg? Currently, I use iSub to stream native flac without transcoding enabled and get full native quality. I'm curious how ogg would match up to that. My entire collection is flac, some high resolution some regular CD rips to flac. Thanks again!
Subsonic 5.2.1 on 2009 Apple XServe w/ Yosemite Server 10.10.5; 96GB RAM. Lots of Music - High Rez, native DSD streaming, and otherwise.
Posts: 151
Joined: Sun Nov 28, 2010 5:01 pm

Re: ogg transcode

Postby jeffgt14 » Thu Jun 23, 2016 3:21 pm

I’ll add my transcoding to this since I’ve been playing around with it the past few days. I have a lot of 24/96 files so I prefer to let SoX perform the dithering operations. Since my phone native plays 48khz I just convert everything to 16/48 instead of 16/44.1 so even my 16/44.1 gets upsampled to 16/48. I’m sure you can create a script to transcode files that are already 44.1khz to 44.1khz and everything else to 48khz but I just leave it as is because I’m pretty certain my phone upsamples to 48000 during playback anyways (Nexus 5X).

Step 1: sox %s -b 16 -r 48000 -t wav -

Step 2: oggenc -r -R 48000 -Q -q8 -s 1 -o - -

I was having trouble trying to let sox transcode to ogg because it either didn’t want to stream or kept converting to 44.1khz so I went with oggenc for the actual transcoding.
Posts: 33
Joined: Tue Nov 18, 2014 9:35 pm

Re: ogg transcode

Postby Lucatze » Wed Jul 13, 2016 2:55 pm

String is working perfectly.... (ffmpeg)

Works also with iPhone App play:sub.
Posts: 5
Joined: Tue Jul 12, 2016 12:44 am

Re: ogg transcode

Postby jeffgt14 » Wed Jul 20, 2016 10:52 pm

Ok this works better without deleting replaygain tags. I don't like ffmpeg because i have issues with incomplete downloads for some reason with OGG transcodes.

Step 1: sox %s -b 16 -r 48000 -t flac -

Step 2: oggenc -Q -q8 -s 1 -o - -
Posts: 33
Joined: Tue Nov 18, 2014 9:35 pm

Return to Tutorials

Who is online

Users browsing this forum: No registered users and 1 guest