LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 08-05-2012, 05:33 PM   #1
Bryan88
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).

However,
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.
 
  


Reply

Tags
camera, ip, transcode, video



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 11:17 AM
Continuously record from camera Mark_667 Linux - Software 2 07-24-2009 12:48 PM
[ALSA] Noisy playback after I record from line in halfzware_shag Linux - Software 0 11-27-2004 08:49 AM
Audio: Full duplex (playback/record) Utah Linux - Hardware 2 07-17-2004 11:29 AM
Audio: Full Duplex Playback/Record Utah Linux - General 0 07-16-2004 04:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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