Streaming problem with MJPEG - invalid http content type reported by vlc
For MJPEG there should be following content reported: multipart/x-mixed-replace; boundary=7b3cc56e5f51db803f790dad720ed50a
But it's only reported that way if the url extension is .mpjpeg For anything else it's incorrectly reported as: application/octet-stream
Please select http content type based on content not extension.
Repro:
- Create following streaming for some movie (I used Ed from blender) ":sout=#transcode{vcodec=MJPG,vb=2000,scale=0.5,acodec=none}:http{mux=mpjpeg,dst=:8080/video} :sout-keep"
Expected results: http://ip:8080/video url should report multipart content type
Actual results: application/octet-stream is reported
Workaround: change from dst=:8080/video to dst=:8080/video.mpjpeg and it all works fine - but user doesn't know that and doesn't want to be forced to use particular extention - cameras often use .cgi or no extention at all and it works fine.