Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-05-2012, 06:33 PM   #1
LQ Newbie
Registered: Dec 2006
Location: NY
Distribution: Ubuntu
Posts: 21

Rep: Reputation: Disabled
Record, playback, and transcode mjpg ip camera files

I got a couple cheap, IP webcams for home security application. The webcams work fine, but I am looking for a lightweight (not Motion or Zoneminder) way to record, not monitor, the stream on my Ubuntu/Mythbuntu box. And then transcode and/or playback the files only if there was any problems/vandalism. 99.9% of the time, I don't expect to review the files, so I don't want to waste a lot of CPU time recording.

So, far I have cron jobs set up to record the camera stream (reportedly mjpg format), timestamp, and rotate the logs.

Since the cameras have a built in webserver, I can use:
wget http://192.168.0.XXX:80/video.cgi?user=username\pwd=password -O timestamped_file_name.mjpg to record the stream, and it records without error.

The output file only seems to playback on mplayer (but not gmplayer).

wget http://192.168.0.XXX:80/video.cgi?us...\&pwd=password -O - | vlc -
puts live video on the screen and reports the codec as mjpg; but vlc fails to play the saved file as an input file (vlc only plays the first frame and closes). Not sure why streaming works, but the file fails.

Any ideas (mencoder?, ffmpeg?) on more versatile playback (or ways to transcode the stream to a more standardized format to make playback easier and a more compatible format)?

It's likely that someone has solved this likely trivial problem before, but it is not clearly found by searching.


camera, ip, transcode, video

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Triggered record/playback (like a parrot) - can it be done with Linux commands? sawtode Linux - Software 1 10-18-2010 12:17 PM
Continuously record from camera Mark_667 Linux - Software 2 07-24-2009 01:48 PM
[ALSA] Noisy playback after I record from line in halfzware_shag Linux - Software 0 11-27-2004 09:49 AM
Audio: Full duplex (playback/record) Utah Linux - Hardware 2 07-17-2004 12:29 PM
Audio: Full Duplex Playback/Record Utah Linux - General 0 07-16-2004 05:53 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:57 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration