[FFmpeg-user] create a mjpeg stream via ffserver with boundary strings

Patrick Fischer pfischer at como.com
Fri Aug 30 16:45:57 CEST 2013


Hello

 
I would like to create an mjpeg stream with ffserver.

 
Souce is an UDP Mpeg TS Stream

 
 
....

<Feed feed1.ffm> 
        # name of the file to hold the data
        File /tmp/feed1.ffm 
        # file size of the file
        FileMaxSize 100M
        Launch ffmpeg -i "udp://225.1.1.1:30120" -an -vcodec mjpeg -s 320x240 -y
</Feed> 

<Stream test.mjpeg>
        Feed feed1.ffm
        Format jpeg        
        VideoSize 320x240
        VideoFrameRate 10
        VideoBitRate 2000
        VideoQMin 1
        VideoQMax 10
        NoAudio
</Stream>

# status html page
<Stream stat.html>
        Format status
        # Only allow local people to get the status
        ACL allow localhost
        ACL allow 192.168.0.0 192.168.255.255
</Stream>
 
vlc can play back the mjpeg stream.

Firefox can't play back the stream.

 
I found out that the boundary string between the jpeg images are missing.

 
 
Content-Type: multipart/x-mixed-replace; boundary=--myboundary 

 
--myboundary 

Content-Type: image/jpeg 

Content-Length: 44552 

 
How can i set ffserver off doing the boundarystring?

 
Best regards

Patrick



More information about the ffmpeg-user mailing list