I have the video working!
Here is what I did to enable video:
Subsonic 4.1 Video setup instructions for Windows
Step 1: Download and install version 4.1 of Subsonic to “c:/subsonic/ (this is usually the default location)
Step 2: Open “C:/subsonic/jetty/1802/webapp/WEB-INF/jsp/playlist.jsp” using a text editor like notepad or wordpad.
Step 3: Search for:
"340" and that's the line you're looking for. Replace the "24" after it with a larger number, 255 gives you a nice player size with a 4:3 aspect ratio. You can tweak the player size to your liking.
Step 4: Search for:
"player.sendEvent("LOAD", list);"
Just above this:
Replace:
if (song.format == "aac" || song.format == "m4a") {
list[0].provider = "video";
}
with:
if(song.format=="mpg" || song.format=="mpeg" || song.format=="avi" || song.format=="mp4" || song.format=="mkv" || song.format=="ogm" || song.format=="flv" || song.format == "aac" || song.format == "m4a"){
list[0]["type"]="video";
}
Step 5: Open your browser and login to your subsonic server by pointing your browser to
http://localhost (
http://locahost:portno if you changed the port for subsonic)
Step 6:Go to Settings > General, and replace the content of “Music Mask” with this:
.mp3 .ogg .aac .flac .m4a .wav .wma .mpg .mpeg .avi .mkv .ogm .mp4 .divx
STEP 7: "Name" "Convert from" and "Convert to" are the same as given in the example.
You can configure multiple conversion configuration for each file type - just be sure to give them different names and make sure only one is default (otherwise it will always go with the first). Then you can chose which encoding configurations to use in the Players tab. Then select the player you want to use based upon which device/data you are using.
Example Step 7:
Go to Settings > Transcoding, and add new transcoders one at a time, corresponding to .mpg, .avi, .mkv, .mp4, and .mpeg. Example for avi to flv is given below:
avi > flv | avi | flv | ffmpeg -re -y -i %s -ar 44100 -sameq -deinterlace -f flv -
Here is the encoding "Step 1" I use for use on 3G:
ffmpeg -i %s -f flv -y -s 640x480 -ar 44100 -b 200kb -ab 32kb -ac 1 -
Note that this can be changed to suit your needs:
-s is the frame size. For widescreen, use 800x450. If you will be watching mostly on a computer, pick a size appropriate for the videos you will be watching.
-ar is the audio sampling rate in Hz. This is probably a good number.
-b is the your video bitrate. This is where the tradeoff between bandwidth and quality takes place. You'll find 200kbps is pretty crappy, but it consistently works on 3G for me. You may be able to get 300-400 to work. Going to be watching on WiFi or that sweet, sweet 4G? Crank it up!
-ab is your audio bitrate. Want better sound quality? Turn it up?
Step 8: Now go to Settings > Players, and make sure your default player for your chosen current player is set to “Web Player”, and that all your new transcoders are checked in (scroll down to bottom of page to ensure this).
Step 9: Now go to Settings > Music Folders, and add your folder containing videos.
Step 10: Open C:/subsonic/jetty/1130/webapp/WEB-INF/jsp/index.jsp. Change
frameset rows="70%,30%"
to
frameset rows="50%,50%"
50/50 can be replaced with whatever looks best to you.
Use the browsing system, and try to play a video with the default Player. After a few seconds the sound should start playing. Right Click on the JWPlayer, and select “Toggle Fullscreen” to start video in full screen mode.
Now you should be able to stream video using Subsonic.
Subsonic offers unmatched flexibility for streaming multimedia, and allows you to access your music and video collection from remote locations.
PS: People with low upload bandwidth might need to tweak their ffmpeg settings a bit.