Git Product home page Git Product logo

Comments (13)

mrlt8 avatar mrlt8 commented on August 29, 2024

I've noticed that sometimes.
Wonder if we might be able to do something with FFMpeg?

from docker-wyze-bridge.

Alfiegerner avatar Alfiegerner commented on August 29, 2024

I've just tried adding:

'-fflags', 'nobuffer',

to FFMPEG params and it's been better for me. But that might just happen to be a one off . I'll keep on trying with that.

Edit: nope no dice back to same behavior after a while.

from docker-wyze-bridge.

Alfiegerner avatar Alfiegerner commented on August 29, 2024

I think recordings from Frigate are fine, so I tried using the input and output parameters from the Frigate config, but no luck, still getting odd frame order when viewing live.

from docker-wyze-bridge.

mrlt8 avatar mrlt8 commented on August 29, 2024

Have you tried -err_detect ignore_err or some other fflags like +flush_packets +genpts or +discardcorrupt

I wonder if moving to something like gstreamer or an alternative would help..? Open to suggestions!

from docker-wyze-bridge.

Alfiegerner avatar Alfiegerner commented on August 29, 2024

Yep, I've tried those, here's ones I've tried (both commented out ones too, this just my file as is).

-hide_banner',
# '-stats' if 'DEBUG_FFMPEG' in os.environ else '-nostats', #'-nostats',
'-avoid_negative_ts', 'make_zero', '-fflags', '+genpts+discardcorrupt',
'-use_wallclock_as_timestamps', '1',
#'-err_detect', 'ignore_err' '-loglevel','info', ## if 'DEBUG_FFMPEG' in os.environ else 'fatal',
'-f', sess.camera.camera_info['videoParm']['type'].lower(),
'-framerate', sess.camera.camera_info['videoParm']['fps'], '-i', '-', # '-b:v', str(bitrate)+'k', #'-reset_timestamps' , '1', '-strftime', '1',
'-vcodec', 'copy',
'-f','rtsp',

from docker-wyze-bridge.

mrlt8 avatar mrlt8 commented on August 29, 2024

Does enabling PYTHONUNBUFFERED=1 in your docker-compose help?
Also, could you give the arm version a try? For some reason it seems to be more stable.

from docker-wyze-bridge.

Alfiegerner avatar Alfiegerner commented on August 29, 2024

I'll try the PYTHONUNBUFFERED=1 - on using the arm version, I'm on ubuntu on an intel i7 - do you still want me to try it?

Edit: PythonBuffered didn't seem to help, still seeing the odd frame order artefacts if I let it run for a minute or so.

from docker-wyze-bridge.

mrlt8 avatar mrlt8 commented on August 29, 2024

Are the frames out of order on all streams or just hls?

from docker-wyze-bridge.

Alfiegerner avatar Alfiegerner commented on August 29, 2024

I've only looked at rtsp.

from docker-wyze-bridge.

mrlt8 avatar mrlt8 commented on August 29, 2024

Does adjusting the popen bufsize help?

ffmpeg = subprocess.Popen(cmd,stdin=subprocess.PIPE)

from docker-wyze-bridge.

Alfiegerner avatar Alfiegerner commented on August 29, 2024

No joy on that either - fiddled around with settings but bufsize=1024*100 seemed to work in, the sense of getting a steady stream, but still jumbled timestamp.

from docker-wyze-bridge.

mrlt8 avatar mrlt8 commented on August 29, 2024

Is this still an issue with v0.5.0?

from docker-wyze-bridge.

Alfiegerner avatar Alfiegerner commented on August 29, 2024

Looks good now - jumping back on board after returning to wyze RTSP, now looks stable and no timestamp issues, thanks for your efforts @mrlt8 .

from docker-wyze-bridge.

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.