0

I want to start working on a low level video player, at this stage, Iam able to download the videos from the server cache them, play them with AVPlayer. what I want to do is to remove the AVPlayer, replace it with low level API's (AVFoundation, CoreMedia, VideoToolbox ...) Iam stuck at getting the NALUs from the NSData. could anyone point me to something useful? .

user3703910
  • 624
  • 1
  • 5
  • 25
  • Here is a very good introduction on how to extract the NALUs from NSData: https://stackoverflow.com/a/29525001 You have to find out in which format the NSData contains the NALUs. When the video is stored in a file, they are usually preceeded with 0x00 0x00 0x00 0x01. When transmitted over RTP, there is no prefix(the size of the RTP packet payload is the size of the NALU) or the NALU is segmented(FU-A/FU-B Nalu types). If they are transmitted over RTP you can find more information about the structure here: https://tools.ietf.org/html/rfc6184 – krial Jul 17 '18 at 12:10
  • thank you, I'll check it out – user3703910 Jul 17 '18 at 12:39
  • Hi. Iam stuck at some point, can you help me go on ? – user3703910 Jul 19 '18 at 08:45
  • yes, edit your question – krial Jul 19 '18 at 10:11
  • can we talk in mails , or in some chat app ? its so specific, and long explanation. – user3703910 Jul 19 '18 at 11:11
  • Nah, that's not the purpose of stackoverflow ;) – krial Jul 19 '18 at 12:07

0 Answers0