Khvalovsky / gecko-mediaplayer

Automatically exported from code.google.com/p/gecko-mediaplayer
GNU General Public License v2.0
0 stars 0 forks source link

Apple trailers not working again #121

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Go to apple.com/trailers
2. Try and watch a trailer

What is the expected output? What do you see instead?
Instead of playing, it jumps back and forth between idle and playing and 
doesn't do anything else.

What version of the product are you using? On what operating system?
I'm running the latest SVN of both gnome-mplayer and the gecko mediaplayer (as 
of this evening) on Arch Linux.

Please provide any additional information below.
This is an old problem that was fixed before but is now back because Apple 
presumably modified their site again to try and shut out third party apps.

Original issue reported on code.google.com by hmen...@gmail.com on 7 Jan 2011 at 1:56

GoogleCodeExporter commented 8 years ago
What browser?

Original comment by kdeko...@gmail.com on 7 Jan 2011 at 1:39

GoogleCodeExporter commented 8 years ago
Firefox 3.6.13

Also I'm running 64 bit, but I dunno if that matters.

Original comment by hmen...@gmail.com on 7 Jan 2011 at 2:52

GoogleCodeExporter commented 8 years ago
works here for me, do you have your cache set low? I'm running 64bit Firefox 
3.6.13 on Fedora

Original comment by kdeko...@gmail.com on 7 Jan 2011 at 2:58

GoogleCodeExporter commented 8 years ago
I turned the cache way up, but it still refuses to play anything. If I go to 
Download and then to large, it opens the player window and sits there saying 
idle, unless I click on the pause button, and then it jumps back and forth 
between idle and playing but nothing actually plays.

Original comment by hmen...@gmail.com on 7 Jan 2011 at 3:10

GoogleCodeExporter commented 8 years ago
Can you provide the link you using?

Also, can you enable verbose debug messages in gnome-mplayer and close all 
instances of firefox and then open firefox from a terminal, so the error 
messages will be logged, and then post that log?

Original comment by kdeko...@gmail.com on 7 Jan 2011 at 3:13

GoogleCodeExporter commented 8 years ago
Did you happen to upgrade mplayer recently? Perhaps the new version has a 
problem with apple quicktime media.

Original comment by kdeko...@gmail.com on 7 Jan 2011 at 3:21

GoogleCodeExporter commented 8 years ago
I have mplayer-32663, the latest one in the arch repo, which I assume is the 
latest one.

Anyway, to enable debugging, I need to put --enable-debug after ./configure 
when I compile gnome-mplayer, right?

Original comment by hmen...@gmail.com on 7 Jan 2011 at 3:32

GoogleCodeExporter commented 8 years ago
Nope, it is just a option in gnome-mplayer under Edit->Preferences->Mplayer, 
should be the last item.

Original comment by kdeko...@gmail.com on 7 Jan 2011 at 3:54

GoogleCodeExporter commented 8 years ago
This is what it gives me:

NPP_New called
gecko mediaplayer v1.0.0
Using player backend of '(null)'
DBUS connection created
Listening to path /control/46337
ARG: autoplay = false
ARG: autohref = autohref
ARG: target = quicktimeplayer
ARG: href = 
http://trailers.apple.com/movies/paramount/truegrit/truegrit-tlr2_480p.mov
ARG: src = 
http://trailers.apple.com/movies/paramount/truegrit/truegrit-tlr2_480p.mov
ARG: height = 1
ARG: width = 1
Window resized
Calling GetURLNotify with item = 0xa96fb0 src = 
http://trailers.apple.com/movies/paramount/truegrit/truegrit-tlr2_480p.mov
Window resized
New Stream Requested - 
http://trailers.apple.com/movies/paramount/truegrit/truegrit-tlr2_480p.mov
Entering destroy stream reason = 0 for 
http://trailers.apple.com/movies/paramount/truegrit/truegrit-tlr2_480p.mov
in Destroy Stream
Entering list_parse_qt localsize = 83
Item 
src = http://trailers.apple.com/movies/paramount/truegrit/truegrit-tlr2_480p.mov
local = /home/kalinda/.cache/gnome-mplayer/plugin/gecko-mediaplayerwghwhy
id = -1
hrefid = 0
play = 0
played = 0
path = /control/62633
controlid = 62633
playerready = 0
newwindow = 1
cancelled = 0
streaming = 0
loop = 0
loopcount = 0
Item 
src = http://trailers.apple.com/movies/paramount/truegrit/truegrit-tlr2_480p.mov
local = 
id = 2
hrefid = 1
play = 0
played = 0
path = 
controlid = 0
playerready = 0
newwindow = 0
cancelled = 0
streaming = 0
loop = 0
loopcount = 0
Item 
src = 
http://trailers.apple.com/movies/paramount/truegrit/truegrit-tlr2_h480p.mov
local = 
id = 1
hrefid = 0
play = 1
played = 0
path = /control/62633
controlid = 62633
playerready = 0
newwindow = 0
cancelled = 0
streaming = 0
loop = 0
loopcount = 0
Exiting list_parse_qt
Entering list_parse_qt2 localsize = 83
unable to find mmdr in 
/home/kalinda/.cache/gnome-mplayer/plugin/gecko-mediaplayerwghwhy
Entering list_parse_asx localsize = 83
Item 
src = http://trailers.apple.com/movies/paramount/truegrit/truegrit-tlr2_480p.mov
local = /home/kalinda/.cache/gnome-mplayer/plugin/gecko-mediaplayerwghwhy
id = -1
hrefid = 0
play = 0
played = 0
path = /control/62633
controlid = 62633
playerready = 0
newwindow = 1
cancelled = 0
streaming = 0
loop = 0
loopcount = 0
Item 
src = http://trailers.apple.com/movies/paramount/truegrit/truegrit-tlr2_480p.mov
local = 
id = 2
hrefid = 1
play = 0
played = 0
path = 
controlid = 0
playerready = 0
newwindow = 0
cancelled = 0
streaming = 0
loop = 0
loopcount = 0
Item 
src = 
http://trailers.apple.com/movies/paramount/truegrit/truegrit-tlr2_h480p.mov
local = 
id = 1
hrefid = 0
play = 1
played = 0
path = /control/62633
controlid = 62633
playerready = 0
newwindow = 0
cancelled = 0
streaming = 0
loop = 0
loopcount = 0
Exiting list_parse_asx
Entering list_parse_qml localsize = 83
Item 
src = http://trailers.apple.com/movies/paramount/truegrit/truegrit-tlr2_480p.mov
local = /home/kalinda/.cache/gnome-mplayer/plugin/gecko-mediaplayerwghwhy
id = -1
hrefid = 0
play = 0
played = 0
path = /control/62633
controlid = 62633
playerready = 0
newwindow = 1
cancelled = 0
streaming = 0
loop = 0
loopcount = 0
Item 
src = http://trailers.apple.com/movies/paramount/truegrit/truegrit-tlr2_480p.mov
local = 
id = 2
hrefid = 1
play = 0
played = 0
path = 
controlid = 0
playerready = 0
newwindow = 0
cancelled = 0
streaming = 0
loop = 0
loopcount = 0
Item 
src = 
http://trailers.apple.com/movies/paramount/truegrit/truegrit-tlr2_h480p.mov
local = 
id = 1
hrefid = 0
play = 1
played = 0
path = /control/62633
controlid = 62633
playerready = 0
newwindow = 0
cancelled = 0
streaming = 0
loop = 0
loopcount = 0
Exiting list_parse_qml
Entering list_parse_ram localsize = 83
Item 
src = http://trailers.apple.com/movies/paramount/truegrit/truegrit-tlr2_480p.mov
local = /home/kalinda/.cache/gnome-mplayer/plugin/gecko-mediaplayerwghwhy
id = -1
hrefid = 0
play = 0
played = 0
path = /control/62633
controlid = 62633
playerready = 0
newwindow = 1
cancelled = 0
streaming = 0
loop = 0
loopcount = 0
Item 
src = http://trailers.apple.com/movies/paramount/truegrit/truegrit-tlr2_480p.mov
local = 
id = 2
hrefid = 1
play = 0
played = 0
path = 
controlid = 0
playerready = 0
newwindow = 0
cancelled = 0
streaming = 0
loop = 0
loopcount = 0
Item 
src = 
http://trailers.apple.com/movies/paramount/truegrit/truegrit-tlr2_h480p.mov
local = 
id = 1
hrefid = 0
play = 1
played = 0
path = /control/62633
controlid = 62633
playerready = 0
newwindow = 0
cancelled = 0
streaming = 0
loop = 0
loopcount = 0
Exiting list_parse_ram
URL Notify url = 
'http://trailers.apple.com/movies/paramount/truegrit/truegrit-tlr2_480p.mov'
reason = 0
http://trailers.apple.com/movies/paramount/truegrit/truegrit-tlr2_480p.mov
/home/kalinda/.cache/gnome-mplayer/plugin/gecko-mediaplayerwghwhy
/control/46337
New Stream Requested - 
http://trailers.apple.com/movies/paramount/truegrit/truegrit-tlr2_480p.mov
Duplicate request, item already retrieved
Entering destroy stream reason = 0 for 
http://trailers.apple.com/movies/paramount/truegrit/truegrit-tlr2_480p.mov
URL Notify url = 
'http://trailers.apple.com/movies/paramount/truegrit/truegrit-tlr2_480p.mov'
reason = 0
http://trailers.apple.com/movies/paramount/truegrit/truegrit-tlr2_480p.mov
/home/kalinda/.cache/gnome-mplayer/plugin/gecko-mediaplayerwghwhy
/control/46337
New Stream Requested - 
http://trailers.apple.com/movies/paramount/truegrit/truegrit-tlr2_480p.mov
item is NULL for 
http://trailers.apple.com/movies/paramount/truegrit/truegrit-tlr2_480p.mov
item is null
stream url 
http://trailers.apple.com/movies/paramount/truegrit/truegrit-tlr2_480p.mov
Entering destroy stream reason = 0 for 
http://trailers.apple.com/movies/paramount/truegrit/truegrit-tlr2_480p.mov
Leaving destroy stream - item not found
New Stream Requested - http://trailers.apple.com/
Entering destroy stream reason = 0 for http://trailers.apple.com/
in Destroy Stream
Entering list_parse_qt localsize = 24867
Item 
src = http://trailers.apple.com/movies/paramount/truegrit/truegrit-tlr2_480p.mov
local = /home/kalinda/.cache/gnome-mplayer/plugin/gecko-mediaplayerwghwhy
id = -1
hrefid = 0
play = 0
played = 1
path = /control/62633
controlid = 62633
playerready = 0
newwindow = 1
cancelled = 0
streaming = 0
loop = 0
loopcount = 0
Item 
src = http://trailers.apple.com/movies/paramount/truegrit/truegrit-tlr2_480p.mov
local = 
id = 2
hrefid = 1
play = 0
played = 0
path = 
controlid = 0
playerready = 0
newwindow = 0
cancelled = 0
streaming = 0
loop = 0
loopcount = 0
Item 
src = http://trailers.apple.com/
local = /home/kalinda/.cache/gnome-mplayer/plugin/gecko-mediaplayermjynyi
id = 1
hrefid = 0
play = 1
played = 0
path = /control/62633
controlid = 62633
playerready = 0
newwindow = 1
cancelled = 0
streaming = 0
loop = 0
loopcount = 0
Exiting list_parse_qt
Entering list_parse_qt2 localsize = 24867
unable to find mmdr in 
/home/kalinda/.cache/gnome-mplayer/plugin/gecko-mediaplayermjynyi
Entering list_parse_asx localsize = 24867
Item 
src = http://trailers.apple.com/movies/paramount/truegrit/truegrit-tlr2_480p.mov
local = /home/kalinda/.cache/gnome-mplayer/plugin/gecko-mediaplayerwghwhy
id = -1
hrefid = 0
play = 0
played = 1
path = /control/62633
controlid = 62633
playerready = 0
newwindow = 1
cancelled = 0
streaming = 0
loop = 0
loopcount = 0
Item 
src = http://trailers.apple.com/movies/paramount/truegrit/truegrit-tlr2_480p.mov
local = 
id = 2
hrefid = 1
play = 0
played = 0
path = 
controlid = 0
playerready = 0
newwindow = 0
cancelled = 0
streaming = 0
loop = 0
loopcount = 0
Item 
src = http://trailers.apple.com/
local = /home/kalinda/.cache/gnome-mplayer/plugin/gecko-mediaplayermjynyi
id = 1
hrefid = 0
play = 1
played = 0
path = /control/62633
controlid = 62633
playerready = 0
newwindow = 1
cancelled = 0
streaming = 0
loop = 0
loopcount = 0
Exiting list_parse_asx
Entering list_parse_qml localsize = 24867
Item 
src = http://trailers.apple.com/movies/paramount/truegrit/truegrit-tlr2_480p.mov
local = /home/kalinda/.cache/gnome-mplayer/plugin/gecko-mediaplayerwghwhy
id = -1
hrefid = 0
play = 0
played = 1
path = /control/62633
controlid = 62633
playerready = 0
newwindow = 1
cancelled = 0
streaming = 0
loop = 0
loopcount = 0
Item 
src = http://trailers.apple.com/movies/paramount/truegrit/truegrit-tlr2_480p.mov
local = 
id = 2
hrefid = 1
play = 0
played = 0
path = 
controlid = 0
playerready = 0
newwindow = 0
cancelled = 0
streaming = 0
loop = 0
loopcount = 0
Item 
src = http://trailers.apple.com/
local = /home/kalinda/.cache/gnome-mplayer/plugin/gecko-mediaplayermjynyi
id = 1
hrefid = 0
play = 1
played = 0
path = /control/62633
controlid = 62633
playerready = 0
newwindow = 1
cancelled = 0
streaming = 0
loop = 0
loopcount = 0
Exiting list_parse_qml
Entering list_parse_ram localsize = 24867
Item 
src = http://trailers.apple.com/movies/paramount/truegrit/truegrit-tlr2_480p.mov
local = /home/kalinda/.cache/gnome-mplayer/plugin/gecko-mediaplayerwghwhy
id = -1
hrefid = 0
play = 0
played = 1
path = /control/62633
controlid = 62633
playerready = 0
newwindow = 1
cancelled = 0
streaming = 0
loop = 0
loopcount = 0
Item 
src = http://trailers.apple.com/movies/paramount/truegrit/truegrit-tlr2_480p.mov
local = 
id = 2
hrefid = 1
play = 0
played = 0
path = 
controlid = 0
playerready = 0
newwindow = 0
cancelled = 0
streaming = 0
loop = 0
loopcount = 0
Item 
src = http://trailers.apple.com/
local = /home/kalinda/.cache/gnome-mplayer/plugin/gecko-mediaplayermjynyi
id = 1
hrefid = 0
play = 1
played = 0
path = /control/62633
controlid = 62633
playerready = 0
newwindow = 1
cancelled = 0
streaming = 0
loop = 0
loopcount = 0
Exiting list_parse_ram
Sending Open /home/kalinda/.cache/gnome-mplayer/plugin/gecko-mediaplayermjynyi 
to connection 0xa940b0
item->hrefid = 0 item->src = http://trailers.apple.com/
New Stream Requested - http://trailers.apple.com/
URL Notify url = 
'http://trailers.apple.com/movies/paramount/truegrit/truegrit-tlr2_h480p.mov'
reason = 0
http://trailers.apple.com/
/home/kalinda/.cache/gnome-mplayer/plugin/gecko-mediaplayermjynyi
/control/46337
Duplicate request, item already retrieved
Entering destroy stream reason = 0 for http://trailers.apple.com/
URL Notify url = 
'http://trailers.apple.com/movies/paramount/truegrit/truegrit-tlr2_h480p.mov'
reason = 0
http://trailers.apple.com/
/home/kalinda/.cache/gnome-mplayer/plugin/gecko-mediaplayermjynyi
/control/46337
New Stream Requested - http://trailers.apple.com/
Duplicate request, item already retrieved
Entering destroy stream reason = 0 for http://trailers.apple.com/
URL Notify url = 
'http://trailers.apple.com/movies/paramount/truegrit/truegrit-tlr2_h480p.mov'
reason = 0
http://trailers.apple.com/
/home/kalinda/.cache/gnome-mplayer/plugin/gecko-mediaplayermjynyi
/control/46337

