I've hit the same wall with VLC on other video sources. I've tried all different methods of codecs and containers with VLC, but motion doesn't like any of them.
On Thu, 16 Sep 2010 04:08:31 -0400, Sebastian <firstname.lastname@example.org> wrote:I've been experimenting with this quite a bit. The only method I've
> it sounds like what you are after is using vlc, ffmpeg/ffserver,
> mencoder, or any other suitable software to capture the mpeg4/h.264
> stream, transcode it to an http mjpeg stream, and feed that to Motion.
> Last few weeks I've tried to get vlc to do a similar job - and their
> mjpeg transcoder seems utterly broken at the moment. Don't know much
> about mencoder. So I would suggest mencoder (if you are already familiar
> with it and know it will do it), or ffmpeg with ffserver.
gotten to the point where I can view the transcoded video is using vlc
cvlc -vvv rtsp://192.168.10.228 \
I can then view the video using
Within vlc, I select Tools/Codec Information, it shows the codec as
"Motion JPEG Video (MJPG)
Running motion with "netcam_url http://127.0.0.1:8228", I get ...
 Processing thread 0 - config file /etc/motion.microseven.conf
 Motion 3.2.12 Started
 ffmpeg LIBAVCODEC_BUILD 3424768 LIBAVFORMAT_BUILD 3423488
 Thread 1 is from /etc/motion.microseven.conf
 motion-httpd/3.2.12 running, accepting connections
 motion-httpd: waiting for data on port TCP 8080
 Thread 1 started
 Error reading first header - re-trying
 connect() failed (103): Software caused connection abort
 Failed to open camera - check your config and that netcamera is online
 Failed to read first camera header - giving up for now
 Could not fetch initial image from camera Started stream webcam server in port 8082
 Motion continues using width and height from config file(s)
 Resizing pre_capture buffer to 1 items
 Resizing pre_capture buffer to 2 items
 Retrying until successful connection with camera
Any suggestions, on how to go about debugging this?
I'm not familiar with any aspects of video processing. I'm just
starting to learn the use of things like ffmpeg and mencoder.
Regards, Dave Hodgins
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
Motion-user mailing list