tag:blogger.com,1999:blog-6653558328125881331.post835946324950599264..comments2024-03-05T00:00:34.263-05:00Comments on Ben Collins: Request-for-help: PHP and Video4LinuxBen Collinshttp://www.blogger.com/profile/16641016264284463086noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-6653558328125881331.post-71398381509225965952010-06-04T06:54:41.986-04:002010-06-04T06:54:41.986-04:00Look at ffserver - it can convert any ffmpeg-playa...Look at ffserver - it can convert any ffmpeg-playable source into exactly what you want.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6653558328125881331.post-35384923393535841162010-06-03T11:50:41.613-04:002010-06-03T11:50:41.613-04:00@David, yes, the example I gave was for a single j...@David, yes, the example I gave was for a single jpeg image. I'm toying around with the idea you suggested for starting the feed with PHP and having the C program do the rest. I'll keep you posted on that front.<br /><br />@abas, Using vlc/vls with PHP passthru() would probably end up with the same thing I am getting now. But thanks for the idea.Ben Collinshttps://www.blogger.com/profile/16641016264284463086noreply@blogger.comtag:blogger.com,1999:blog-6653558328125881331.post-91821964946391464502010-06-03T09:17:31.085-04:002010-06-03T09:17:31.085-04:00Have you considered passthrough to vlc/vls?Have you considered passthrough to vlc/vls?abashttps://www.blogger.com/profile/18278220045877723701noreply@blogger.comtag:blogger.com,1999:blog-6653558328125881331.post-64627311867848294592010-06-03T01:54:47.066-04:002010-06-03T01:54:47.066-04:00Why not just send the first header with php, then ...Why not just send the first header with php, then the rest with your C program? Technically, an HTTP request can only have one header block followed by an empty line and the optional message body, so PHP not liking you trying to send multiple header blocks isn't really a problem with PHP per-se.<br />Also, it looks like you're using the wrong mime type.<br />Have a look at:<br />http://en.wikipedia.org/wiki/Motion_JPEG#M-JPEG_over_HTTPUnknownhttps://www.blogger.com/profile/14412917857122802224noreply@blogger.com