Git Product home page Git Product logo

Comments (4)

OtherCrashOverride avatar OtherCrashOverride commented on May 24, 2024

This is a feature I already wanted to support. I just have not figured out the best way to do it. There really is no need to mux the streams together. It may actually be simple to do with the beta1 architecture by having two independent source elements and graphs with only the clock line connecting them for synchronization.

from c2play.

OtherCrashOverride avatar OtherCrashOverride commented on May 24, 2024

I have started experimental support for this in the "dualstream" branch:
https://github.com/OtherCrashOverride/c2play/tree/dualstream

./c2play-x11 http://video_stream --dual https://audio_stream

[edit]
Note that for urls, it may be necessary to enclose them in quotation marks if they contain characters like "&" since they have special meaning to the shell.

./c2play-x11 "http://video_stream" --dual "https://audio_stream"

from c2play.

mad-ady avatar mad-ady commented on May 24, 2024

I've tried it and... it seems to work. I was unable to test sound and audio synchronization because I don't have a sound card, but playback has a bit of "lost packets" that could be seen in the logs:

Oct 12 12:40:31 uy-scuti odroid.c2.video.helper[21084]: AmlVideoSink: Adjust PTS - pts=134.311922 vpts=134.200733 drift=-0.111189 (-3.332334 frames)
Oct 12 12:40:31 uy-scuti odroid.c2.video.helper[21084]: AmlVideoSink: Adjust PTS - pts=134.409856 vpts=134.300833 drift=-0.109022 (-3.267399 frames)
Oct 12 12:40:31 uy-scuti odroid.c2.video.helper[21084]: AmlVideoSink: Adjust PTS - pts=134.410467 vpts=134.300833 drift=-0.109633 (-3.285714 frames)
Oct 12 12:40:31 uy-scuti odroid.c2.video.helper[21084]: AmlVideoSink: Adjust PTS - pts=134.411056 vpts=134.300833 drift=-0.110222 (-3.303363 frames)
Oct 12 12:40:31 uy-scuti odroid.c2.video.helper[21084]: AmlVideoSink: Adjust PTS - pts=134.411400 vpts=134.300833 drift=-0.110567 (-3.313686 frames)

I'm guessing you're on the right track. I will update my packages and request for testers.

from c2play.

OtherCrashOverride avatar OtherCrashOverride commented on May 24, 2024

I will likely need to add some kind of stream pre-buffering so that playback does not start until a certain amount of both video and audio have arrived.

from c2play.

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.