iphone-video

Adding text subtitles to video track (in Swift) fails with error code -11841

空扰寡人 提交于 2019-12-03 10:20:29
问题 I have been struggling with adding text subtitles to videos for a while. I have added some links that I referred in detail, but they are not helping. In below code, I am trying to add a subtitle to a video. The output file path is as below: file:///var/mobile/Applications/03E49B29-1070-4541-B7CB-B1366732C179/Documents/output_movie.mov In addition, the input file was recorded with a call to UIPickerView in the same application, at temporary path below: file:///private/var/mobile/Applications

Adding text subtitles to video track (in Swift) fails with error code -11841

为君一笑 提交于 2019-12-03 00:50:40
I have been struggling with adding text subtitles to videos for a while. I have added some links that I referred in detail, but they are not helping. In below code, I am trying to add a subtitle to a video. The output file path is as below: file:///var/mobile/Applications/03E49B29-1070-4541-B7CB-B1366732C179/Documents/output_movie.mov In addition, the input file was recorded with a call to UIPickerView in the same application, at temporary path below: file:///private/var/mobile/Applications/03E49B29-1070-4541-B7CB-B1366732C179/tmp/capture/capturedvideo.MOV The error I am getting is as follows,

How to get the list of all video files in iPhone

不打扰是莪最后的温柔 提交于 2019-11-29 01:48:59
问题 I want to get the list of all video files which are stored in iPhone internally (recorded and iPod). I want to show all the video files in my application. I have a TableViewController and want to show all video file from iphone in my application. How can I get a list of all the video files? 回答1: You have to use assetLibraries Try this code :- - (void)updateAssetsLibrary { loadImgView.hidden = NO; [spinner startAnimating]; //selectVideoBtn .userInteractionEnabled = NO; assetItems =