Git Product home page Git Product logo

Comments (9)

davidplowman avatar davidplowman commented on July 18, 2024

Can you share a very short version of a script that produces this error? If it doesn't rely on external components, such as RTSP servers, that would be helpful.

In my experience we do get this error from Ffmpeg sometimes, but I don't really understand why. Ffmpeg is supposed to choose a timestamp based on when it gets the packet so I find it surprising that you get errors this large. I often find I get a few warnings which then stop, and the stream works OK. Are you finding this too, or is the behaviour different?

from picamera2.

xucaiqin avatar xucaiqin commented on July 18, 2024

Can you share a very short version of a script that produces this error? If it doesn't rely on external components, such as RTSP servers, that would be helpful.

In my experience we do get this error from Ffmpeg sometimes, but I don't really understand why. Ffmpeg is supposed to choose a timestamp based on when it gets the packet so I find it surprising that you get errors this large. I often find I get a few warnings which then stop, and the stream works OK. Are you finding this too, or is the behaviour different?

This question is related to the issue #1037 I submitted earlier. So I reinstalled the Raspberry PI OS, then resubmitted my project code and ran it. But this time the problem was different. This time the question is the one I'm asking. I don't know why.
I'm using a server, set up an rtsp service. The video stream is then pushed to this rtsp service. It uses an open source rtsp server called monibuca.

您能否分享一个产生此错误的脚本的简短版本?如果它不依赖于外部组件(例如 RTSP 服务器),那将会很有帮助。

根据我的经验,我们有时会从 Ffmpeg 收到此错误,但我真的不明白为什么。Ffmpeg 应该根据它获取数据包的时间来选择时间戳,因此我发现您会收到如此大的错误,这令人惊讶。我经常发现我会收到一些警告,然后停止,并且流可以正常工作。你也发现了这一点,还是行为有所不同?

from picamera2.

xucaiqin avatar xucaiqin commented on July 18, 2024

Can you share a very short version of a script that produces this error? If it doesn't rely on external components, such as RTSP servers, that would be helpful.
In my experience we do get this error from Ffmpeg sometimes, but I don't really understand why. Ffmpeg is supposed to choose a timestamp based on when it gets the packet so I find it surprising that you get errors this large. I often find I get a few warnings which then stop, and the stream works OK. Are you finding this too, or is the behaviour different?

This question is related to the issue #1037 I submitted earlier. So I reinstalled the Raspberry PI OS, then resubmitted my project code and ran it. But this time the problem was different. This time the question is the one I'm asking. I don't know why. I'm using a server, set up an rtsp service. The video stream is then pushed to this rtsp service. It uses an open source rtsp server called monibuca.

您能否分享一个产生此错误的脚本的简短版本?如果它不依赖于外部组件(例如 RTSP 服务器),那将会很有帮助。
根据我的经验,我们有时会从 Ffmpeg 收到此错误,但我真的不明白为什么。Ffmpeg 应该根据它获取数据包的时间来选择时间戳,因此我发现您会收到如此大的错误,这令人惊讶。我经常发现我会收到一些警告,然后停止,并且流可以正常工作。你也发现了这一点,还是行为有所不同?

image
is this a ffmpeg's error?

from picamera2.

davidplowman avatar davidplowman commented on July 18, 2024

I'm afraid I can't really comment on the RTSP server and the various other packages you might be using, as I'm not familiar them. If you are able to capture video streams using the FfmpegOutput where we can look at and analyse the timestamps, then that would be helpful. For example, if you save your frames to an mp4 file, what timestamps do you get in the file? If we can see a problem in this simpler case, then maybe we can find a problem that we can investigate.

from picamera2.

xucaiqin avatar xucaiqin commented on July 18, 2024

FfmpegOutput

i can use which para to make FfmpegOutput save a mp4 file?

from picamera2.

davidplowman avatar davidplowman commented on July 18, 2024

You could try, for example, output = FfmpegOutput("test.mp4").

from picamera2.

xucaiqin avatar xucaiqin commented on July 18, 2024

例如,您可以尝试output = FfmpegOutput("test.mp4")

ok ,i understand it

from picamera2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.