Original comment by hmen...@gmail.com on 7 Jan 2011 at 4:05

GoogleCodeExporter commented 8 years ago
What happens if you open this link in your browser?

http://trailers.apple.com/movies/paramount/truegrit/truegrit-tlr2_480p.mov

if that doesn't work

open gnome-mplayer and choose file -> open Location and put that url in the 
location.

If that doesn't work do this

mplayer 
http://trailers.apple.com/movies/paramount/truegrit/truegrit-tlr2_h480p.mov 
-user-agent QuickTime/7.6.4

If the last one doesn't work, please post the log.

Original comment by kdeko...@gmail.com on 7 Jan 2011 at 4:14

GoogleCodeExporter commented 8 years ago
Ok, so using the mplayer command plays the file just fine :) So I guess it's 
something with gnome-mplayer.

Clicking the link just redirects me to Apple's trailers site.

And trying to open the location in gnome-mplayer doesn't work - It starts to 
fill the cache, but I don't see any video like I usually do, and then it just 
stops. I don't actually get any output in my terminal window, either... Maybe I 
didn't turn on debugging? I looked for the option you mentioned, but didn't see 
it, so I typed enable-debug into the mplayer options box. I tried it in the 
mplayer executable box, but that didn't work. Haha, sorry I'm a bit clueless 
here. Maybe i should just recompile gnome-mplayer with the --enable-debug 
option.

