Skip to content
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

All frame are !RawJpegFrame #123

Open
lemorlenny opened this issue Nov 26, 2021 · 3 comments
Open

All frame are !RawJpegFrame #123

lemorlenny opened this issue Nov 26, 2021 · 3 comments

Comments

@lemorlenny
Copy link

lemorlenny commented Nov 26, 2021

Hi,
My goal is to save timed screenshot from rtsp stream camera.

I tried your MjpegSnapShotsMaker and SimpleRtspPlayer, I test many rtsp stream.

For example in VLC this : rtsp://rtsp.stream/pattern works well.

But when I try the example MjpegSnapShotsMaker I see that after the frame is received in the code:

(Program.cs - Line 62)

rtspClient.FrameReceived += (sender, frame) => { if (!(frame is RawJpegFrame)) return;

RawJpegFrame is always false.

I honestly don't understand how this property works so I will be grateful to anyone who can send me some suggestions.

I play with VS2019 .NET 4.6.1 in W10

@alexgurenko
Copy link

Camera streams can be MJPEG or H264. I think you are getting H264 format frames. Check it out in debug.

Try https://github.com/inzi/rtspcapture/tree/Working/RTSPSnapshotMaker for your target

@kimhegg
Copy link

kimhegg commented Jan 31, 2022

Same problem for me. Have you found a solution that works @lemorlenny ?

@SavoInfostream
Copy link

SavoInfostream commented Apr 4, 2022

All of my frames are of type Audio, while in VLC the rtsp source shows video as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants