Sponsored Content
Top Forums Shell Programming and Scripting Curl a JPG from a MJPG stream Post 302599189 by Corona688 on Thursday 16th of February 2012 11:57:41 AM
Old 02-16-2012
mjpegtools can probably do what you want. Installing now to test.

---------- Post updated at 10:55 AM ---------- Previous update was at 10:29 AM ----------

It only supports its own crazy formats, not normal mjpeg. Had better results with mplayer so far:

Code:
mplayer -vo jpeg video.mjpg

But I don't know how to autostop it after x frames.

---------- Post updated at 10:57 AM ---------- Previous update was at 10:55 AM ----------

This works perfectly, saving 00000001.jpg in the current directory:

Code:
mplayer -frames 1 -vo jpeg http://204.248.124.202/mjpg/video.mjpg

 

8 More Discussions You Might Find Interesting

1. AIX

jpg image

Hello I would like to see an jpeg image with aix. It is possible ? how can i do ? thank you (4 Replies)
Discussion started by: pascalbout
4 Replies

2. Shell Programming and Scripting

how to send jpg as body

Hi, I ftp the .jpg file from windows to unix machine, now i need to send the jpg file as body to (not as attachment) outlook, can anyone send the sample code for this? (1 Reply)
Discussion started by: vasu.g
1 Replies

3. Shell Programming and Scripting

[Video stream] network stream recording with mplayer

Hi I used this command: mplayer http://host/axis-cgi/mjpg/video.cgi -user root -passwd root \ -cache 1024 -fps 25.0 -nosound -vc ffh264 \ -demuxer 3 -dumpstream -dumpfile output.avi It's ok but... Video Playing is very fast! Why? Is it a synch problem? What parameter I have to use for... (1 Reply)
Discussion started by: takeo.kikuta
1 Replies

4. Shell Programming and Scripting

Rename all ".JPG" files to ".jpg" under all subfolders...

Hi, Dear all: One question ! ^_^ I'm using bash under Ubuntu 9.10. My question is not to rename all ".JPG" files to ".jpg" in a single folder, but to rename all ".JPG" files to ".jpg" in all subfolders. To rename all ".JPG" to ".jpg" in a single folder, for x in *.JPG; do mv "$x"... (7 Replies)
Discussion started by: jiapei100
7 Replies

5. UNIX for Dummies Questions & Answers

Deleting all but JPG files

I would like to delete all files but keep all the .JPG files. How can this be accomplished? Thanks in advance (8 Replies)
Discussion started by: Xterra
8 Replies

6. Shell Programming and Scripting

print metadata to jpg

Hi all, I would like to write a scipt that gets gps informatoin from a jpg and print 's it on the lower left corner, In order to get the gps data I have found a tool called jhead. In know that with the help of the imagemagick command convert it is possible to print text on the pictures. ... (11 Replies)
Discussion started by: flash80
11 Replies

7. Shell Programming and Scripting

Grab all jpg's from flickr

Hi everyone, i'm trying to download all the jpg's that my school put on flickr and im trying to do this with wget via a bash script. The pictures that im trying to pull are on this site : and below is my script that doesn't appear to be working (1 Reply)
Discussion started by: binary-ninja
1 Replies

8. UNIX for Dummies Questions & Answers

Wget JPG not working

Hi, I am new to Unix. Actually, I am using Terminal from MAC OSX Snow Leopard. I have installed XCode and wget 1.14 today. I just want to download all of the jpg files from a specific blog (from blogspot). But its not working. Here is the command I use: wget -r -nd -A jpg come-se All... (3 Replies)
Discussion started by: bruleke
3 Replies
DRADIO(1)							  DRadio Manuals							 DRADIO(1)

NAME
dradio - Danmarks Radio netradio player SYNOPSIS
dradio [--nologo] [--notitle] [MPLAYER_OPTIONS]... dradio --help, -h dradio --version DESCRIPTION
dradio is a Danmarks Radio (DR) netradio, podcast, and TV player. It is a terminal based frontend to mplayer(1) that collects the available channels/podcasts for convenient browsing. OPTIONS
MPLAYER_OPTIONS Options are passed to the mplayer child process, e.g. 'dradio -nocache' will turn off mplayer caching. See mplayer(1) for a descrip- tion of the available options. --help, -h Print help message and exit. --version Print the version number and exit. --nologo Do not show DR logo. --notitle Do not try to update the title/icon text of the terminal with the currently playing menu item name. KEYBOARD CONTROL
k/j or up/down Navigate menu 1 item up/down. ctrl-b/ctrl-f or pgup/pgdown Navigate menu 1 page up/down. / and * Decrease/increase volume. < and > Previous/next podcast. left and right Seek backward/forwards 1 minute in podcasts. shift-left and shift-right Seek backward/forward 10 minutes in podcasts. t Toggle show DR logo. p Toggle pause. q Quit. When playing streaming TV or video podcasts see mplayer(1) for keyboard controls. FILES
~/.config/dradio/menu.xml The menu configuration file. See dradio(5) for further details. ~/.config/dradio/out.log mplayer stdout is redirected here. ~/.config/dradio/err.log mplayer stderr is redirected here. ~/.config/dradio/input.conf The mplayer input.conf configuration file. See mplayer(1) for further details. http://www.dr.dk/netradio/wmp.asp DR netradio direct links page. http://www.dr.dk/Podcast DR podcast direct links page. AUTHOR
Jess Thrysoee <jess@thrysoee.dk> SEE ALSO
dradio(5), dradio-config(1), mplayer(1), ncurses(3NCURSES) DRadio JANUAR 2009 DRADIO(1)
All times are GMT -4. The time now is 07:46 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy