Streaming Video in JWPlayer with Subsonic 3.8 (with FFMpeg)

Tutorials, tips and tricks.

Moderator: moderators

How useful was this Tutorial:

Mohican is God!
13
57%
Mohican is Satan!
3
13%
I don't believe in either...
7
30%
 
Total votes : 23

Postby GJ51 » Fri Jul 08, 2011 2:13 pm

I've found that the default settings work pretty well for the most part, but then again, I'm not fully aware of your particular installation history and what you have or have not done to SS that may affect performance.

My suggestion would be to start with a comletely clean installation of SS, which would include deletion of the settings directory - C:\Subsonic on a Windows install and usually some sort of \var directory in Linix installs.

There is also the chance that we can pinpoint the problem and fix it if you can give me enough specific information such as the file type(s) that aren't working and the transcoding string that is currently used for that file type.

It's your call as to whcich approach makes more sense to you based on your knowledge of how "clean" you think you SS installation is.
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

Postby esper » Tue Jul 12, 2011 5:02 am

Here's what I'm getting after I add the Video directory to my library and try to play a movie (mkv file):

[7/12/11 12:59:26 AM EDT] INFO MusicFolderDao Created music folder /media/mars/backup/video
[7/12/11 1:00:44 AM EDT] WARN FFmpegParser Error when parsing metadata in /media/mars/backup/video/video-popcorn/Movies/Lost In Translation/Lost.in.Translation.2003.DVD5.720p.HDDVD.x264-hV.mkv
[7/12/11 1:00:51 AM EDT] INFO PlaylistInputStream Tommy listening to "Lost In Translation/Lost.in.Translation.2003.DVD5.720p.HDDVD.x264-hV.mkv"
[7/12/11 1:00:51 AM EDT] DEBUG TranscodeInputStream Starting transcoder: [/var/subsonic/transcode/ffmpeg] [-ss] [0] [-i] [/media/mars/backup/video/video-popcorn/Movies/Lost In Translation/Lost.in.Translation.2003.DVD5.720p.HDDVD.x264-hV.mkv] [-async] [1] [-b] [1000k] [-s] [480x360] [-ar] [44100] [-ac] [2] [-v] [0] [-f] [flv] [-]
[7/12/11 1:00:51 AM EDT] WARN TranscodingService Failed to transcode /media/mars/backup/video/video-popcorn/Movies/Lost In Translation/Lost.in.Translation.2003.DVD5.720p.HDDVD.x264-hV.mkv. Using original.
esper
 
Posts: 15
Joined: Mon Jun 28, 2010 9:49 pm

Postby GJ51 » Tue Jul 12, 2011 1:17 pm

What is your transcoding string?
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

Postby esper » Tue Jul 12, 2011 5:21 pm

where can I find that?
esper
 
Posts: 15
Joined: Mon Jun 28, 2010 9:49 pm

Postby GJ51 » Tue Jul 12, 2011 6:57 pm

Settings - Transcoding

Look for mkv > flv
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

Postby esper » Wed Jul 13, 2011 1:25 am

looks like all of the " > flv" strings are the same...

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

avi > flv:
ffmpeg -ss %o -i %s -async 1 -b %bk -s %wx%h -ar 44100 -ac 2 -v 0 -f flv -
esper
 
Posts: 15
Joined: Mon Jun 28, 2010 9:49 pm

Postby GJ51 » Wed Jul 13, 2011 1:40 am

Most likely an error in the metadata in your file created when it was originally encoded. In my Video library ob my public site below there are 4 mkv files that play just fine using the

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

string.

I used AVS video converter to format the video to mkv.

The only other thing I can think of that may be different on my system is that I updated to a newer release of ffmpeg.

EDIT: This may seem like a silly question, but this is an old thread ... you are using the latest version of Subsonic, right? 4.4
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

Postby esper » Wed Jul 13, 2011 1:56 am

I tried some other AVI/MKV files downloaded (legally) from public sites that play just fine on a friends Subsonic Server (Windows Install) and I still get the same error.

Yes, I am running the latest Subsonic 4.4 beta 1 on my Ubuntu Server
esper
 
Posts: 15
Joined: Mon Jun 28, 2010 9:49 pm

Postby esper » Mon Jul 18, 2011 9:07 pm

anyone else have any input?
esper
 
Posts: 15
Joined: Mon Jun 28, 2010 9:49 pm

Postby esper » Tue Jul 26, 2011 6:12 am

I found this thread:

http://forum.subsonic.org/forum/viewtopic.php?p=20794

And I notice when I try to run /var/subsonic/transcode/ffmpeg

I get the following error:
-bash: /var/subsonic/transcode/ffmpeg: No such file or directory


When I navigate to that directory I see it contains the following:
faad ffmpeg flac lame oggdec oggenc


however these are all 'red' in my terminal and not executable. is this the problem? if so, what should I do?
esper
 
Posts: 15
Joined: Mon Jun 28, 2010 9:49 pm

Postby tgrhp » Tue Jul 26, 2011 6:04 pm

what do u get if you run:
$ ffmpeg -h
not in /var/subsonic/transcode and in /var/subsonic/transcode

also try
$ ls
in /var/subsonic/transcode/ the transcoders should be sky blue [meaning symbolic links]

you might not have the transcoders installed? what os are using?
tgrhp
 
Posts: 16
Joined: Wed Jul 13, 2011 3:54 pm

Postby esper » Tue Jul 26, 2011 8:26 pm

tgrhp wrote:what do u get if you run:
$ ffmpeg -h
not in /var/subsonic/transcode and in /var/subsonic/transcode

also try
$ ls
in /var/subsonic/transcode/ the transcoders should be sky blue [meaning symbolic links]

you might not have the transcoders installed? what os are using?



esper@bubbles:~$ ffmpeg -h
/usr/bin/python: can't find '__main__.py' in '/usr/share/command-not-found'

also, as I said before, when I 'ls' in the transcode/ directory, the transcoders are listed but they are 'red' - so I guess they're not symbolic links?

what does this mean? are my transcoders not installed? if so, how do I install them correctly? I'm running Ubuntu Server


thanks for the help!!
esper
 
Posts: 15
Joined: Mon Jun 28, 2010 9:49 pm

Postby esper » Wed Jul 27, 2011 5:11 am

figured out the problem...my transcoders weren't installed!

needless to say, I'm feeling pretty dumb right now. thanks for the help though everyone
esper
 
Posts: 15
Joined: Mon Jun 28, 2010 9:49 pm

Previous

Return to Tutorials

Who is online

Users browsing this forum: No registered users and 14 guests