AutoHotkey Community

It is currently May 26th, 2012, 4:17 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 23 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: April 14th, 2009, 3:46 pm 
Offline

Joined: February 29th, 2008, 12:11 pm
Posts: 943
I have one MPEG file on my computer that I definitely remember I was able to play on my laptop before it was broken. Now I want t play it on my desktop with "Real Player" (not sure which version, I think it's "Real Player 11", but it's the same as I had on the laptop). Firstly, I get this message:

Real Player needs to download new software to play this clip

when I click on "Okay" I get this:

Real Player requires additional components to play this presentation. Please wait while a software update is located.

And, in a moment, this:

There is no software update available from Real Player to support this content.
Content Type: MPG

How can I solve this problem? I don't want to change the format of the file - I've already tried and noticed that the quality wasn't as good as what I saw on the laptop (by the way, the file is a piece of my home-made video uploaded onto the computer from a digital video camera recorder). Perhaps, I need to download some additional utility or so, I don't know...

And also, why does it say "Content Type: MPG" instead of "Content Type: MPEG" in the last message?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 14th, 2009, 10:33 pm 
Offline
User avatar

Joined: October 7th, 2006, 8:45 am
Posts: 3329
Location: Simi Valley, CA
I had to lol @ this thread. Real Player is among the worst choices for a media player for a variety of reasons.

I use VLC, which is an open source media player (GNU GPL too).

_________________
Ternary (a ? b : c) guide     TSV Table Manipulation Library
Post code inside [code][/code] tags!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 15th, 2009, 2:10 am 
Offline

Joined: February 29th, 2008, 12:11 pm
Posts: 943
[VxE] wrote:
I had to lol @ this thread. Real Player is among the worst choices for a media player for a variety of reasons.

I use VLC

Sure. I can use other player to play my video, but my point here is why I could use Real Player on my laptop, but can't do the same thing on my desktop - the same video clip and the same version of Real Player! The problem seems to lay not in Real Player, but in my computer.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 15th, 2009, 3:05 am 
Offline

Joined: April 18th, 2008, 7:57 am
Posts: 1390
Location: The Interwebs
Most likely you have more codecs installed on your laptop than on your computer.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 15th, 2009, 3:29 am 
Offline

Joined: February 14th, 2005, 4:05 pm
Posts: 4710
Location: Boulder, CO
After I installed DivX, RealPlayer started to play more video, like MPEG-4, with .mpg extension, but also .avi files. It finds codecs of other programs.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 15th, 2009, 3:51 am 
Offline

Joined: April 18th, 2008, 7:57 am
Posts: 1390
Location: The Interwebs
Laszlo wrote:
It finds codecs of other programs.


Most video players do. Well, I don't know about one's like VLC that come prepackaged with most codecs anyway, but generally they do. Windows Media Player does as well.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 15th, 2009, 8:40 am 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
Those are called DirectShow Filters, based on COM. You can use them even inside AHK.
Code:
sFile:=   A_WinDir "\clock.avi"

Gui, +LastFound
Gui, Show, w600 h600 Center, Player

COM_Init()
pctl :=   COM_CreateObject(CLSID_FilgraphManager:="{E436EBB3-524F-11CE-9F53-0020AF0BA770}", IID_IMediaControl:="{56A868B1-0AD4-11CE-B03A-0020AF0BA770}")
pwin :=   COM_QueryInterface(pctl, IID_IVideoWindow:="{56A868B4-0AD4-11CE-B03A-0020AF0BA770}")
COM_Invoke(pctl, "RenderFile", sFile)
COM_Invoke(pwin, "Owner", WinExist())
COM_Invoke(pwin, "WindowStyle", 0x44000000)
COM_Invoke(pwin, "SetWindowPosition", 0, 0, 600, 600)
COM_Invoke(pwin, "Visible", -1)
COM_Invoke(pctl, "Run")
Return

GuiClose:
COM_Invoke(pwin, "Visible", 0)
COM_Invoke(pwin, "Owner", 0)
Gui, Destroy
COM_Release(pwin)
COM_Release(pctl)
COM_Term()
ExitApp


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 15th, 2009, 4:18 pm 
Offline

Joined: February 14th, 2005, 4:05 pm
Posts: 4710
Location: Boulder, CO
Sean: Your script just shows me a blank window. What else do I have to do?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 15th, 2009, 5:15 pm 
Quote:
Sean: Your script just shows me a blank window.
4 the records. Works fine for me XP/SP2/AHK 1.0.47.x


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 16th, 2009, 12:25 am 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
Laszlo wrote:
Sean: Your script just shows me a blank window. What else do I have to do?
Without any error message being popped up? Which OS? I tested it in XPSP3. What happens with this?
Code:
#Persistent

sFile := A_WinDir "\clock.avi"
COM_Init()
pctl := COM_CreateObject(CLSID_FilgraphManager:="{E436EBB3-524F-11CE-9F53-0020AF0BA770}", IID_IMediaControl:="{56A868B1-0AD4-11CE-B03A-0020AF0BA770}")
COM_Invoke(pctl, "RenderFile", sFile)
COM_Invoke(pctl, "Run")


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 16th, 2009, 12:35 am 
Offline

Joined: April 18th, 2008, 7:57 am
Posts: 1390
Location: The Interwebs
I'm not surprised it doesn't work for me, since I'm on Windows 7, but both of the scripts give me the error:

Code:
---------------------------
COM Error Notification
---------------------------
Function Name:   "RenderFile"
ERROR:      (0x80040216)
PROG:   
DESC:   
HELP:   ,0

ERROR2:   Member not found.

   (0x80020003)

Will Continue?
---------------------------
Yes   No   
---------------------------


Just figured I'd let you know.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 16th, 2009, 12:53 am 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
Krogdor wrote:
Just figured I'd let you know.
Looks like the clock.avi file is missing in A_WinDir in your system. Change sFile to a real multimedia file in your machine.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 16th, 2009, 12:59 am 
Offline

Joined: April 18th, 2008, 7:57 am
Posts: 1390
Location: The Interwebs
Aha. It works!

Your knowledge of everything Windows truly amazes me sometimes, Sean..


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 16th, 2009, 4:02 am 
Offline

Joined: February 14th, 2005, 4:05 pm
Posts: 4710
Location: Boulder, CO
Sean wrote:
Looks like the clock.avi file is missing in A_WinDir in your system.
That's it. In Vista the clock.avi file is missing, too. I did not get any error message, though.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 16th, 2009, 5:38 am 
Offline

Joined: February 29th, 2008, 12:11 pm
Posts: 943
Sean wrote:
Those are called DirectShow Filters, based on COM. You can use them even inside AHK.

Sean, is this script supposed to work as a kind of replacement for a codec? Will it work for any player? What's the main function of your script?


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 23 posts ]  Go to page 1, 2  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google Feedfetcher, Ragnar, tidbit and 0 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group