jemk / cedrus

https://linux-sunxi.org/VE_Register_guide
47 stars 29 forks source link

corrupt H.264 encoder P-Frames #5

Open mzakharo opened 7 years ago

mzakharo commented 7 years ago

Running on R8 (C.H.I.P platform), with just I-Frames output looks fine, with P-frames, video exhibits pink distortion around areas of the picture with motion. Example: cedar.mkv, reference.mkv. Output using binary blobs and h264encoder looks fine with P-frames enabled. Any ideas on what could be wrong?

mzakharo commented 7 years ago

Ok, just pushed a change that fixes corrupt pink P-frames: https://github.com/mzakharo/gst-plugin-cedar/commit/eb70fe5a31f8516fde96f67a3a5c262bdffca6cd

I dumped all registers right after ve_wait for h264encoder, and compared it to the open-source stack -> and it looked like there was a buffer missing. Not sure why this is required on C.H.I.P platform.