[MPlayer-users] mplayer rawvideo stream mixes two frames

Carlos PiƱeiro carlospigu at hotmail.com
Mon Mar 21 22:23:21 CET 2016

I am creating a rawvideo stream with known format:

ffmpeg  -y -re -i udp://@ -fflags nobuffer -an -fpsprobesize 5 -f rawvideo -pixel_format yuv420p -video_size 320x240 udp://@

And watching it with mplayer.

mplayer  -nofs -noquiet -identify -nomouseinput -vo gl -nosound -benchmark -demuxer +rawvideo -rawvideo w=320:h=240:format=i420:size=115200  udp://@

7/10 times works fine but some times the video starts incorrectly. As if it starts in the middle of the frame, so half of the frame belongs to one real frame, and the other half to other.

Is there any way to prevent that from happening? I wanted to use raw video simply to reduce CPU time.

More information about the MPlayer-users mailing list