Comments (4)
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.
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.
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.
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)
- MPEG-4 video hang HOT 6
- Sample MP4 file in readme. HOT 3
- Add support for looping. HOT 1
- Gapless looping HOT 2
- MPEG-4 video hang if no audio source HOT 5
- Output delay after start of decoding HOT 1
- [S805] Video and audio are out of sync when playing http stream HOT 8
- egl_render rendering planned ? HOT 3
- volume up/down support ? HOT 3
- Looping a video results in blank screen HOT 2
- Request: load subtitles from file
- ../../src/Media/MediaSourceElement.cpp:163:11: error: 'CODEC_ID_MPEG2VIDEO' was not declared in this scope case CODEC_ID_MPEG2VIDEO: HOT 1
- c2play/src/Media/os_support.h:30:10: fatal error: config.h: No such file or directory HOT 1
- fatal error: alsa/asoundlib.h: No such file or directory HOT 4
- Variable renderContext size HOT 1
- Open and close c2play often HOT 2
- c2play is usable for digital signage?
- .stamp_host_installed failed HOT 1
- While make c2play HOT 1
- how to get frame after decode HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from c2play.