Anyway, have to go to work now, be back later.

Original comment by hmen...@gmail.com on 7 Jan 2011 at 4:51

GoogleCodeExporter commented 8 years ago
There is no --enable-debug option...

you can run gnome-mplayer with the -v option or the --reallyverbose option like 
this...

gnome-mplayer -v 
http://trailers.apple.com/movies/paramount/truegrit/truegrit-tlr2_480p.mov

And you should get something that looks like the attached file.

Original comment by kdeko...@gmail.com on 7 Jan 2011 at 4:54

Attachments:

GoogleCodeExporter commented 8 years ago
Please try the command and attach the log. I'm guessing it will be pretty clear 
what is wrong when I see the log.

Original comment by kdeko...@gmail.com on 7 Jan 2011 at 4:56

GoogleCodeExporter commented 8 years ago
Alrighty, running that command with two trailers, they both work fine. I had 
turned the cache up too high it seems and it was taking forever to full it, 
however once I'd turned it down it worked fine and loaded quickly :)

But it still won't work opening from Firefox, which is really, really odd. I 
could try it in a different browser like Swiftfox or something.

Anyway, for the hell of it, here's my log.

Original comment by hmen...@gmail.com on 7 Jan 2011 at 8:56

Attachments:

GoogleCodeExporter commented 8 years ago
Does it work if you use xv or opengl as the vo? Set them in gnome-mplayer 
Edit->Preferences.

