video and music = 2 installs

Need help? Post your questions here.

Moderator: moderators

video and music = 2 installs

Postby reddragon72 » Thu Mar 11, 2010 3:55 pm

Ok I have a Subsonic install for music right now, but I want to have another one for Videos. I tried combining them, but it was just to confusing on what was what. So has anyone installed Subsonic twice? I mean has anyone installed it to two seperate directories and had two login locations? I want to split my movies from my music and two installs seems to be the only way, but I don't want to crash my current install if this is not possible.

thanks
reddragon72
 
Posts: 18
Joined: Sat Sep 19, 2009 5:29 pm

Postby 3R3 » Thu Mar 11, 2010 4:13 pm

on what os are you planning to do this? basically, for ease of use/installation of the 2nd install you would use the standalone version, just create another directory, asign it another port (forward it etc...), and you're set.
User avatar
3R3
 
Posts: 332
Joined: Mon May 04, 2009 2:09 pm
Location: Germany

Postby reddragon72 » Thu Mar 11, 2010 8:52 pm

I have a Windows Home server setup. I used to have a Windows mobile phone and used webguide to stream my movies and tv shows. Well now I have an Android phone and it doesn't do WMV streaming so I have to devise a new way to stream my videos. I have asked on several forums if I can change the way webguid streams, but I have not received a single bit of help. So now I am off to find a new route to go and figured if I could get HTML5 to work in the web page of subsonic to replace flash then I can get my videos reencoded on the fly and streamed in H264 to my phone. Android doesn't do flash and even then I'm not sure I want flash with the new video tag in HTML5. So I am either going to try and replace the current flash player with HTML 5 player or just make a new subsonic and replace the player there with either a simple link to the video or html5 video.
reddragon72
 
Posts: 18
Joined: Sat Sep 19, 2009 5:29 pm

Postby reddragon72 » Fri Mar 12, 2010 7:55 pm

I found a HTML5 player with fall back capability to flash if needed. Here is the code.
Code: Select all
<!-- "Video For Everybody" v0.3.2
     =================================================================================================================== -->
<!-- first try HTML5 playback. if serving as XML, expand `controls` to `controls="controls"` and autoplay likewise -->
<video width="640" height="360" poster="__POSTER__.JPG" controls>
   <!-- you must use `</source>` to avoid a closure bug in Firefox 3 / Camino 2! -->
   <source src="__VIDEO__.OGV" type="video/ogg"><!-- Firefox native OGG video --></source>
   <source src="__VIDEO__.MP4" type="video/mp4"><!-- Safari / iPhone video    --></source>
   <!-- IE only QuickTime embed: IE6 is ignored as it does not support `<object>` in `<object>` so we skip QuickTime
        and go straight to Flash further down. the line break after the `classid` is required due to a bug in IE -->
   <!--[if gt IE 6]>
   <object width="640" height="375" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"><!
   [endif]-->
   <!-- non-IE QuickTime embed (hidden from IE): the self-closing comment tag allows non-IE browsers to
        see the HTML whilst being compatible with serving as XML -->
   <!--[if !IE]><!-->
   <object width="640" height="375" type="video/quicktime" data="__VIDEO__.MP4">
   <!--<![endif]-->
   <param name="src" value="__VIDEO__.MP4" />
   <param name="showlogo" value="false" />
   <param name="autoplay" value="false" />
   <!-- fallback to Flash -->
   <object width="640" height="384" type="application/x-shockwave-flash"
      data="__FLASH__.SWF?image=__POSTER__.JPG&amp;file=__VIDEO__.MP4">
      <!-- Firefox uses the `data` attribute above, IE/Safari uses the param below -->
      <param name="movie" value="__FLASH__.SWF?image=__POSTER__.JPG&amp;file=__VIDEO__.MP4" />
      <!-- fallback image. download links are below the video. warning: putting anything more than
           the fallback image in the fallback may trigger an iPhone OS3+ bug where the video will not play -->
      <img src="__POSTER__.JPG" width="640" height="360" alt="__Title of video__"
           title="No video playback capabilities, please download the video below"
      />
   </object><!--[if gt IE 6]><!-->
   </object><!--<![endif]-->
</video>
<!-- you *must* offer a download link as they may be able to play the file locally. customise this bit all you want -->
<p>Download Video: <a href="__VIDEO__.MP4">Apple iTunes "MP4"</a> | <a href="__VIDEO__.OGV">Open Format "OGG"</a></p>
(If you would like your video to automatically start playing, check out the sample code on the test page.)

Here’s a compacted version as an example:
(Technically only one line break is required to deal with an IE bug on line 4)

<video width="640" height="360" poster="__POSTER__.JPG" controls>
   <source src="__VIDEO__.OGV" type="video/ogg"></source>
   <source src="__VIDEO__.MP4" type="video/mp4"></source><!--[if gt IE 6]>
   <object width="640" height="375" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"><!
   [endif]--><!--[if !IE]><!-->
   <object width="640" height="375" type="video/quicktime" data="__VIDEO__.MP4">
   <!--<![endif]-->
   <param name="src" value="__VIDEO__.MP4" />
   <param name="showlogo" value="false" />
   <param name="autoplay" value="false" />
   <object width="640" height="384" type="application/x-shockwave-flash"
      data="__FLASH__.SWF?image=__POSTER__.JPG&amp;file=__VIDEO__.MP4">
      <param name="movie" value="__FLASH__.SWF?image=__POSTER__.JPG&amp;file=__VIDEO__.MP4" />
      <img src="__POSTER__.JPG" width="640" height="360" alt="__Title of video__"
           title="No video playback capabilities, please download the video below" />
   </object><!--[if gt IE 6]><!--></object><!--<![endif]-->
</video>
<p>Download Video: <a href="__VIDEO__.MP4">Apple iTunes "MP4"</a> | <a href="__VIDEO__.OGV">Open Format "OGG"</a></p>


The only issue is that I am not sure where to put this since Subsonic seems to be done in javascript and this is standard HTML. Anyone have any input?

Also look at the code there is a full explanation at the top and a compact version at the bottom. I tested this on a quick site I put up an it works fine, but there is no transcoding and I don't want to have to recode all my movies just for my cellphone.

thanks for any help anyone can shed on this.
reddragon72
 
Posts: 18
Joined: Sat Sep 19, 2009 5:29 pm

Postby 3R3 » Sun Mar 14, 2010 2:04 am

well, duh! sorry but i never tried to stream video with subsonic. i only read over a few threads here that modded the jwplayer config and use ffmpeg to transcode on the fly...

but there ARE a few threads on here with people modding subsonic to be better suited to play video, i bet someone there has thought about html5, just search for it.

also, i dont have the hardware to test this, so i can only wish you good luck with this!
User avatar
3R3
 
Posts: 332
Joined: Mon May 04, 2009 2:09 pm
Location: Germany

2 installs

Postby sahra » Wed Mar 17, 2010 4:38 pm

> on what os are you planning to do this? basically, for ease of use/installation of the 2nd install you would use the standalone version, just create another directory, asign it another port (forward it etc...), and you're set

Hi 3r3
how would you do that?
copy c:\subsonic\ to c:\subsonic_video\

How would it start automatically?
Where do I chnage the port? in the subsconic.proberties file i just found the PortForwardingPublicPort=4850 not the internal one (port 80)


thnaks for help sahra
sahra
 
Posts: 5
Joined: Wed Mar 17, 2010 4:33 pm

Re: 2 installs

Postby lazy » Wed Mar 17, 2010 8:25 pm

Hi 3r3
how would you do that?
copy c:\subsonic\ to c:\subsonic_video\

I think they are talking about installing the standalone version to another directory. I would not copy your current working directory.
lazy
 
Posts: 9
Joined: Sun May 17, 2009 8:46 pm

Postby 3R3 » Wed Mar 17, 2010 9:54 pm

yeah, i meant a separate install. change the port while/after installing the second version. with the standalone version, under windows i believe there is a .bat file which you have to edit. just enter your port there. there should also be a readme included with further details. sorry to be so vague, but i only have subsonic running under linux, its been some time since i ran it under windows and some things might have changed. but just give it a try, its relatively well documented/commented.
User avatar
3R3
 
Posts: 332
Joined: Mon May 04, 2009 2:09 pm
Location: Germany


Return to Help

Who is online

Users browsing this forum: No registered users and 30 guests