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:
it gave this error;Code:mplayer -cache 10000 http://192.168.2.2:8080/?action=stream
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.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 there a way to run this command and just get a screen with the stream playing?
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 1 of 1
Thread
Similar Threads
-
how to catch a webcam stream
By rhurbarb in forum Video Streaming DownloadingReplies: 0Last Post: 12th Dec 2013, 15:45 -
how to stream (live) webcam to other viewers on a webpage
By ngate in forum Video Streaming DownloadingReplies: 0Last Post: 4th Dec 2012, 11:33 -
Screen capture of live webcam stream - which format should I use?
By clemenzina in forum Video Streaming DownloadingReplies: 0Last Post: 23rd Nov 2011, 05:44 -
I need a camcorder to stream HD like a webcam. What can I get ?
By jfmonod in forum Camcorders (DV/HDV/AVCHD/HD)Replies: 8Last Post: 21st Oct 2011, 08:33 -
MPlayer stream error
By nic3 in forum Software PlayingReplies: 0Last Post: 31st Jul 2011, 17:23