I'm trying to play a webcam stream using mplayer. I have made a TKinter interface in python, but I couldnt find any way to embed a video file in it. So I created a button that, when clicked, plays the video stream in a second screen. For this I chose MPlayer. The command I tried:
Code:
mplayer -cache 10000 http://192.168.2.2:8080/?action=stream
it gave this error;

Code:
MPlayer sherpya-r37597+g1f12a88-5.3.1 (C) 2000-2016 MPlayer Team
    
    Playing http://192.168.2.2:8080/?action=stream.
    Connecting to server 192.168.2.2[192.168.2.2]: 8080...
    
    Cache size set to 10000 KBytes
    Cache fill: 19.95% (2042740 bytes)
    
    libavformat version 57.21.101 (internal)
    Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
    Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
    Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
    Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
    Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
    Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
    Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
    Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
    Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
    Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
    Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
    Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
    Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
    Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
    Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
    Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
    Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
    Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
    Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
    Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
    Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
    Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
    libavformat file format detected.
    [mjpeg @ 0000000001ace780]Changing bps to 8
    [lavf] stream 0: video (mjpeg), -vid 0
    VIDEO:  [MJPG]  640x480  0bpp  25.000 fps    0.0 kbps ( 0.0 kbyte/s)
    Load subtitles in http://192.168.2.2:8080/
    Load subtitles in C:/Users/Arthur/Downloads/MPlayer-x86_64-r37597+g1f12a88/MPlayer-x86_64-r37597+g1f12a88/mplayer/sub/
    ==========================================================================
    Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
    libavcodec version 57.22.100 (internal)
    Selected video codec: [ffmjpeg] vfm: ffmpeg (FFmpeg MJPEG)
    ==========================================================================
    Audio: no sound
    Starting playback...
    [mjpeg @ 0000000001ace780]Changing bps to 8
    Could not find matching colorspace - retrying with -vf scale...
    Opening video filter: [scale]
    Movie-Aspect is undefined - no prescaling applied.
    [swscaler @ 0000000001bfc940]bicubic scaler, from yuv422p to yuyv422 using MMXEXT
    [swscaler @ 0000000001bfc940]using unscaled yuv422p -> yuyv422 special converter
    VO: [direct3d] 640x480 => 640x480 Packed YUY2
    Movie-Aspect is undefined - no prescaling applied.
    VO: [direct3d] 640x480 => 640x480 Packed YUY2
    
    Exiting... (Quit)
I had to press "q" to cancel those "cache empty" messages, and then the screen with the video screen popped up for a split second. Increasing the cache doesn't help.

I there a way to run this command and just get a screen with the stream playing?