GithubHelp home page GithubHelp logo

Comments (5)

MathieuDuponchelle avatar MathieuDuponchelle commented on June 1, 2024

I think this is a classic case of too small queues, please try queue max-size-bytes=0 max-size-buffers=0 max-size-time=3000000000 for both queues and report back :)

from gstcefsrc.

reinismu avatar reinismu commented on June 1, 2024

@MathieuDuponchelle Thanks!!

The command I run to get it working

gst-launch-1.0 cefsrc url="https://soundcloud.com/platform/sama" ! \
    video/x-raw, width=1920, height=1080, framerate=60/1 ! \
    cefdemux name=demux ! videoconvert ! queue max-size-bytes=0 max-size-buffers=0 max-size-time=3000000000 ! x264enc ! \
    mp4mux name=muxer fragment-duration=1000 ! filesink location='test.mp4' \
    demux. ! queue max-size-bytes=0 max-size-buffers=0 max-size-time=3000000000 ! audioconvert ! audiorate ! audioresample ! faac bitrate=128000 ! muxer.

Tho now pages where there is no sound won't work :(

gst-launch-1.0 cefsrc url="https://google.com" ! \
    video/x-raw, width=1920, height=1080, framerate=60/1 ! \
    cefdemux name=demux ! videoconvert ! queue max-size-bytes=0 max-size-buffers=0 max-size-time=3000000000 ! x264enc ! \
    mp4mux name=muxer fragment-duration=1000 ! filesink location='test.mp4' \
    demux. ! queue max-size-bytes=0 max-size-buffers=0 max-size-time=3000000000 ! audioconvert ! audiorate ! audioresample ! faac bitrate=128000 ! muxer.

My end goal is to record a webpage where the sound is just sometimes and it won't start with a sound. Maybe there is easy way I can modify my pipeline to achieve it?

from gstcefsrc.

MathieuDuponchelle avatar MathieuDuponchelle commented on June 1, 2024

yes, add an audiomixer, hooked up to a live audiotestsrc that outputs silence

from gstcefsrc.

reinismu avatar reinismu commented on June 1, 2024

You are the best! Thanks a lot!

For anyone reading this later. This is how my pipeline looks line now

With silent site

gst-launch-1.0 cefsrc url="https://google.com" ! \
    video/x-raw, width=1920, height=1080, framerate=60/1 ! \
    cefdemux name=demux ! videoconvert ! queue max-size-bytes=0 max-size-buffers=0 max-size-time=3000000000 ! x264enc ! \
    mp4mux name=muxer fragment-duration=1000 ! filesink location='test.mp4' \
    audiotestsrc do-timestamp=true is-live=true  volume=0.00 ! audiomixer name=mix ! \
    queue max-size-bytes=0 max-size-buffers=0 max-size-time=3000000000 ! audioconvert ! audiorate ! audioresample ! faac bitrate=128000 ! muxer. \
    demux. ! mix.

With music

gst-launch-1.0 cefsrc url="https://soundcloud.com/platform/sama" ! \
    video/x-raw, width=1920, height=1080, framerate=60/1 ! \
    cefdemux name=demux ! videoconvert ! queue max-size-bytes=0 max-size-buffers=0 max-size-time=3000000000 ! x264enc ! \
    mp4mux name=muxer fragment-duration=1000 ! filesink location='test.mp4' \
    audiotestsrc do-timestamp=true is-live=true  volume=0.00 ! audiomixer name=mix ! \
    queue max-size-bytes=0 max-size-buffers=0 max-size-time=3000000000 ! audioconvert ! audiorate ! audioresample ! faac bitrate=128000 ! muxer. \
    demux. ! mix.

from gstcefsrc.

MathieuDuponchelle avatar MathieuDuponchelle commented on June 1, 2024

@reinismu cool, maybe make a MR and update the README with an audiomixer?

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.