Comments (5)
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.
@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.
yes, add an audiomixer, hooked up to a live audiotestsrc that outputs silence
from gstcefsrc.
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.
@reinismu cool, maybe make a MR and update the README with an audiomixer?
from gstcefsrc.
Related Issues (20)
- Cannot build the project from the 93.1.11+g9e254fa+chromium-93.0.4577.63 release HOT 2
- Windows build HOT 4
- Pipeline hangs (Windows) HOT 11
- Wayland Support HOT 1
- License HOT 3
- Sandbox HOT 6
- registering JS Callbacks using RenderProcessHandler::OnContextCreated() HOT 1
- Leaves 5 processes running after `stop` HOT 7
- Mixing audio and video with `matroskamux` causing deadlocks HOT 40
- Rare negotiation errors are happening between cefsrc and cefdemux HOT 3
- Not compiling on macOS Ventura on MacBook M1
- Broken Linux x64 build HOT 2
- Deadlock when mixing Audio and Video HOT 6
- trying to build for jetson nano HOT 21
- Cef Segmentation fault HOT 4
- Bad audio meta HOT 10
- [Q] what is the purpose of the audiotestsrc ? HOT 4
- cefsrc in headless environment using GPU HOT 8
- No video output with `gtk4paintablesink` and `clappersink` HOT 4
- Plugin files blacklisted but plugin still works HOT 2
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 gstcefsrc.