API_CHANGES 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. Changes in xxxx
  2. ---------------
  3. Change to MP4Create and MP4Modify to allow flags to be set for 64 bit
  4. to allow Quicktime compatibility
  5. Change to MP4CloneTrack and MP4CopyTrack for when you copy a hint
  6. track - you must now specify the track ID in the new file for the
  7. reference track.
  8. Changes in 0.9.9
  9. ---------------------------
  10. Added support for ISMA's Ismacrypt specification:
  11. MP4GetTrackEsdsObjectTypeId replaces MP4GetTrackAudioType
  12. and MP4GetTrackVideoType.
  13. MP4EncAndCloneTrack is used instead of MP4CloneTrack to encrypt a track
  14. while cloning it.
  15. MP4EncAndCopyTrack is used instead of MP4CopyTrack to encrypt a track
  16. while copying it.
  17. MP4AddEncAudioTrack adds an encrypted audio track.
  18. MP4AddEncVideoTrack adds an encrypted video track.
  19. Changes in 0.9.8
  20. ---------------------------
  21. MP4WriteSample - changed "uint8_t * data" to "const uint8_t *data"
  22. Changes from 0.9.6
  23. ---------------------------
  24. Modified
  25. MP4SetHintTrackRtpPayload
  26. payload parameter to get a dynamic payload is MP4_SET_DYNAMIC_PAYLOAD
  27. (value 0xff) instead of 0.
  28. Changes from 0.9.5 to 0.9.6
  29. ---------------------------
  30. Modified
  31. MP4GetHintTrackRtpPayload
  32. MP4SetHintTrackRtpPayload
  33. get/set the encoding params (a=rtpmap <payloadname>/<timescale>[/<encoding params>])
  34. Changes from 0.9.4 to 0.9.5
  35. ---------------------------
  36. Added
  37. MP4GetTrackAudioMpeg4Type()
  38. Returns MPEG-4 Audio type (e.g. AAC, CELP, HXVC, MIDI, etc.)
  39. MP4ReadSampleFromTime()
  40. Variant of MP4ReadSample() that uses time instead of sample id
  41. (basically MP4GetSampleIdFromTime() + MP4ReadSample())
  42. MP4Info()
  43. MP4FileInfo()
  44. Returns summary info on tracks in file (from util/mp4info.cpp)
  45. The following functions add support for mp4 authoring/editting:
  46. MP4CloneTrack()
  47. Make a copy of a specified track, without media samples
  48. MP4CopyTrack()
  49. Make a copy of a specified track, with or without media samples
  50. MP4CopySample()
  51. Make a copy of a specified media sample
  52. MP4AddTrackEdit()
  53. Add a track edit list element
  54. MP4DeleteTrackEdit()
  55. Delete a track edit list element
  56. MP4GetTrackNumberOfEdits()
  57. Return the number of track edit list elements
  58. MP4GetTrackEditTotalDuration()
  59. Return the total duration of the track edit list
  60. MP4GetTrackEditStart()
  61. Return the edit start time for the edit list element
  62. MP4GetTrackEditMediaStart()
  63. Return the media start time for the edit list element
  64. MP4SetTrackEditMediaStart()
  65. Set the media start time for the edit list element
  66. MP4GetTrackEditDuration()
  67. Return the edit list element duration
  68. MP4SetTrackEditDuration()
  69. Set the edit list element duration
  70. MP4GetTrackEditDwell()
  71. Return the edit list element dwell parameter, see man page
  72. MP4SetTrackEditDwell()
  73. Set the edit list element dwell parameter, see man page
  74. MP4ReadSampleFromEditTime()
  75. Apply the edit list timeline to reading a sample
  76. MP4GetSampleIdFromEditTime()
  77. Return the sample id for a specified time on the edit list timeline
  78. Modified
  79. MP4GetSampleIdFromTime()
  80. Semantic change - now returns sample id corresponding
  81. to specified time, not the sample id with the smallest positive
  82. start time difference from the specified time.
  83. Changes from 0.9.3 to 0.9.4
  84. ---------------------------
  85. Added
  86. MP4GetTrackVideoFrameRate()
  87. Returns video frame rate (average rate if video is variable rate).
  88. MP4GetTrackBitRate()
  89. Returns track average bit rate in bits-per-second.
  90. Changes from 0.9.2 to 0.9.3
  91. ---------------------------
  92. Modified
  93. MP4Optimize()
  94. Second argument, newFileName, can now be NULL in which case
  95. a temporary file is created for the results of the optimization.
  96. Upon success, the existing file specified with the first argument
  97. is overwritten with the optimized file.
  98. MP4GetNumberOfTracks()
  99. MP4FindTrackId()
  100. Both have a new optional argument, subType, with default value 0.
  101. The subType can be specified for audio and video tracks to
  102. match only a specific encoding type. See man page for more details.
  103. Added
  104. MP4GetTrackVideoWidth()
  105. Returns video width in pixels. See man page for caveat.
  106. MP4GetTrackVideoHeight()
  107. Returns video height in pixels. See man page for caveat.