New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MJPEG support #23
Comments
Hi, This works, but the bandwidth is much higher. Regards, |
It allows higher resolution as there is some limit in the pi GPU code that See this post: |
How would I enable mjpeg streaming rather than h264? |
using -fJPEG |
I am trying to implement this mjpeg encoding as well. I have taken the basic instructions and made the following changes: I set the original uv4l command using: Then as you suggest, I call the server w/ the -fJPEG option using However, when I include the '-fJPEG' option and open my VLC terminal to view the rtsp://:8554/unicast stream, my VLC window just jumps back and forth between two sizes - but no video shows up. Whereas if I eliminate the '-fJPEG' option I get video to show up. Problem is that when I view the 'Codec information' in VLC for this video, it ID's the Codec as: 'H264 - MPEG-4 AVC (part 10) (h264)' So it's unclear to me that this is using mjpeg encoding ... seems tied to H264. (fyi: I'm interested in avoiding H264 b/c of the parallel question I have asked in this github project where I'm trying to capture full field-of-view video that uses all 2592 x 1944 pixels of the raspberry pi camera) |
Hi prechtl, If you are using uv4l (that is closed source), I guess you should use Using An other point is the RFC2435 encode width and height dividing by 8 and storing as 8bit. Then the maximum is 2040x2040. But there is many others problem... trying with vlc I got the problem you describe, and with ffplay the size is the half of the capture one. Regards, |
I agree - there seem to be many problems. I installed the uv4l drivers hoping it would help - but uv4l seems to add a lot of additional resources. Can you provide an example command to generate video w/ v4l2 (using 'v4l2-ctl' specifiers, I guess?). For example, to generate video with vlc, you can use a command: What is the equivalent command that is compatible with your v4l2rtspserver code (using -fJPEG)? (I am assuming here that your rtsp server takes the place of vlc in transmitting the video data?) |
Hi,
Not sure this should be an issue, but rather a question.
But since v4l2 device in the pi now has mjpeg support, would it be possible to simply stream the raw mjpeg stream from v4l2 over rtsp using v4l2rtspserver?
Reason I ask is that mjpeg would allow for higher resolution and less compression.
Regards,
Michael
The text was updated successfully, but these errors were encountered: