Git Product home page Git Product logo

Comments (4)

thierryg avatar thierryg commented on August 11, 2024 1

Hi,

The problem with a webrtc source is that the audio may come late compared to the video. One of the solutions to get around this problem was to add a fake audio with zero volume and to mix it with the audio from the webrtc :

gst-launch-1.0 rtspclientsink stream-name='stream_@channelid@' name=r user-agent='cef-player/1.0' location=@rtsp_url@ cefsrc url='<url_webrtc_source>' ! queue ! cefdemux name=t t. ! video/x-raw ! videoconvert ! x264enc threads=4 tune=zerolatency speed-preset=ultrafast ! video/x-h264 ! queue ! r. audiotestsrc volume=0.0 is-live=true ! queue ! audiomixer name=m ! audioconvert ! voaacenc bitrate=128000 ! aacparse ! queue ! r. t. ! audio/x-raw ! queue ! m."

Hope it will help!

BR
Thierry

from gstcefsrc.

michael-riha avatar michael-riha commented on August 11, 2024

@thierrygayet just saw your issue and I wanted to ask if you already have an idea or answer?

I used this very nice plugin for video only in python and docker and it works like a charm.
Today I wanted to add audio, so I used the cefdemux and nothing works anymore, even if I use
the demux for just video.

As audio_%u is a sometimes-pad I even added a SIGNAL callback in python

cefdemux.connect("pad-added", on_incoming_audio_pad)

but this is function on_incoming_audio_pad is never called.

@MathieuDuponchelle any idea?
CLI like @thierrygayet shown does not work either.

Thank you in advance, for this nice work and would appreciate if you have an answer as well.

from gstcefsrc.

michael-riha avatar michael-riha commented on August 11, 2024

@thierryg okay, I see.
Very hacky but I will try it, thank you so far!

@MathieuDuponchelle what would be the common way to handle this challenge?
The cefmuxer has this sometimes-pad and mp4mux needs to request_pad before getting into PLAYING- OR PAUSED-state?

from gstcefsrc.

MathieuDuponchelle avatar MathieuDuponchelle commented on August 11, 2024

@michael-riha using audiomixer is an appropriate workaround

from gstcefsrc.

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.