And your cache is still way to large, try 2048 or 4096

Original comment by kdeko...@gmail.com on 7 Jan 2011 at 9:03

GoogleCodeExporter commented 8 years ago
Adding xv doesn't really change anything.

Anyway, here's what happens, since it's easier to show you than to try and 
explain it - http://www.youtube.com/watch?v=s_KO7bZjqX4

Original comment by hmen...@gmail.com on 7 Jan 2011 at 9:29

GoogleCodeExporter commented 8 years ago
Looks like Apple bumped QuickTime to 7.6.9, so grab SVN of gnome-mplayer and 
gecko-mediaplayer. I think that should fix it. From your youtube video it looks 
like apple was giving you the HTML content rather than the video content, and 
usually that is caused by the user agent being set to something apple doesn't 
like.

Original comment by kdeko...@gmail.com on 7 Jan 2011 at 9:47

GoogleCodeExporter commented 8 years ago
Hmm, well I updated my SVNs and restarted my Firefox, but it's still behaving 
the same as before and not working.

Original comment by hmen...@gmail.com on 8 Jan 2011 at 12:48

GoogleCodeExporter commented 8 years ago
Found another spot where the QuickTime version needed to be set in the code, I 
have updated SVN with this change.

Original comment by kdeko...@gmail.com on 12 Jan 2011 at 5:10

