Page 1 of 1

ogg transcode

PostPosted: Wed Apr 29, 2015 12:46 am
by jowtron
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.

Re: ogg transcode

PostPosted: Thu Apr 30, 2015 3:38 am
by manwithaplan
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!

Re: ogg transcode

PostPosted: Thu Jun 23, 2016 3:21 pm
by jeffgt14
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.

Re: ogg transcode

PostPosted: Wed Jul 13, 2016 2:55 pm
by Lucatze
String is working perfectly.... (ffmpeg)

Works also with iPhone App play:sub.

Re: ogg transcode

PostPosted: Wed Jul 20, 2016 10:52 pm
by jeffgt14
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 - -