2020-12-19, 22:33
Ok, added @quietvoid ffmpeg patches, compiled it all, build the apk, installed.
It doesn't work but that's good because now we are in the same page.
My take on this:
Kodi or FFMpeg needs to read the extra block.
BLOCK_ADDITIONAL_ID_DVCC = 0x64766343
ExoPlayer uses this function to do it:
The problem is, I don't know how to write this out and to add salt to the injury I don't know how to write this in C++
But I would say that's the problem and since the heavy lift is done by the Shield/Android box you use I can't be that hard.
It doesn't work but that's good because now we are in the same page.
My take on this:
Kodi or FFMpeg needs to read the extra block.
BLOCK_ADDITIONAL_ID_DVCC = 0x64766343
ExoPlayer uses this function to do it:
Code:
protected void handleBlockAddIDExtraData(
Track track, ExtractorInput input, int contentSize)
throws IOException {
if (track.blockAdditionalId == BLOCK_ADDITIONAL_ID_DVVC || track.blockAdditionalId == BLOCK_ADDITIONAL_ID_DVCC) {
track.doviDecoderConfigurationRecord = new byte[contentSize];
input.readFully(track.doviDecoderConfigurationRecord, 0, contentSize);
} else {
// Unhandled block additional data.
input.skipFully(contentSize);
}
}]
The problem is, I don't know how to write this out and to add salt to the injury I don't know how to write this in C++
But I would say that's the problem and since the heavy lift is done by the Shield/Android box you use I can't be that hard.