• All submissions to this site are governed by Second Life Project Contribution Agreement. By submitting patches and other information using this site, you acknowledge that you have read, understood, and agreed to those terms.
Issue Details (XML | Word | Printable)

Key: SVC-1832
Type: Bug Bug
Status: Resolved Resolved
Resolution: Misfiled
Priority: Major Major
Assignee: Unassigned
Reporter: anthony reisman
Votes: 4
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
2. Second Life Service - SVC

Smil and images some images do not play correctly

Created: 13/Mar/08 07:49 PM   Updated: 23/Mar/08 07:04 AM
Return to search
Component/s: Scripts
Affects Version/s: None
Fix Version/s: None

File Attachments: 1. File parcel media test.lsl (2 kB)
2. File test3.smil (2 kB)
3. File test4.smil (2 kB)

Image Attachments:

1. image problem jpg_001.jpg
(553 kB)

2. image problem smil.jpg
(539 kB)

3. jpg in QT.jpg
(176 kB)

4. smil in QT.jpg
(336 kB)

5. test3 playing with 512x512.jpg
(160 kB)

6. test4 playing with 513x513.jpg
(275 kB)
Environment: Release Candidate 1.19.1.1
Issue Links:
Relates
 

Linden Lab Issue ID: DEV-11986


 Description  « Hide
Previous versions played the following URL's perfectly.

Now they will play, but they do not look correct. They look like they have had their resolution completely destroyed.

These URL's are sample URL's that we generate on the fly for our products to create a useful UI. If you play them in quicktime (through the play URL option) they will play properly.

http://www.silverstreamnetwork.com/media_test/b1205460309.jpg

http://www.silverstreamnetwork.com/media_test/one1205451892.smil

I have tried setting the mime type to from the LSL application/smil, but this did not work either.

I know for sure that the smil has the mime type set properly within the file.

I have also updated the test script to contain these URL's I have also tested with images and the issue is the same.
Possibly a < vs <= in a check somewhere, but I do not know where this would be in the codebase.



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
anthony reisman added a comment - 13/Mar/08 07:53 PM
Raising priority because this breaks previous working content and does not currently have a known workaround (to me).

Soft Linden added a comment - 14/Mar/08 09:23 AM
Soft,

The issue here is that we do not handle application mime types. I am not familiar with this mime type, but if he want to get it to play using Quicktime, as it did before, he should set the mime type to video/*. Then it will be handled by Quicktime. I am a little hesitant to modify the code to allow quicktime to handle this mime type without investigating this further.

-Sam


Qarl Linden added a comment - 14/Mar/08 09:29 AM
you mention that the resolution is destroyed. perhaps the MEDIA_SIZE value has been changed on your parcel (and is asking for a lower rez version of the image?)

MEDIA_SIZE of 0x0 is the special value that asks for the native resolution of the media.


anthony reisman added a comment - 14/Mar/08 09:58 AM
I should have taken a screen shot, and I'll try to do that next chance I get.

What it looks like (for the image) is that it gets squished down in size and aligned bottom left.
It also looks like it has has about 3/4 of the pixels dropped.

The same occurs for the smil files.

On my next chance to test, I will try setting the MEDIA_SIZE to 0x0, but I did try setting the media size to 512X512, but it didn't seem to affect the image positively as far as resolution went, only in size on the texture.

I had also tried setting the mime type to "video/quicktime" but this didn't make them play any better. I will try "video/*" on my next trial run.


anthony reisman added a comment - 15/Mar/08 07:52 AM
attached files to show issue.

anthony reisman added a comment - 15/Mar/08 07:57 AM
I've attached files showing what I see. I have also attached a file with some code that can be used to test this.

Comment or uncomment as needed to run the particular test you want to see. If you run the test that uses an agent key, you will need to change the agent key to your key (I was testing on group owned land so I couldn't use llGetOwner).

Note, the current test script contains lines using PARCEL_MEDIA_COMMAND_SIZE,0,0 and PARCEL_MEDIA_COMMAND_TYPE, "video/*" so using these commands did not work either.


Redbeard McCellan added a comment - 15/Mar/08 09:13 AM
Looking at section 2.3.1 of http://www.w3.org/TR/2005/REC-SMIL2-20050107/smil-modules.html#smilModulesNSSMIL20MimeType suggests application/smil is the valid mimetype. (Smil 2.0 changes this to application/xmil+xml)

A HEAD check of the two urls posted confirmed image/jpeg and application/smil as the mimetypes.

HEAD http://www.silverstreamnetwork.com/media_test/one1205451892.smil HTTP/1.0

HTTP/1.1 200 OK
Date: Sat, 15 Mar 2008 16:00:53 GMT
Server: Apache
Last-Modified: Fri, 14 Mar 2008 02:33:45 GMT
ETag: "d9392a-8e8-47d9e409"
Accept-Ranges: bytes
Content-Length: 2280
Connection: close
Content-Type: application/smil

Connection closed by foreign host.


aric linden added a comment - 20/Mar/08 03:38 PM
We're not going to work on this in the immediate future. thanks

anthony reisman added a comment - 20/Mar/08 04:17 PM
Can I get a bit more explanation please? Does this mean that it will never be looked at (since it is resolved as won't finish)?

Is it a server issue that would just take too much time, or is it a viewer QT wrapper issue that can be worked on through the open source?

Is it a Quicktime issue that isn't really in LL responsibility?

Does this mean that the new media features aren't going to be released, or are you planning to release them in the official viewer without fixing this?

Any extra information that can be provided would be greatly appreciated as continuing without fixing this definitely breaks a number of our products, and I'm sure a number of other people's as well. If you have some alternate options that might be available, that would also be greatley appreciated.


AWM Mars added a comment - 20/Mar/08 05:02 PM
This is becoming a typical answer by LL.

'Yes we know its broke and we did it, but it will stay this way'.

It doesn't matter how many business's rely on the very technology innovated and invested in to make SL a BETTER place, that has attracted those companies and individuals that have increased the sizeable cashflow to LL, it seems a very careless attitute.

Strip away all the innovations created by technology and expertise of such systems introduced at NO cost to LL and what do we have? A Platform riddled with bugs, unable to see the good work that so many have been and are doing, offering trade and commerce, struggling against the stacked odds of those that are shortsighted and unfortunately in control over the overal platform.

Your World, Your Imagination?.... or is it Our (LL) World, Your Limitation?

I guess you have far more important things to do, like introduce looping media, or tear off menus, a Dazzle Client that is as useful as a handbrake in a canoe. Sorry LL... all these years of being in control, its about time it was taken away from you and elevated to a proper business.


anthony reisman added a comment - 22/Mar/08 07:07 AM
I am re openening as I have determined the likely cause. I just do not know where in LL code this would be fixed. I am also re-opening as my investigation into the issue means that it likely will affect all media playing in SL that meets the criteria, but it may be masked by the fact that not many media is played in this manner.

anthony reisman added a comment - 22/Mar/08 07:12 AM
Ok, some more investigating and I believe I have found the culprit. It appears to be a boundary case issue on the overall media size. If it is exactly on the boundary of 128, 256, 512, 1024 (I have not tested any lower) then it will choose the next higher condition to try and render with that.

If you change the image or smil size by just 1 pixel then it will be fine. This is possible the result of an incorrect < vs <= somewhere.

I will place 2 new URL's and some images to show how this issue is exhibited. The smil files that the URL's point to can be DLed, modified and then viewed easily to see more testing results.


anthony reisman added a comment - 22/Mar/08 07:21 AM
Deleted previous LSL example and updated the code to include 2 new test cases. test3smil has a size of 512x512 and test4.smil of 513x513

anthony reisman added a comment - 22/Mar/08 07:22 AM
Also attaching the smil files if someone wants to view those from this JIRA.

anthony reisman added a comment - 22/Mar/08 07:28 AM
attaching screenshots

I have also found that if you switch between URL's you may have to touch the device twice for the view to be updated with the new smil if you are setting the parcel media.

However, if you uncomment and use the section where it only plays for the agent key, it will occur right away.

Just wanted to add this info for those testing.


anthony reisman added a comment - 22/Mar/08 07:45 AM
updated the issue to contain this new information

anthony reisman added a comment - 22/Mar/08 08:21 AM
Ok, I have yet to be able to build the client successfully (I have VS 2008 express and there's some things that I haven't had time to work out) But I think the problem may lie in llmediamanager.cpp
Toward the end there is some code that appears to match the texture size to the media size and it has the following

while ( texture_width < media_width )
{ texture_width <<= 1; };

I believe that this would take a 512 pixel movie and place it on a 1024 pixel texture when it should be on a 512 pixel texture.
I think that changing it to
while ( texture_width <= media_width )
{ texture_width <<= 1; } };
would fix this. Could anyone help me test this? I will try again to see if I can fix my viewer compile problems if I can.


anthony reisman added a comment - 23/Mar/08 07:04 AM
I have created a new issue in the Viewer section as I think the solution is in the viewer.