GoogleCodeExporter commented 8 years ago
You could also try SVN. I have updated it to use libcurl to fetch media from 
apple.com. So you will need libcurl-devel packages installed.Seems to work ok, 
but may be buggy.

Original comment by kdeko...@gmail.com on 28 Jan 2011 at 5:30

GoogleCodeExporter commented 8 years ago
I'm having trouble with just the apple.com trailers.  Other media sites seem to 
work fine.

Is curl being used only for apple.com media?  I may be having trouble due to 
being behind a firewall and needing to use a proxy to get out.

I see in the debug output:
item retrieved using CURL
fetched http://trailers.apple.com/movies/paramount/super8/super8-tlr1_480p.mov 
to /home/someuser/.cache/gnome-mplayer/plugin/gecko-mediaplayerewqucg
in CURLGetURLNotify

However, "/home/someuser/.cache/gnome-mplayer/plugin/gecko-mediaplayerewqucg" 
is a zero byte file, which leads me to think that it's not getting pulled down.

Original comment by thomasc...@gmail.com on 15 Mar 2011 at 1:46

GoogleCodeExporter commented 8 years ago
Yes, curl is only used for apple.com sites due to the user agent issue. 

You might try setting the environment variable http_proxy in your .bashrc or 
equivalent file. See man curl in the ENVIRONMENT section for details on how to 
set this variable.

Original comment by kdeko...@gmail.com on 15 Mar 2011 at 12:46

GoogleCodeExporter commented 8 years ago
Setting http_proxy does work but unfortunately the proxy is authenticated.  
It's not good practice to put credentials in a plain text file, and it's also 
hard to get hundreds of users to do this.  

Is there any way to get the proxy info/credentials from the existing firefox 
session, or is there another approach that could be taken?

Original comment by thomasc...@gmail.com on 15 Mar 2011 at 6:28

GoogleCodeExporter commented 8 years ago
Getting information from Firefox is the problem that resulted in the move to 
libcurl. The settings and how to get them are not consistent across browsers 
that we are trying to support and even then I doubt the browser would give us 
the unencrypted password, making it a pain to get them. I really don't have a 
good solution for you at the moment, you could compile without libcurl, but 
then the trailers at apple.com won't work at all. Blame apple for requiring the 
odd user agent to get the media.

Original comment by kdeko...@gmail.com on 15 Mar 2011 at 6:33

GoogleCodeExporter commented 8 years ago
That's unfortunate that Apple is filtering based on user agent and there's no 
way of faking it via the plugin.

In any case, I've found a workaround.  I compiled without libcurl and then 
installed the HeaderControl extension, which allows me to fake the user agent 
for just trailers.apple.com.

Original comment by thomasc...@gmail.com on 16 Mar 2011 at 12:46

GoogleCodeExporter commented 8 years ago
Should be fixed in 1.0.3 and higher

Original comment by kdeko...@gmail.com on 1 Jul 2011 at 7:14

GoogleCodeExporter commented 8 years ago
Doesn't work for me with 1.0.4 currently on Arch Linux 64 bit and Firefox 5.0.

Original comment by A.Fetto...@gmail.com on 9 Aug 2011 at 1:55

GoogleCodeExporter commented 8 years ago
I am aware of that problem with 1.0.4 there are some patches that are in SVN 
but you can also get them from here:

One is for gecko-mediaplayer and the other is for gnome-mplayer.

http://lists.rpmfusion.org/pipermail/rpmfusion-commits/2011-July/011758.html

http://lists.rpmfusion.org/pipermail/rpmfusion-commits/2011-July/011759.html

Original comment by kdeko...@gmail.com on 9 Aug 2011 at 4:01