[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://@127.0.0.1:1235 -fflags nobuffer -an -fpsprobesize 5 -f rawvideo -pixel_format yuv420p -video_size 320x240 udp://@127.0.0.1:2223


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://@127.0.0.1:2223


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