ges and wavescope

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

ges and wavescope

Mohan R
Hi,

I need some help, I have one mp3 file and I need to generate some kind
of visual which represents the music, I was able to get this done with
the following gst-launch-1.0 commandline

$ gst-launch-1.0 -v -e filesrc location=SomeMusic.mp3 ! decodebin !
audio/x-raw ! tee ! audioconvert ! audioresample ! queue !
autoaudiosink tee0. ! audioconvert ! audioresample ! wavescope !
videoconvert ! videoscale ! video/x-raw,width=640,height=360 ! queue !
autovideosink

gst-launch-1.0 is fine for a single mp3, I want to append a few more
mp3 files into one big mp4. So, I tried to utilize ges-launch-1.0,
here is the commandline I tried

$ ges-launch-1.0 +clip SomeMusic.mp3 +effect 'audio audioconvert !
audioresample ! wavescope'

I get this error

0:00:00.225501082 59995 0x55a626041230 ERROR                    ges
ges-effect.c:318:ges_effect_create_element: An error occurred while
creating the GstElement: No srcpads available for effect: audioconvert
! audioresample ! wavescope

I also tried switching 'audio' to 'video' in the commandline like this,

$ ges-launch-1.0 +clip SomeMusic.mp3 +effect 'video audioconvert !
audioresample ! wavescope'

Then, I get this error

0:00:00.232113934 60019 0x55d7a8bee230 ERROR                    ges
ges-effect.c:318:ges_effect_create_element: An error occurred while
creating the GstElement: No sinkpads available for effect:
audioconvert ! audioresample ! wavescope

What should I need to do to make the wave appear using ges?

Thanks,
Mohan R
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: ges and wavescope

Thibault Saunier-4
Hello,

I guess that what you want is to visualize the different audio clips as one and for that you do not really want an effect but set your audiosink appropriately. Something like that should work just fine:

    ges-launch-1.0 +clip Some.mp3 --audiosink="tee name=t ! queue ! wavescope ! videoconvert ! autovideosink t. ! queue ! autoaudiosink" --track-types audio

BR,

Thibault Saunier

On Thu, Jan 21, 2021 at 12:02 PM Mohan R <[hidden email]> wrote:
Hi,

I need some help, I have one mp3 file and I need to generate some kind
of visual which represents the music, I was able to get this done with
the following gst-launch-1.0 commandline

$ gst-launch-1.0 -v -e filesrc location=SomeMusic.mp3 ! decodebin !
audio/x-raw ! tee ! audioconvert ! audioresample ! queue !
autoaudiosink tee0. ! audioconvert ! audioresample ! wavescope !
videoconvert ! videoscale ! video/x-raw,width=640,height=360 ! queue !
autovideosink

gst-launch-1.0 is fine for a single mp3, I want to append a few more
mp3 files into one big mp4. So, I tried to utilize ges-launch-1.0,
here is the commandline I tried

$ ges-launch-1.0 +clip SomeMusic.mp3 +effect 'audio audioconvert !
audioresample ! wavescope'

I get this error

0:00:00.225501082 59995 0x55a626041230 ERROR                    ges
ges-effect.c:318:ges_effect_create_element: An error occurred while
creating the GstElement: No srcpads available for effect: audioconvert
! audioresample ! wavescope

I also tried switching 'audio' to 'video' in the commandline like this,

$ ges-launch-1.0 +clip SomeMusic.mp3 +effect 'video audioconvert !
audioresample ! wavescope'

Then, I get this error

0:00:00.232113934 60019 0x55d7a8bee230 ERROR                    ges
ges-effect.c:318:ges_effect_create_element: An error occurred while
creating the GstElement: No sinkpads available for effect:
audioconvert ! audioresample ! wavescope

What should I need to do to make the wave appear using ges?

Thanks,
Mohan R
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


--
Thibault Saunier, Igalia - www.igalia.com

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: ges and wavescope

Mohan R
Hi

On Thu, Jan 21, 2021 at 8:51 PM Thibault Saunier <[hidden email]> wrote:
>     ges-launch-1.0 +clip Some.mp3 --audiosink="tee name=t ! queue ! wavescope ! videoconvert ! autovideosink t. ! queue ! autoaudiosink" --track-types audio

Thanks, it works, but when I tried to save using '-o Some.mp4', I only
had the audio, no visuals. If I understand correctly the above command
line doesn't add a new video stream for the clip, but alters the final
audiosink with a bin instead of the default autoaudiosink. Also, If I
want to mix some mp4 files instead of only adding mp3, then I have to
do something else.

I'm basically trying to add a missing video stream for a clip when it
only contains audio stream.

Thanks,
Mohan R
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel