4.0.1 and video support

General discussions.

Moderator: moderators

4.0.1 and video support

Postby eccl1213 » Sat May 22, 2010 10:04 pm

I've read this sticky http://forum.subsonic.org/forum/viewtopic.php?t=2528

But does this still apply for 4.0.1?

I have a fresh install of 4.0.1 and from what I can see 4.0.1 Beta had a "Video Mask" section that I do not see, so it looks like 4.0.1 final had the video support removed.

Can I follow the 3.8 sticky to re-enable video support?
eccl1213
 
Posts: 2
Joined: Sat May 22, 2010 10:01 pm

Postby eccl1213 » Thu May 27, 2010 2:10 am

I followed the sticky with 4.0.1 and when i play a mp4 and switch to fullscreen I hear the audio but no video.

Where should i look first? I'm running on Suse linux and have ffmpeg installed in the transcode directory.

it must be transcoding somewhat as i have audio.
eccl1213
 
Posts: 2
Joined: Sat May 22, 2010 10:01 pm

Postby deejay2302 » Mon May 31, 2010 11:19 pm

Same me too. Videos does not work on Version 4.01. No flv, mp4 or others. Please make a new tutorial.Sindre :x
21.681 Artists
58.141 Albums
674.091 Songs
5072,14 GB (~ 49.341 Hours)
User avatar
deejay2302
 
Posts: 165
Joined: Tue Oct 06, 2009 5:36 pm
Location: Germany

Postby lemay86 » Wed Jun 09, 2010 4:14 am

eccl1213 wrote:I followed the sticky with 4.0.1 and when i play a mp4 and switch to fullscreen I hear the audio but no video.

Where should i look first? I'm running on Suse linux and have ffmpeg installed in the transcode directory.

it must be transcoding somewhat as i have audio.


This makes me feel you didn't increase the player size. Are you sure the line reads:

swfobject.embedSWF("/flash/jw-player-5.0.swf", "placeholder", "340", "25", "9.0.0", false, flashvars, params, attributes);
lemay86
 
Posts: 22
Joined: Sat May 09, 2009 8:24 am

Postby deejay2302 » Wed Jun 09, 2010 1:28 pm

What is the file to modify with this text ? The same as in the tutorial? I have no Folder with the Name 1130 !? I have only the Folder 1529.

And i have do this in Folder 1529:

var list = new Array();
list[0] = {
file:song.streamUrl,
title:song.title,
provider:"sound"
};

if (song.duration != null) {
list[0].duration = song.duration;
}
if (song.format == "aac" || song.format == "m4a") {
list[0].provider = "video";
}
if( song.format=="mp4" || song.format=="flv" ){
list[0]["type"]="video";
}

player.sendEvent("LOAD", list);
player.sendEvent("PLAY");

}

Does NOT Work :( I hear no Sound and i see no video. He do nothing play. What am I doing wrong?
21.681 Artists
58.141 Albums
674.091 Songs
5072,14 GB (~ 49.341 Hours)
User avatar
deejay2302
 
Posts: 165
Joined: Tue Oct 06, 2009 5:36 pm
Location: Germany

Postby lemay86 » Fri Jun 11, 2010 1:05 am

for me the playlist .jsp file is located at:

/var/subsonic/jetty/1524/webapp/WEB-INF/jsp/playlist.jsp

for 4.0.1 it will be similar for you if you are using the standalone version of subsonic. Just do a search for playlist.jsp if all else fails.

In playlist.jsp on the line that says (starting on line 63 for me):
Code: Select all
function createPlayer() {
        var flashvars = {
            backcolor:"<spring:theme code="backgroundColor"/>",
            frontcolor:"<spring:theme code="textColor"/>",
            id:"player1"
        }
        var params = {
            allowfullscreen:"true",
            allowscriptaccess:"always"
        }
        var attributes = {
            id:"player1",
            name:"player1"
        }
        swfobject.embedSWF("<c:url value="/flash/jw-player-5.0.swf"/>", "placeholder", "340", "25", "9.0.0", false, flashvars, params, attributes);
    }

make sure the swfobject line second from bottom has a 25 there. This is to ensure the player size is 1 larger than the default. If this is not done you will get sound but no video.

Next, on line 296 for me you should see this code:
Code: Select all
function skip(index) {
        if (index < 0 || index >= songs.length) {
            return;
        }

        var song = songs[index];
        currentStreamUrl = song.streamUrl;
        updateCurrentImage();
        var list = new Array();
        list[0] = {
            file:song.streamUrl,
            title:song.title,
            provider:"sound"
        };

        if (song.duration != null) {
            list[0].duration = song.duration;
        }
        if (song.format == "aac" || song.format == "m4a" || song.format == "mp4" || song.format == "m4v" || song.format == "flv") {
            list[0].provider = "video";
        }

        player.sendEvent("LOAD", list);
        player.sendEvent("PLAY");
    }

The default for this has "if (song.format == "aac" || song.format == "m4a")". Change it to what is above
Code: Select all
if (song.format == "aac" || song.format == "m4a" || song.format == "mp4" || song.format == "m4v" || song.format == "flv") {
and you should have working video and sound.

The sticky is out of date and should be updated by the op.
lemay86
 
Posts: 22
Joined: Sat May 09, 2009 8:24 am

Postby deejay2302 » Tue Jun 15, 2010 11:53 am

Same problem. I have doing what u write. And i have no video and no sound. The Video does not play. He stand on 00:00 position. I use Windows 7 and the Install Version.

That files what i have modify is in folder:

C:\subsonic\jetty\1529\webapp\WEB-INF\jsp\playlist.jsp

Is that the right file?
and
I need the a new codec package ?
21.681 Artists
58.141 Albums
674.091 Songs
5072,14 GB (~ 49.341 Hours)
User avatar
deejay2302
 
Posts: 165
Joined: Tue Oct 06, 2009 5:36 pm
Location: Germany


Return to General

Who is online

Users browsing this forum: No registered users and 10 guests