Page 1 of 1

Subsonic + Unraid + FFmpeg

PostPosted: Tue Feb 21, 2012 1:13 pm
by kat-ho
Hello world,

I first would like to thanks "subsonic group" for this wonderful application...and all the folks that will be able help me.
Since It is my first post I will try to do my best to stick to the rules for posting.

As a matter of fact, I came across this issue and I try very hard to find out "why". Iv have read everything I could over and over to find a solution but
now it is time to trow the sponge(bob). I declare forfeit :-)
So to keep it simple, I have build an unraid nas (witch is one of the best investment I have evermade...so go and cheer up for Tom, limeteam, and the people on the wiki ).
I have install many features, and of course subsonic ( instruction here http://lime-technology.com/forum/index.php?topic=4700.0 /can be found also on this forum)
I have made the latest updates for the stand alone.Music work very well!!!!
Now every time I try to stream an MKV file, I get stuck, it play and pause the movie and that is my bigfest pain.
This happen trough my home network, no matter the kbps-rate is set...
So I now it s time to help me...any one with the guru skills in unraid + subsonic helllllllppppppp :-P
As I am sure you go across this I will be glad if you can do something (maybe I can send you back Swiss chocolate :lol: )
( Is it possible to post also the latest transcoder PRECOMPILED FOR UNRAID somewhere on this forum as I am linux noob and I don't know how to do it)
Please see below the help form (as you can see in the ffmpeg output I have an operation denial, maybe we can start with that)
Many thanks in advance and I hope it will help other in the futur

<-------------------------Subsonic Help Request---------------------->
Problem Description: I can't get a movie to stream correctly
Troubleshooting Steps: I have look at a lot of topic over the internet but none of them is clear enough to me or meet what I seek
Playback Application and version: Standard Subsonic Web Interface
Subsonic Version: last update (4.6 i guess I upgrade the standalone yesterday 20 feb 2012)
Server Version: Unraid server 4.7 (1.8 atom processor + 1024 ram)
Hardware Platform: Unraid
Java Memory Limit: 500mb
Problem Filename: movie in mkv format (since almost all my library is hd :-)
Output from ffmpeg -i:
Code: Select all
root@Tower:/var/subsonic/data/transcode# ffmpeg -i "/mnt/user/MEDIA/MOVIES/Avatar (2009)"
FFmpeg version 0.6.1, Copyright (c) 2000-2010 the FFmpeg developers
  built on Jan  7 2011 11:48:05 with gcc 4.2.4
  configuration: --enable-gpl --enable-nonfree --enable-libfaad --enable-libfaac --enable-libmp3lame
  libavutil     50.15. 1 / 50.15. 1
  libavcodec    52.72. 2 / 52.72. 2
  libavformat   52.64. 2 / 52.64. 2
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0.11. 0 /  0.11. 0
/mnt/user/MEDIA/MOVIES/Avatar (2009): Operation not permitted

Code: Select all
2/21/12 12:13:23 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/data/transcode/ffmpeg) Chapter #0.64: start 9292.908000, end 9602.259000
[2/21/12 12:13:23 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/data/transcode/ffmpeg) Metadata:
[2/21/12 12:13:23 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/data/transcode/ffmpeg) title : 02:34:52.908
[2/21/12 12:13:23 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/data/transcode/ffmpeg) Chapter #0.65: start 9602.259000, end 9645.886000
[2/21/12 12:13:23 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/data/transcode/ffmpeg) Metadata:
[2/21/12 12:13:23 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/data/transcode/ffmpeg) title : 02:40:02.259
[2/21/12 12:13:23 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/data/transcode/ffmpeg) Chapter #0.66: start 9645.886000, end 9663.987000
[2/21/12 12:13:23 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/data/transcode/ffmpeg) Metadata:
[2/21/12 12:13:23 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/data/transcode/ffmpeg) title : 02:40:45.886
[2/21/12 12:13:23 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/data/transcode/ffmpeg) Chapter #0.67: start 9663.987000, end 9933.215000
[2/21/12 12:13:23 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/data/transcode/ffmpeg) Metadata:
[2/21/12 12:13:23 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/data/transcode/ffmpeg) title : 02:41:03.987
[2/21/12 12:13:23 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/data/transcode/ffmpeg) Chapter #0.68: start 9933.215000, end 9990.814000
[2/21/12 12:13:23 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/data/transcode/ffmpeg) Metadata:
[2/21/12 12:13:23 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/data/transcode/ffmpeg) title : 02:45:33.215
[2/21/12 12:13:23 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/data/transcode/ffmpeg) Chapter #0.69: start 9990.814000, end 10008.498000
[2/21/12 12:13:23 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/data/transcode/ffmpeg) Metadata:
[2/21/12 12:13:23 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/data/transcode/ffmpeg) title : 02:46:30.814
[2/21/12 12:13:23 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/data/transcode/ffmpeg) Chapter #0.70: start 10008.498000, end 10136.793000
[2/21/12 12:13:23 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/data/transcode/ffmpeg) Metadata:
[2/21/12 12:13:23 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/data/transcode/ffmpeg) title : 02:46:48.498
[2/21/12 12:13:23 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/data/transcode/ffmpeg) Chapter #0.71: start 10136.793000, end 10151.725000
[2/21/12 12:13:23 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/data/transcode/ffmpeg) Metadata:
[2/21/12 12:13:23 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/data/transcode/ffmpeg) title : 02:48:56.793
[2/21/12 12:13:23 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/data/transcode/ffmpeg) Chapter #0.72: start 10151.725000, end 10292.073000
[2/21/12 12:13:23 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/data/transcode/ffmpeg) Metadata:
[2/21/12 12:13:23 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/data/transcode/ffmpeg) title : 02:49:11.725
[2/21/12 12:13:23 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/data/transcode/ffmpeg) Chapter #0.73: start 10292.073000, end 10689.428000
[2/21/12 12:13:23 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/data/transcode/ffmpeg) Metadata:
[2/21/12 12:13:23 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/data/transcode/ffmpeg) title : 02:51:32.073
[2/21/12 12:13:23 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/data/transcode/ffmpeg) Stream #0.0(eng): Video: flv, yuv420p, 640x360 [PAR 1:1 DAR 16:9], q=2-31, 1000 kb/s, 1k tbn, 23.98 tbc
[2/21/12 12:13:23 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/data/transcode/ffmpeg) Stream #0.1(eng): Audio: libmp3lame, 44100 Hz, 2 channels, s16, 64 kb/s
[2/21/12 12:13:23 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/data/transcode/ffmpeg) Metadata:
[2/21/12 12:13:23 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/data/transcode/ffmpeg) title : English DTS
[2/21/12 12:13:23 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/data/transcode/ffmpeg) Stream mapping:
[2/21/12 12:13:23 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/data/transcode/ffmpeg) Stream #0.0 -> #0.0
[2/21/12 12:13:23 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/data/transcode/ffmpeg) Stream #0.1 -> #0.1
[2/21/12 12:13:23 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/data/transcode/ffmpeg) Press [q] to stop encoding

Re: Subsonic + Unraid + FFmpeg

PostPosted: Tue Feb 21, 2012 3:13 pm
by BKKKPewsey
What exactly is the problem you are having with mkv files?
Are they not displaying or are you getting a lot of buffering?
The first thing I would say is that it is very unlikely that you will get a smooth video transcode with your hardware.
An atom processor with only 1 meg ram is very underpowered for such tasks.

Have a read of viewtopic.php?f=5&t=8680

:mrgreen:

Re: Subsonic + Unraid + FFmpeg

PostPosted: Wed Feb 22, 2012 9:59 am
by kat-ho
Hi BKKKPewsey,

I have read the article you posted and It could be an hardware issue.
The thing is that I can stream movie in my home network on 3 different computer at the same time.
So perhaps transcoding should be possible. The mobo is
zotac d525 intel 1.8 dualcore nm10

Before I get into hardware part I would like to check if the transcoder is right
the recommended setting are

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 -

They do not work for me unless I delete the end

ffmpeg -ss %o -i %s -async 1 -b %bk -s %wx%h -ar 44100 -ac 2 -v 0 -f flv -

Trough my reading, if I am not mistaken, the "end" should enalbe multicore cpu operation and consequently give better result for MKV handling.

I know my ffmpeg is outdate, but I don't know how to update it on unraid
So fellow unraider and subsonicker, any one can help to solve this issue?
Many thanks in advance