AUDIO GSTREAMER PIPELINE
Rand Graham
rand.graham at zenith.com
Fri Nov 1 15:17:00 UTC 2019
Hello,
What kind of audio are you trying to transcode to AAC?
I have had to transcode audio before and what I had to do was parse it, decode then audioconvert it.
So something like this (appropriate for what kind of audio input you have).
d.audio ! aacparse ! avdec_aac ! audioconvert ! voaacenc bitrate=128000 ! flvmux streamable=true name=mux ! rtmpsink location="rtmp://live-cdg.twitch.tv/app/live_452136974_6g1fEZ7RxsMwVE6ADeOiVLuegDAm9w<http://live-cdg.twitch.tv/app/live_452136974_6g1fEZ7RxsMwVE6ADeOiVLuegDAm9w>"
Regards,
Rand
From: gstreamer-devel [mailto:gstreamer-devel-bounces at lists.freedesktop.org] On Behalf Of Thierry Gayet
Sent: Tuesday, October 29, 2019 12:45 PM
To: gstreamer-devel at lists.freedesktop.org
Subject: AUDIO GSTREAMER PIPELINE
Hi guys,
I use the module GStreamer gstcefsrc (https://github.com/centricular/gstcefsrc) to grab a website and generate an audio and video stream. This module is based on an embedded version of chromium (CEF aka embedded chromium).
My problem is related I think about the structure of my pipeline.
Indeed, this module GStreamer generates a stream containing audio and video.
Needing to transcode audio in AAC and video in H264, I demux via a second module cefdemux.
Once both A / V streams are transcoded and synchronized, I need to send them via RTMP (rtmpsink) or RTSP (rtspclientsink).
The video goes well but the sound is a problem because nothing happens.
My actual pipeline is as follows:
gst-launch-1.0 cefsrc url="https://soundcloud.com/platform/sama" ! queue !
cefdemux name=d d.video ! video/x-raw,format=BGRA,framerate=30/1 ! queue ! videoconvert ! x264enc bitrate=2500 tune=zerolatency pass=5 quantizer=22 speed-preset=superfast key-int-max=60 ref=2
! mux. d.audio ! audio/x-raw ! audiorate ! queue ! audioconvert ! voaacenc bitrate=128000 ! flvmux streamable=true name=mux ! rtmpsink location="rtmp://live-cdg.twitch.tv/app/live_452136974_6g1fEZ7RxsMwVE6ADeOiVLuegDAm9w<http://live-cdg.twitch.tv/app/live_452136974_6g1fEZ7RxsMwVE6ADeOiVLuegDAm9w>"
It does not work!
If I test with another audio test source it works:
gst-launch-1.0 cefsrc url="https://soundcloud.com/platform/sama" ! queue !
cefdemux name=d d.video ! video/x-raw,format=BGRA,framerate=30/1 ! queue ! videoconvert ! x264enc bitrate=2500 tune=zerolatency pass=5 quantizer=22 speed-preset=superfast key-int-max=60 ref=2
! mux. audiotestsrc ! audio/x-raw ! audiorate ! queue ! audioconvert ! voaacenc bitrate=128000 ! flvmux streamable=true name=mux ! rtmpsink location="rtmp://live-cdg.twitch.tv/app/live_452136974_6g1fEZ7RxsMwVE6ADeOiVLuegDAm9w<http://live-cdg.twitch.tv/app/live_452136974_6g1fEZ7RxsMwVE6ADeOiVLuegDAm9w>"
What can be my problem?
Thank you in advance for your return.
BR
Thierry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20191101/b518a907/attachment.html>
More information about the gstreamer-devel
mailing list