vova254
15th December 2009, 21:27
We have met with some difficulties while playing back an mms stream. Brief description:
The stream was either:
(mencoder)h264 1920x1080 @ 1fps
(mencoder)mjpeg 1920x1080 @ 1fps
.
.
.
(mencoder)h264 1920x1080 @ 0.1fps
(mencoder)mjpeg 1920x1080 @ 0.1fps
Here a sample of mencoder script:
mencoder -vf pp=l5 -frames 20 -ovc lavc -lavcopts vcodec=mjpeg:mbd=1:vbitrate=100 -ofps 0.1 -oac faac -faacopts br=32:mpeg=4 mmsh://some_ip:8080 -o 01fpsvideo.ts
then this video is live streamed with vlc:
vlc 01fpsvideo.ts --loop :sout=#duplicate{dst=std{access=mmsh,mux=asfh,dst=:8080}}
And an observation as follows:
when streaming an 1fps stream mplayer or vlc playback the stream normally:
mplayer mmsh://some_ip:8080
vlc mmsh://some_ip:8080
and when streaming an 0.1fps stream both mplayer and vlc fails to playback it:
mplayer says "no video" with partial bufferization while playing back audio
and vlc says nothing, plays audio, but no video as well.
The threshold we've found is exactly 1 fps.
Could anyone advise some encode/playback options to achive lower framerates?
The stream was either:
(mencoder)h264 1920x1080 @ 1fps
(mencoder)mjpeg 1920x1080 @ 1fps
.
.
.
(mencoder)h264 1920x1080 @ 0.1fps
(mencoder)mjpeg 1920x1080 @ 0.1fps
Here a sample of mencoder script:
mencoder -vf pp=l5 -frames 20 -ovc lavc -lavcopts vcodec=mjpeg:mbd=1:vbitrate=100 -ofps 0.1 -oac faac -faacopts br=32:mpeg=4 mmsh://some_ip:8080 -o 01fpsvideo.ts
then this video is live streamed with vlc:
vlc 01fpsvideo.ts --loop :sout=#duplicate{dst=std{access=mmsh,mux=asfh,dst=:8080}}
And an observation as follows:
when streaming an 1fps stream mplayer or vlc playback the stream normally:
mplayer mmsh://some_ip:8080
vlc mmsh://some_ip:8080
and when streaming an 0.1fps stream both mplayer and vlc fails to playback it:
mplayer says "no video" with partial bufferization while playing back audio
and vlc says nothing, plays audio, but no video as well.
The threshold we've found is exactly 1 fps.
Could anyone advise some encode/playback options to achive lower framerates?