If you’re going to go for a movie file, first you have to locate the actual movie file, which can involve poking around in the web source code.įor axis cams it’s often at /mjpg/video.mjpg (so the camera you can view at has the movie file located at ). This search, for example will find Axis brand web cams by looking for the term view/view.shtml in a website address. You can do this using Google, either by searching for webcams or by searching for particular url strings. Both of these methods start with finding a webcam (duh). If you find yourself wanting to grab footage from these for later use, there are two ways to do it. Lots of people put webcams pointing at sites of interest (or sites of utter dullness…) live on the internet. These use mplayer and mencoder which are available for windows, macosX and linux, but I can only comment on the linux version so don’t ask me any windows questions! Finding a webcam So I thought I’d put some recipes for common tasks up here just in case they are useful for anyone else. Most Cygwin users can skip this as Cygwin seems to recognize commands without the ".From time to time I need to download, grab from a webcam, convert, cut, and generally manipulate video files, and every time I do it I have to look up the settings for mplayer, mencoder or ffmpeg again from scratch. The command will aide in replacing the "mplayer " with "mplayer.exe ". exe" command suffixes or are required to, and you have "mplayer" aliases within you Linux bashrc and are copying the Linux bashrc over to Windows' Cygwin, then open the bashrc file within vim and type ":%s/mplayer\ /mplayer.exe\ /gc" without quotes. If not, create the folder and modify your local $PATH to include your /home/user/bin folder, replacing the "user" with your user name.ģ) Type "ln -s /place/where/you/unpackaged/mplayer/mplayer.exe /home/user/bin/"Ĥ) If you prefer using. Successive exections of mplayer.exe appeared to forgo the font searching, resulting in the usual quick start of the program.ġ) Unpackage the mplayer package to a folder.Ģ) Start cygwin and make sure you have a local bin folder (ie. See below Cygwin Instructions) Initial execution of mplayer.exe seemed to search all of Windows fonts. I'm not sure where the other sub-folders should reside, but I simply created a symbolic link using Cygwin for my usage here. Basically, the mplayer.exe goes within your $PATH. The only thing lacking, instructions how to install mplayer.exe and instructions concerning how to use with Cygwin. No more need to fire-up some heavy graphical user interface just to listen to audio streams! (Sorry I couldn't do this, due to a complete lack of free time here!) This gives a smooth and polished feel when playing the clips. I was using VLC Media Player, but it did noy play smoothly, often hitching/lagging for a split second when launching clips, making it seems rough and "unfinished". I just needed a "lighter" player that was flexible enough to support all the different clip types. I'd love to see someone actualy do this properly. The streamer just ads these 3 or 4 window capture sources to each scene they want clips to be available, then the script/utility launches each clip with the appropriate window title to have it play at the right size and location. Maybe another for "accent clips/memes", so users can add commentary by launching clips at proper moments, like a "!rip" command that plays a rotation of funny "I'm dead" clips when the streamer dies playing a game. Maybe 1 for fullscreen clips with a chromakey filter, a regular fullscreen clip fo speciual event clips, and maybe ones for subscriber "intro clips" they use when they join chat to announce their presence in style. The fact that you can title the player window allows a streamer to have a few different windows captures set up. if a streamer wants to rotate 8 different "Hug" clips when a viewer runs the "!hug command in chat, there should be a utility that can launch the clips when the commands are run, then rotate the clips so if 4 or 5 people use the "Hug" command to hug each other, it doesn't just play the same clip over and over. I am just doing this for fun, and to help streamers offer a little something extra. I take chat commands that create a text semaphore/trigger file, and when the script sees the trigger, it uses this Mplayer utility to play. I use it for some custom clip management and window capture for streamers to use when broadcasting using the OBS Studio streaming/broadcasting software on Twitch. I needed a simple command-ling media player, and this was perfect! Extremely lightweight and very versatile.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |