ogv tutorial 7 fps issue
3 posters
ogv tutorial 7 fps issue
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?
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
Re: ogv tutorial 7 fps issue
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
Re: ogv tutorial 7 fps issue
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
Re: ogv tutorial 7 fps issue
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...
Re: ogv tutorial 7 fps issue
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
Similar topics
» v1.3.2 and the first few tutorials
» Physics Issue - 1.35 and 1.4
» SIO2 1.4 is around the corner...
» 2D View Issue
» Collision Issue and Removing Objects
» Physics Issue - 1.35 and 1.4
» SIO2 1.4 is around the corner...
» 2D View Issue
» Collision Issue and Removing Objects
Permissions in this forum:
You cannot reply to topics in this forum