I am able to play that file properly using ffplay, when i use screenrecorder command to capture the screen to a h264 file ,
The video pipeline is, I am capturing YUYV422 ( Camera is returning only YUYV422 ) frames from Camera using v4l2 , executing MSDK VPP processing to convert the buffered frame to I420 and submitting it to MediaCodec encoder.
I am writing the output h264 frame of the MediaCodec encoder to a file and also submitting it to MediaCodec Decoder.
The ffplay of the h264 file generated using the MediaCodec is not so clear and it is pixalated when compared to the h264 file generated using "screenrecorder".
As screenrecorder is in cpp , I am wondering , whether we have a java based screenrecorder, that uses MediaCodec encoder configuration for comparison purposes.