Page 1 of 1

Video Streaming

PostPosted: Tue Jan 18, 2011 8:48 pm
by wacker293
Hi Guys

Im trying to stream an mp4 video but its not loading up here are the error logs if anybody can translate these as i havent a clue what it all means?!?

[1/18/11 8:44:03 PM GMT] INFO PlaylistInputStream Work listening to "Movies\BeetleJuice.mp4"
[1/18/11 8:44:03 PM GMT] DEBUG TranscodeInputStream Starting transcoder: [c:\subsonic\transcode\ffmpeg] [-ss] [0] [-i] [\\Hpwacker293\Music\Squeezesub\Movies\BeetleJuice.mp4] [-async] [1] [-b] [1000k] [-s] [640x360] [-ar] [44100] [-ac] [2] [-v] [0] [-f] [flv] [-]
[1/18/11 8:44:03 PM GMT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) FFmpeg version SVN-r21231-Sherpya, Copyright (c) 2000-2010 Fabrice Bellard, et al.
[1/18/11 8:44:03 PM GMT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) built on Jan 16 2010 05:42:31 with gcc 4.2.5 20080919 (prerelease) [Sherpya]
[1/18/11 8:44:03 PM GMT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) libavutil 50. 7. 0 / 50. 7. 0
[1/18/11 8:44:03 PM GMT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) libavcodec 52.47. 0 / 52.47. 0
[1/18/11 8:44:03 PM GMT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) libavformat 52.47. 0 / 52.47. 0
[1/18/11 8:44:03 PM GMT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) libavdevice 52. 2. 0 / 52. 2. 0
[1/18/11 8:44:03 PM GMT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) libavfilter 1.15. 0 / 1.15. 0
[1/18/11 8:44:03 PM GMT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) libswscale 0. 8. 0 / 0. 8. 0
[1/18/11 8:44:03 PM GMT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) libpostproc 51. 2. 0 / 51. 2. 0
[1/18/11 8:44:03 PM GMT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg)
[1/18/11 8:44:03 PM GMT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) Seems stream 0 codec frame rate differs from container frame rate: 47.95 (48000/1001) -> 23.98 (24000/1001)
[1/18/11 8:44:03 PM GMT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '\\Hpwacker293\Music\Squeezesub\Movies\BeetleJuice.mp4':
[1/18/11 8:44:03 PM GMT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) Metadata:
[1/18/11 8:44:03 PM GMT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) major_brand : isom
[1/18/11 8:44:03 PM GMT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) minor_version : 1
[1/18/11 8:44:03 PM GMT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) compatible_brands: isomavc1
[1/18/11 8:44:03 PM GMT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) title : BeetleJuice
[1/18/11 8:44:03 PM GMT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) description : A couple of recently deceased ghosts contract the services of a "bio-exorcist" in order to remove the obnoxious new owners of their house.
[1/18/11 8:44:03 PM GMT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) year : 1988
[1/18/11 8:44:03 PM GMT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) Duration: 01:32:06.22, start: 0.000000, bitrate: 2565 kb/s
[1/18/11 8:44:03 PM GMT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) Stream #0.0(und): Video: h264, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], 2242 kb/s, 47.90 fps, 23.98 tbr, 24k tbn, 47.95 tbc
[1/18/11 8:44:03 PM GMT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) Stream #0.1(und): Audio: aac, 48000 Hz, 5.1, s16, 317 kb/s
[1/18/11 8:44:03 PM GMT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) Output #0, flv, to 'pipe:':
[1/18/11 8:44:03 PM GMT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) Stream #0.0(und): Video: flv, yuv420p, 640x360 [PAR 1:1 DAR 16:9], q=2-31, 1000 kb/s, 1k tbn, 23.98 tbc
[1/18/11 8:44:03 PM GMT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) Stream #0.1(und): Audio: libmp3lame, 44100 Hz, 2 channels, s16, 64 kb/s
[1/18/11 8:44:03 PM GMT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) Stream mapping:
[1/18/11 8:44:03 PM GMT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) Stream #0.0 -> #0.0
[1/18/11 8:44:03 PM GMT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) Stream #0.1 -> #0.1
[1/18/11 8:44:03 PM GMT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) Press [q] to stop encoding
[1/18/11 8:44:03 PM GMT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) Resampling with input channels greater than 2 unsupported.
[1/18/11 8:44:03 PM GMT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) Can not resample 6 channels @ 48000 Hz to 2 channels @ 44100 Hz
[1/18/11 8:44:07 PM GMT] INFO RESTRequestParameterProcessingFilter Authentication failed for user null


mp4 to flv conversion is enabled in settings so i dont know whether its something im doing wrong or how the movies been ripped?

PostPosted: Tue Jan 18, 2011 8:53 pm
by GJ51
Try this for transcoding:

ffmpeg -v 0 -ss %o -async 30 -i %s -f flv -b %bk -r 30 -s %wx%h -acodec copy -


Also note that JW Player can play mp4 files without being transcoded. If you uncheck the transcoding mp4>flv for the selected player, JW will play the video at it's native resolution directly in the player. In the latest ver 4.4 beta you can also pop out the player.

PostPosted: Tue Jan 18, 2011 9:04 pm
by wacker293
#thanks for the swift reply GJ51 it seams unchecking the transcoding mp4>flv for the selected player worked but the movie wont buffer fast enough!!! maybe its my crappy uplink :0( Shame.

By the way im running 4.3 (build 2087) – January 7, 2011

PostPosted: Tue Jan 18, 2011 9:22 pm
by GJ51
I just updated all my servers to the 4.4 beta! It took all of ten minutes to do all three. Subsonic performance is dependent on all the variables involved from end to end. Poor upload speed is one of the most common issues. I run on 35/35 FIOS, and believe me, it really makes a difference having good upload bandwidth. Many users don't yet grasp how far ahead of infrastructure Subsonic really is. With a good server to host it, high bandwidth, and good equipment at the recieving end, you can achieve truly remarkable results.

Unfortunately, sometimes users want to play a blue ray video on their phone, hosting SS on a NAS with an Atom CPU. It ain't gonna happen. The good news is that no matter what your particular equipment configuration, you can adapt Subsonic to get the best performance possible out of your unique setup. It's just a matter of being realistic and finding settings that don't try to exceed the limitations of your hardware and connection speeds.

PostPosted: Tue Jan 18, 2011 9:37 pm
by wacker293
You hit the nail on the head there. i'll try 4.4 and see if i have any better results, but I cant see it making much of a difference, worth a shot though.

Im in the uk and all ISP's are shit so i guess i'm stuck with what i got.

PostPosted: Tue Jan 18, 2011 9:54 pm
by GJ51
You should still be able to use SS with great results internally on your home network and use it for music over the net. I do recognize the good fortune of having the connection speeds we enjoy here, it is truly hard to imagine life without it. Hopefully worldwide upgrades to infrastructure aren't too far away.

PostPosted: Tue Jan 18, 2011 10:28 pm
by wacker293
"Hopefully worldwide upgrades to infrastructure aren't too far away"

We live in hope!!

I use SS for music along with iSub for the iphone and it works flawlessly!

PostPosted: Thu Jan 20, 2011 1:48 am
by ChiMatt
I would also like to say that JW Player uses RTMP buffering by default and is not set to default to the HTTP streaming buffer settings. I believe this is the reason that many people are experiencing the buffer cache dumping and their movies rebuffering. Not sure how to fix this issue but I do not believe it has to do with subsonic.