DONE: Unable to Load Movies

Please report bugs.

DONE: Unable to Load Movies

Postby dekiefer » Thu Aug 12, 2010 1:08 am

I get the following error when I try to read into OB a .mov, .wmv, .mp4, .m4v, all of which my QuickTime App can read:

ErrorLoading File file://localhost/Users/dekiefer/MyMovie ... dQuail.mov
Error Domain=NSOSStatusErrorDomain Code=-2012 UserInfo=0x1388a70 "The movie contains an invalid data reference."

I get this error using the Example: QTKit as well. Of course, I substituted one of my .mov in the command:
m = QTMovie.movieWithFile(NSBundle.ResourcePath() + "/Users/dekiefer/Desktop/HawkandQuail.mov", error := err)

If I'm screwing up, I'd appreciate knowing what I'm doing wrong.

Thank you,

Duane
dekiefer
 
Posts: 27
Joined: Tue Apr 20, 2010 11:51 pm

Re: Unable to Load Movies

Postby udo.killermann » Thu Aug 12, 2010 5:50 am

Duane,

this seems to be an error on the OS level and hints (for me) at a problem within the mov file (wild guess). Perhaps it has to do with digital rights management. If I google the error message some similar problems turn up. So far I haven't read an explanation but only problem reports.

Here comes one statement:
That's a Windows Media Player stream. I know it's probably possible to
get that to play somehow in Linux, but I've never cared enough about
WMP compatibility to try.


Is it the same with your file?

Kind regards
Udo
--------------
MacBook (2GHz, 4 GByte) - Lion (10.7.3)
started Objective Basic coding in April 2010 - still enjoy it ;-)
udo.killermann
 
Posts: 247
Joined: Thu Apr 08, 2010 6:46 am
Location: Hannover, Germany

Re: Unable to Load Movies

Postby dekiefer » Thu Aug 12, 2010 7:56 am

Udo,

The thing is, I can play all of the files, that I'm using for testing, with QuickTime. So I don't believe it has anything to do with the movie files themselves. I am glad to hear though that I'm not the only one having this problem. I thought I might be missing something in the setup.

Thanks for responding,

Duane
dekiefer
 
Posts: 27
Joined: Tue Apr 20, 2010 11:51 pm

Re: Unable to Load Movies

Postby dekiefer » Thu Aug 12, 2010 7:59 am

Udo

About 'Digital Rights Management': some of the videos I'm using for test came from my own video camera. So I don't believe that is the problem.

Duane
dekiefer
 
Posts: 27
Joined: Tue Apr 20, 2010 11:51 pm

Re: Unable to Load Movies

Postby udo.killermann » Sat Aug 14, 2010 7:42 am

Duane,

please change
Code: Select all
m = QTMovie.movieWithFile(NSBundle.ResourcePath() + "/Users/dekiefer/Desktop/HawkandQuail.mov", error := err)


to
Code: Select all
m = QTMovie.movieWithFile("/Users/dekiefer/Desktop/HawkandQuail.mov", error := err)


In the example the movie is embedded within the application's resources. Your movie is loaded from the desktop.

Regards
Udo
--------------
MacBook (2GHz, 4 GByte) - Lion (10.7.3)
started Objective Basic coding in April 2010 - still enjoy it ;-)
udo.killermann
 
Posts: 247
Joined: Thu Apr 08, 2010 6:46 am
Location: Hannover, Germany

Re: Unable to Load Movies

Postby dekiefer » Mon Aug 16, 2010 12:37 am

Udo,

Thanks, that worked fine.

Duane
dekiefer
 
Posts: 27
Joined: Tue Apr 20, 2010 11:51 pm


Return to Bug Reports (Xcode 3)

Who is online

Users browsing this forum: No registered users and 0 guests

cron