bytedeco / javacpp-presets

The missing Java distribution of native C++ libraries
Other
2.65k stars 736 forks source link

AAC bitstream not in ADTS format and extradata missing #929

Open jcfrk101 opened 4 years ago

jcfrk101 commented 4 years ago

Trying to encode an mpegts segment with the AAC encoder. I keep getting the following error when encoding. AAC bitstream not in ADTS format and extradata missing After some research it appears that some hardware encoded aac streams need to corrected using the following api's https://ffmpeg.org/doxygen/trunk/adtsenc_8c.html#a5fbd9637b765dae380fed3b1ddd56214 I do not see them in the ffmpeg presets, am I missing something?

saudet commented 4 years ago

These functions are not public. We'd need to export them from the libraries to be able to use them. Please report upstream!

jcfrk101 commented 4 years ago

This is an HLS mpegts segment, I suspect I may need to use the HLS encoder instead of the mpegts encoder, are there any java cpp examples with HLS encoding?

saudet commented 4 years ago

Not that I know of, but if you have working examples in C/C++, we can port those easily.