[FAQ] Transcoding

Madsonic Mashup Mod is a fork of the Subsonic 4.7 Server Build 3090 with some Subsonic Data schema modifications!

Moderator: moderators

[FAQ] Transcoding

Postby MadEvil » Thu Oct 11, 2012 9:08 pm

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
Last edited by MadEvil on Tue Oct 16, 2012 1:04 pm, edited 1 time in total.
Madsonic Developer
User avatar
MadEvil
 
Posts: 354
Joined: Wed Nov 09, 2011 8:35 pm
Location: Vienna

Re: [FAQ] Transcoding

Postby Mnlmnv » Thu Oct 11, 2012 11:55 pm

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?
User avatar
Mnlmnv
 
Posts: 15
Joined: Thu Oct 11, 2012 4:06 pm

Re: [FAQ] Transcoding

Postby GJ51 » Fri Oct 12, 2012 3:40 am

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%
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Re: [FAQ] Transcoding

Postby jonnymnemo » Fri Oct 12, 2012 6:49 pm

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.
User avatar
jonnymnemo
 
Posts: 70
Joined: Thu Apr 12, 2012 8:11 am

Re: [FAQ] Transcoding

Postby GJ51 » Fri Oct 12, 2012 9:57 pm

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.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Re: [FAQ] Transcoding

Postby jonnymnemo » Mon Oct 15, 2012 11:43 am

It doesn't work either ! :? Both methods seem not to work on vbr flac. Is it only me ?
User avatar
jonnymnemo
 
Posts: 70
Joined: Thu Apr 12, 2012 8:11 am

Re: [FAQ] Transcoding

Postby jonnymnemo » Mon Oct 15, 2012 1:29 pm

I reverted back to build 3148 (.deb), and everything works fine now ! Hoping to see the problem solved soon ! :wink:
User avatar
jonnymnemo
 
Posts: 70
Joined: Thu Apr 12, 2012 8:11 am

Re: [FAQ] Transcoding

Postby Mnlmnv » Mon Oct 15, 2012 9:48 pm

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).
User avatar
Mnlmnv
 
Posts: 15
Joined: Thu Oct 11, 2012 4:06 pm

Re: [FAQ] Transcoding

Postby jonnymnemo » Tue Oct 16, 2012 2:02 pm

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 ?
User avatar
jonnymnemo
 
Posts: 70
Joined: Thu Apr 12, 2012 8:11 am

Re: [FAQ] Transcoding

Postby MadEvil » Tue Oct 16, 2012 2:55 pm

Hi @ all,
a transcoding reset to madsonic default script can be found here -> viewtopic.php?f=15&t=10460&p=47416#p47416
Madsonic Developer
User avatar
MadEvil
 
Posts: 354
Joined: Wed Nov 09, 2011 8:35 pm
Location: Vienna


Return to Madsonic

Who is online

Users browsing this forum: No registered users and 13 guests