[MPlayer-users] Forcing -demuxer lavf format

barda at barda.cjb.net barda at barda.cjb.net
Wed Mar 21 16:59:57 CET 2007


Hi

I want play an mjpeg stream from an axis ip camera.
With ffmpeg:
ffmpeg -f mjpeg -i http://url output_file

Without forcing the format:
[ingenient @ 0xb7f19140]Could not find codec parameters (Video: mjpeg)
could not find codec parameters

The same error with mplayer:
mplayer -demuxer lavf -v 1 http://url
..
STREAM: Description: http streaming
STREAM: Author: Bertrand, Albeau, Reimar Doeffinger, Arpi?
STREAM: Comment: plain http
CACHE_PRE_INIT: 0 [0] 0  pre:65536  eof:0  
Cache fill:  0.00% (0 bytes)   
LAVF_check: Ingenient MJPEG
libavformat file format detected.
[ingenient @ 0x867eca0]Could not find codec parameters (Video: mjpeg)
cache_stream_seek: WARNING! Can't seek to 0xFFFFFFFFFFFFFFFF !
LAVF_header: av_find_stream_info() failed
Exiting... (End of file)

lavf seems to recognize but fails with codec.
Adding -vfm ffmpeg -vc ffmjpeg -nocache do not change.

It work only with a name pipe because lavf use the extension from file:
mkfifo fifo.mjpeg
curl http://test:test@192.168.1.23/axis-cgi/mjpg/video.cgi -o fifo.mjpeg &
mplayer -demuxer lavf fifo.mjpeg

There is a way to FORCE the format for lavf demuxer or is a missing features?





More information about the MPlayer-users mailing list