Hi Team,
I am looking for frameworks which support extracting the H.264 NAL units from an MPEG Transport Stream. I could not find any API's for the same. Please suggest?
Thanks
Srinivas
Post
Replies
Boosts
Views
Activity
I am trying to create an QuickTime reference movie of two joined movies using AVFoundation in Mac.
Following is the code snipped :
func mergeVideos(firstVideoURL: URL, secondVideoURL: URL, completion: @escaping (URL?, Error?) -> Void) {
let movie = AVMutableMovie(url: firstVideoURL)
let options = AVMovieWritingOptions.addMovieHeaderToDestination
do {
try? movie.insertTimeRange(CMTimeRange(start: .zero, duration: CMTime(seconds: 5, preferredTimescale: 600)), of: AVURLAsset(url: secondVideoURL), at: movie.duration, copySampleData: false)
let outputPath = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask)[0].appendingPathComponent("mergedMovie.mov")
try movie.writeHeader(to: outputPath, fileType: .mov,options: options)
}catch {
print("\(error)")
}
}
I see that the Samplereference movie gets created and when I open it does not show up video and shows only black frame. Appreciate any thoughts on how to fix this?
In my MacApp I am using custom fonts. These fonts are stored in /Resourcese/Fonts folder and Copy phase is written for the same.I noticed that, if I have used these fonts in Xib and I run the app from Xcode. UI does not show up these fonts unless it is installed in Font Book.However, same build if I have published to AppStore and I download from AppStore, custom fonts does show up.My question is that why does Custom font not show up while we run through Xcode?-Srinivas