Page 1 of 1

DONE: Unable to Load Movies

PostPosted: Thu Aug 12, 2010 1:08 am
by dekiefer
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

Re: Unable to Load Movies

PostPosted: Thu Aug 12, 2010 5:50 am
by udo.killermann
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

Re: Unable to Load Movies

PostPosted: Thu Aug 12, 2010 7:56 am
by dekiefer
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

Re: Unable to Load Movies

PostPosted: Thu Aug 12, 2010 7:59 am
by dekiefer
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

Re: Unable to Load Movies

PostPosted: Sat Aug 14, 2010 7:42 am
by udo.killermann
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

Re: Unable to Load Movies

PostPosted: Mon Aug 16, 2010 12:37 am
by dekiefer
Udo,

Thanks, that worked fine.

Duane