Page 1 of 1

[FAQ] Transcoding

PostPosted: Thu Oct 11, 2012 9:08 pm
by MadEvil
diffrent ffmpeg transcoding versions:

@ Upload.to http://ul.to/f/sctmqc Madsonic Mashup-Mod Transcoding

transcoding.png


there are many problems with transcoding and diffrent ffmpeg versions, which settings work for you best?

best regards

Re: [FAQ] Transcoding

PostPosted: Thu Oct 11, 2012 11:55 pm
by Mnlmnv
hi Op,

so far I don't have any problem with the Transcoding, and I prefer Madsonic over the official build.

I am using Subsonic Android app, is there a way to stream out video in .m4v or .mp4 (html5) format video?

Re: [FAQ] Transcoding

PostPosted: Fri Oct 12, 2012 3:40 am
by GJ51
I have one transcoding issue that I'm looking into with flac. it does seem that Madsonic is downsampling flac to 128kbps on my phone even though I have the bit rate set to unlimited in the player.

Streaming the same album for my reference standard Subsonic site the album plays at the full 1500kbps rate.

It llooks like th downsampling from the Madsonic site is somehow just getting 128 from somewhere.

[10/11/12 11:28:11 PM EDT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) TITLE : No. 21 - Air - He Was Despised
[10/11/12 11:28:11 PM EDT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) ARTIST : Georg Friderich Handel
[10/11/12 11:28:11 PM EDT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) GENRE : Classical
[10/11/12 11:28:11 PM EDT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) ENCODEDBY : Online Media Technologies
[10/11/12 11:28:11 PM EDT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) URL : http://www.avs4you.com
[10/11/12 11:28:11 PM EDT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) DATE : 1987
[10/11/12 11:28:11 PM EDT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) track : 19
[10/11/12 11:28:11 PM EDT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) Duration: 00:09:30.13, bitrate: 1362 kb/s
[10/11/12 11:28:11 PM EDT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) Stream #0.0: Audio: flac, 48000 Hz, stereo, s32
[10/11/12 11:28:11 PM EDT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) Output #0, mp3, to 'pipe:':
[10/11/12 11:28:11 PM EDT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) Metadata:
[10/11/12 11:28:11 PM EDT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) TALB : Messiah (London Symphony Orch. (Colin David)) (CD 1)
[10/11/12 11:28:11 PM EDT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) TIT2 : No. 21 - Air - He Was Despised
[10/11/12 11:28:11 PM EDT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) TPE1 : Georg Friderich Handel
[10/11/12 11:28:11 PM EDT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) TCON : Classical
[10/11/12 11:28:11 PM EDT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) ENCODEDBY : Online Media Technologies
[10/11/12 11:28:11 PM EDT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) URL : http://www.avs4you.com
[10/11/12 11:28:11 PM EDT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) TDRL : 1987
[10/11/12 11:28:11 PM EDT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) TRCK : 19
[10/11/12 11:28:11 PM EDT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) TSSE : Lavf53.6.0
[10/11/12 11:28:11 PM EDT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) Stream #0.0: Audio: libmp3lame, 48000 Hz, stereo, s32, 128 kb/s [10/11/12 11:28:11 PM EDT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) Stream mapping:
[10/11/12 11:28:11 PM EDT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) Stream #0.0 -> #0.0
[10/11/12 11:28:11 PM EDT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) Press [q] to stop, [?] for help
[10/11/12 11:28:11 PM EDT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) size= 8909kB time=00:09:30.14 bitrate= 128.0kbits/s
[10/11/12 11:28:11 PM EDT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg)
[10/11/12 11:28:11 PM EDT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) video:0kB audio:8909kB global headers:0kB muxing overhead 0.004779%

Re: [FAQ] Transcoding

PostPosted: Fri Oct 12, 2012 6:49 pm
by jonnymnemo
With the two settings, vbr flac doesn't work for me ! :? I have the latest ffmpeg and lame from madsonic, and I am on ubuntu 12.04.

Re: [FAQ] Transcoding

PostPosted: Fri Oct 12, 2012 9:57 pm
by GJ51
Try just using the one step transcoding with ffmpeg.

ffmpeg -i %s -ab %bk -v 0 -f mp3 -

We've also seen that 24 bit flac rip can be troublesome.

Re: [FAQ] Transcoding

PostPosted: Mon Oct 15, 2012 11:43 am
by jonnymnemo
It doesn't work either ! :? Both methods seem not to work on vbr flac. Is it only me ?

Re: [FAQ] Transcoding

PostPosted: Mon Oct 15, 2012 1:29 pm
by jonnymnemo
I reverted back to build 3148 (.deb), and everything works fine now ! Hoping to see the problem solved soon ! :wink:

Re: [FAQ] Transcoding

PostPosted: Mon Oct 15, 2012 9:48 pm
by Mnlmnv
I couldn't play .m4a file from the Madsonic on firefox.

the following fixed my problem, I used step 2:
Postby stozher ยป Thu Dec 09, 2010 7:11 pm
One step with a fixed bit rate (all tags transferred to MP3)

Step 1: ffmpeg -i %s -f mp3 -ar 44100 -ab 320k -ac 2 -map_meta_data 0:0 -
Step 2: none (blank)

or two step transcoding (above is a better choice)

Step 1: ffmpeg -i %s -f wav -ar 44100 -ac 2 -
Step 2: lame --preset cbr %b -S --tt %t --ta %a --tl %l - -

See also viewtopic.php?p=17540#17540

PP: Mark check boxes right from Step 3 and check players settings (log as admin to see all players).

Re: [FAQ] Transcoding

PostPosted: Tue Oct 16, 2012 2:02 pm
by jonnymnemo
The problem is solved with the new settings shown on the first post.
For those who want to copy paste them :

Code: Select all
mp3 audio
ogg oga aac wav wma aif aiff ape mpc shn
mp3
Audioffmpeg -i %s -ab %bk -v 0 -f mp3 -

flv/h264 video
avi mpg mpeg mp4 m4v mkv mov wmv ogv divx m2ts
flv
ffmpeg -ss %o -i %s -async 1 -b %bk -s %wx%h -ar 44100 -ac 2 -v 0 -f flv -vcodec libx264 -preset superfast -threads 0 -

wtv video
wtv
flv
ffmpeg -ss %o -i %s -async 30 -b %bk -r 23-.976 -s %wx%h -ar 44100 -ac 2 -v 0 -f flv -vcodec libx264 -preset fast -threads 0 -

Subwiji
mp3
mp3
Audioffmpeg -f mp3 -i %s -ab %bk -v 0 -f mp3 -

m4a/FLAC audio
m4a flac
mp3
Audioffmpeg -i %s -ab 320k -ar 48000 -ac 2 -v 0 -f mp3 -


I had to put them manually. Is it possible to update them automatically with the .deb package, or to copy/paste a script in the db view (second choice would be better)?
For the transcoding and live streaming commands, are they changed ?

Re: [FAQ] Transcoding

PostPosted: Tue Oct 16, 2012 2:55 pm
by MadEvil
Hi @ all,
a transcoding reset to madsonic default script can be found here -> viewtopic.php?f=15&t=10460&p=47416#p47416