[jitsi-dev] Hardware H.264 encoding: strange h.264 format


#1

There is a hardware h264 encoder for Allwinner devices.
It can generate playable mkv files, and raw video stream.
Also, raw stream can be dumped from mkv file and it has the same checksum.
But it is not playable. Mplayer does not detect this stream as h.264 and
ffmpeg -f h264 say's this:
[h264 @ 0x43d0e880] missing picture in access unit with size 16997619
[h264 @ 0x43d0e880] no frame!
[h264 @ 0x43d004a0] Stream #0: not enough frames to estimate rate;
consider increasing probesize
[h264 @ 0x43d004a0] decoding for stream 0 failed
[h264 @ 0x43d004a0] Could not find codec parameters for stream 0 (Video:
h264): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize'
options
[h264 @ 0x43d004a0] Estimating duration from bitrate, this may be inaccurate
../softfloat/aaa.raw: could not find codec parameters
the same problem with flv from tomsk fm: dumped stream is not playable.
I added code that dumps jitsi input stream to fifo and replaces encoded by
ffmpeg stream by frame from hardware encoder, but jitsi doesn't send any
data to other side as it cannot recognise this unplayable stream
Encoder source:
https://github.com/patrickhwood/h264encoder
How to generate playable h264-es stream?