FORUM CLOSED, PLEASE REGISTER AT FORUM.SIO2INTERACTIVE.COM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

ogv tutorial 7 fps issue

3 posters

Go down

ogv tutorial 7 fps issue Empty ogv tutorial 7 fps issue

Post  drunknbass Sat Dec 13, 2008 1:10 am

does the video player in tut 7 not run off a delta time? i noticed that the fps seems to have an affect on the time stamp of the playing video.

also every video i have tried to encode plays as a white video in the app, i am using the basic setting for conversion with ffmpeg2theora from terminal

"ffmpeg2theora myfile.mp4"

do you use any particular settings to make your video playable?

drunknbass

Posts : 16
Join date : 2008-12-04

Back to top Go down

ogv tutorial 7 fps issue Empty Re: ogv tutorial 7 fps issue

Post  uprise78 Sat Dec 13, 2008 8:17 pm

I wouldn't use ogv is I were you. They require a ton of software decoding. Use the normal Apple supplied video player for greatly improved performance.

Code:
-(void)playMovieAtURL:(NSURL*)theURL

{
    MPMoviePlayerController* theMovie=[[MPMoviePlayerController alloc] initWithContentURL:theURL];
    theMovie.scalingMode=MPMovieScalingModeAspectFill;
    theMovie.userCanShowTransportControls=NO;

    // Register for the playback finished notification.

    [[NSNotificationCenter defaultCenter] addObserver:self
                                            selector:@selector(myMovieFinishedCallback:)
                                                name:MPMoviePlayerPlaybackDidFinishNotification
                                              object:theMovie];

    // Movie playback is asynchronous, so this method returns immediately.
    [theMovie play];
}

// When the movie is done,release the controller.
-(void)myMovieFinishedCallback:(NSNotification*)aNotification
{
    MPMoviePlayerController* theMovie=[aNotification object];
    [[NSNotificationCenter defaultCenter] removeObserver:self
                                                    name:MPMoviePlayerPlaybackDidFinishNotification
                                                  object:theMovie];

    // Release the movie instance created in playMovieAtURL
    [theMovie release];
}

uprise78

Posts : 228
Join date : 2008-10-31

Back to top Go down

ogv tutorial 7 fps issue Empty Re: ogv tutorial 7 fps issue

Post  drunknbass Sat Dec 13, 2008 8:25 pm

well the point was to not use mp4.. i was actually going to try and work ffmpeg into this and create some kind of media player, but i guess the video player doesnt have the performance required.

drunknbass

Posts : 16
Join date : 2008-12-04

Back to top Go down

ogv tutorial 7 fps issue Empty Re: ogv tutorial 7 fps issue

Post  sio2interactive Sun Dec 14, 2008 12:50 am

Remember that the video have to be a pow of 2... Actually do not use OGV for fullscreen video, and go more for the solution like uprise mention. OGV is good for animated texture of small size & fps... You'll never get a real full screen video played with theora, it takes too much processing on the CPU side...
sio2interactive
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 45
Location : Shanghai

http://sio2interactive.com

Back to top Go down

ogv tutorial 7 fps issue Empty Re: ogv tutorial 7 fps issue

Post  drunknbass Sun Dec 14, 2008 12:59 am

It is probably the video not being a power of 2. I will research a better approach for video thx.

drunknbass

Posts : 16
Join date : 2008-12-04

Back to top Go down

ogv tutorial 7 fps issue Empty Re: ogv tutorial 7 fps issue

Post  sio2interactive Sun Dec 14, 2008 1:01 am

Allright keep us posted Wink
sio2interactive
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 45
Location : Shanghai

http://sio2interactive.com

Back to top Go down

ogv tutorial 7 fps issue Empty Re: ogv tutorial 7 fps issue

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum