Looking for a working example to add srt subtitles to video in xcode - xcode4.3

Any one please help me… my app is based on showing subtitles under video…I did little bit in that by using Movie Player project from developer.apple, I can play and pause the subtitle while play and pause the video. I have a problem with how to synchronize the video with subtitle such as forward, backward, slider,entering full screen. I looking for an example like synchronize .srt file with MPMoviePlayerController in Xcode and also other..Please discuss your idea in that with me... Thank you

Related

Snapchat style captions on recorded videos

I am using expo and i am trying to implement a feature similar to snapchat/instagrams draw on video and add text/caption to video before upload it. My problem is not the UI part but editing the original video and getting a uri for the new video
I know with images you can use libraries like expo-pixi then take a snapshot of a view but i am not how to go about this for recorded videos specifically
anyone would be kind enough to point me to the right direction?

How to save video overlay iphone xcode

I have created an overlay to an MPMoviePlayerController using the following code, which essentially adds a subtitle in my iphone xcode project:
[_mpMoviePlayerController.view addSubview:lblOverlayView];
I want to now be able to save the video (and eventually facebook, but I don't NEED help with that, just the saving would be fine) with the subtitles. It is playing a preloaded video, and the dynamic part is the subtitle, which is whatever text the user enters (which becomes the value of lblOverlayView. If you have any other ways of adding text that can very over the top of a preexxisting/preloaded video and then saving/emailing/facebooking it, that would also be great! Just some way of doing it!!
Any help I can get will be hugely appreciated.

Simple AVFoundation troubleshooting Situation

I have an app that has some video editing tools. I mix photos and videos and I am running into an odd issue. When i arrange a video composition with a video, then a photo, then back to the video it plays fine until the transition back to the video at which point it freezes! I still hear the audio, and if i seek around the video starts playing again. I dont know how I can error check this! Anyone have any ideas?
The fix more my situation, I created a 1 second clip of blackness and injected that into my composition at the photo spot and now it works fine

Play video files on iPad

I am on the lookout for some sample code to help me learn how to play movie files (.mp4) on the iPad.
Can anyone help? I can only find a iPhone sample which doesn't work.
See the AVFoundation framework, particularly AVPlayer. There’s also a higher-level class called MPMoviePlayerController that offers simple video playback (it’s easier to use but cannot be customized).

How can I format a movie to play through MPMoviePlayerViewController on the iPad?

I've been struggling to make video on the iPad work. I'm using an MPMoviePlayerViewController and it plays fine in the simulator. I've tried several different converters, including ones dedicated to producing iPad-formatted video, but none of the videos play on the device. The MPMoviePlayerViewController loads and the controls appear.
For most of the videos, the spinning progress indicator never goes away. For a few, the video loads but when I press play the video immediately pauses. I know that the video is there because I can scan through and see various frames.
I know the code works because it plays a different movie file perfectly. I just have no idea what I'm doing wrong that's preventing my movie from playing. Does anyone know a good step-by-step process of getting an iPad-formatted video from any .mov or .mp4?
Thanks,
Luke
Also, just for future reference, import target video into iTunes, then highlight it and from the Advanced menu choose "Create iPod or iPhone Version" or "Create iPad or AppleTV Version" depending on your target device.
This guarantees that the right codecs are used and the right bitflags set on the video file.
Fixed - the one that loaded but couldn't play eventually worked. Why? Who knows.