1

I am trying to mux a live stream into a mp4 file by using FFmpeg on iOS. After the muxing, how should I save this mp4 file into my iOS photo gallery?

My mp4 file path is something like this: file:///var/mobile/Containers/Data/Application/560F1377-D16D-4322-8CBC-C6F521BA326D/Documents/temp.mp4

I use: videoAtPathIsCompatibleWithSavedPhotosAlbum to make sure this is the right format file that can be saved into iOS photo gallery, but it's always return No.

Any comment will be appreciated!

Chamath
  • 2,016
  • 2
  • 21
  • 30
ChihHao
  • 273
  • 1
  • 4
  • 15
  • The below link provides solution to the above problem, since in your case also videoAtPathIsCompatibleWithSavedPhotosAlbum is is not returing success. http://stackoverflow.com/questions/22207273/uivideoatpathiscompatiblewithsavedphotosalbum-returns-false-when-deploying-on-th – shri Jun 25 '15 at 06:02
  • hey please share a code for save mp4 file using ffmpeg ? – Jatin Dave Apr 07 '16 at 09:40

0 Answers0