Something may have went wrong in setting Up GStreamer environment for developing

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

Something may have went wrong in setting Up GStreamer environment for developing

JimmyHan
Hey Guys, I'm a complete Newbie to GStreamer. My employer asked me to learn GStreamer so I could start working on some new projects.

In searching for tutorials I came across the these tutorials. I was pretty excited to start and everything.

I followed the instructions for installation on ubuntu or debian. I run pop!_os its based on Ubuntu so I figured I'm straight.

I cloned the github repo with the tutorials and compiled the first tutorial as instructed.

But whenever I run ./basic-tutorial-1, i get segmentation fault(core dumped). I need to know if I'm missing a library or sumtg, I have been searching for help for a few hours now but couldn't find nothing close.

I tried the gdb instructions but I don't know what I'm looking for exactly.

Below is the images I have posted based on the results from gdb, hopefully someone will be able to make sense out of this and assist me in going forward.
Gdb_Results.pdf

Sent from the GStreamer-devel mailing list archive at Nabble.com.

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

Re: Something may have went wrong in setting Up GStreamer environment for developing

Nicolas Dufresne-5
Le mercredi 24 février 2021 à 10:42 -0600, JimmyHan a écrit :

> Hey Guys, I'm a complete Newbie to GStreamer. My employer asked me to learn
> GStreamer so I could start working on some new projects.
>
> In searching for tutorials I came across the these tutorials. I was pretty
> excited to start and everything.
>
> I followed the instructions for installation on ubuntu or debian. I run
> pop!_os its based on Ubuntu so I figured I'm straight.
>
> I cloned the github repo with the tutorials and compiled the first tutorial as
> instructed.
>
> But whenever I run ./basic-tutorial-1, i get segmentation fault(core dumped).
> I need to know if I'm missing a library or sumtg, I have been searching for
> help for a few hours now but couldn't find nothing close.
>
> I tried the gdb instructions but I don't know what I'm looking for exactly.
>
> Below is the images I have posted based on the results from gdb, hopefully
> someone will be able to make sense out of this and assist me in going forward.
> Gdb_Results.pdf

That is effectively strange. There is a little hint of what could possible be
wrong on your OS. The tip of the backtrace is in iHD_drv_video.so, this is the
software part of the Intel VA driver (video decoder accelerator). I haven't seen
such a crash recently, but perhaps pops have a packaging bugs (e.g. drivers and
gstreamer-vaapi not being built against the same version, or other issues like
this).

I think to get doing, the simpliest thing is just to uninstall gstreamer-vaapi
package (not sur of it's axact ubuntu name, but I'm sure you'll find with with
apt search vaapi). This will fallback to FFMPEG software decoding and will
likely "fix" the issue. It's not relevant to your learning after all.

>
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


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

Re: Something may have went wrong in setting Up GStreamer environment for developing

JimmyHan
This post was updated on .
This is the result of the app cache search:

gstreamer1.0-vaapi - VA-API plugins for GStreamer
i965-va-driver - VAAPI driver for Intel G45 & HD Graphics family
intel-media-va-driver - VAAPI driver for the Intel GEN8+ Graphics family
libigdgmm-dev - Intel Graphics Memory Management Library -- development
files
libigdgmm11 - Intel Graphics Memory Management Library -- shared library
libvdpau-va-gl1 - VDPAU driver with OpenGL/VAAPI backend
i965-va-driver-shaders - VAAPI driver for Intel G45 & HD Graphics family
intel-media-va-driver-non-free - VAAPI driver for the Intel GEN8+ Graphics
family


So what uou're saying is uninstall this:
gstreamer1.0-vaapi - VA-API plugins for GStreamer

and I may be good to go?


Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following packages will be REMOVED:
  gstreamer1.0-vaapi pop-desktop
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  pop-desktop gstreamer1.0-vaapi (due to pop-desktop)
0 upgraded, 0 newly installed, 2 to remove and 1 not upgraded.
After this operation, 912 kB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'


I'm asking first, cause i really don't know what I'm doing?



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Something may have went wrong in setting Up GStreamer environment for developing

gotsring
I haven't used Pop os before, but why is it trying to uninstall pop-desktop?
I don't think you have to uninstall that. You should just be able to run (as
root)
apt remove gstreamer1.0-vaapi

I guess, as always, backup your files in case something breaks before
running this uninstall.



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

Re: Something may have went wrong in setting Up GStreamer environment for developing

Nicolas Dufresne-5
In reply to this post by JimmyHan


Le mer. 24 févr. 2021 16 h 30, JimmyHan <[hidden email]> a écrit :
This is the result of the app cache search:

gstreamer1.0-vaapi - VA-API plugins for GStreamer
i965-va-driver - VAAPI driver for Intel G45 & HD Graphics family
intel-media-va-driver - VAAPI driver for the Intel GEN8+ Graphics family
libigdgmm-dev - Intel Graphics Memory Management Library -- development
files
libigdgmm11 - Intel Graphics Memory Management Library -- shared library
libvdpau-va-gl1 - VDPAU driver with OpenGL/VAAPI backend
i965-va-driver-shaders - VAAPI driver for Intel G45 & HD Graphics family
intel-media-va-driver-non-free - VAAPI driver for the Intel GEN8+ Graphics
family


So what uou're saying is uninstall this:
gstreamer1.0-vaapi - VA-API plugins for GStreamer

and I may be good to go?

Correct.




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

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

Re: Something may have went wrong in setting Up GStreamer environment for developing

JimmyHan
This post was updated on .
Correct.
___________________________________________________

thanks much..

but don't you think deleting pop-desktop will cause problems?



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Something may have went wrong in setting Up GStreamer environment for developing

JimmyHan
This post was updated on .
In reply to this post by gotsring
I haven't used Pop os before, but why is it trying to uninstall pop-desktop?
I don't think you have to uninstall that. You should just be able to run (as
root)
apt remove gstreamer1.0-vaapi

I guess, as always, backup your files in case something breaks before
running this uninstall.

________________________________________________________________

thanks.. I'll go ahead and back up the files when I feel there is no option
left..



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Something may have went wrong in setting Up GStreamer environment for developing

Nicolas Dufresne-5
In reply to this post by JimmyHan
Le jeudi 25 février 2021 à 01:27 -0600, JimmyHan a écrit :
> thanks much..
>
> but don't you think deleting pop-desktop will cause problems?

That's an interesting depency, worst case just remove or rename the plugins and
file an issue to pop folks that their built crashes.

>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


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

Re: Something may have went wrong in setting Up GStreamer environment for developing

Mathieu Duponchelle
Looked at why this happened, it seems the pop OS developers take a pretty
liberal approach to hard dependencies for their desktop package:

https://github.com/pop-os/desktop/issues/52
https://github.com/pop-os/pop/issues/1359

In this particular case, gstreamer-vaapi is listed as a hard requirement as
well:

https://github.com/pop-os/desktop/blame/master_focal/debian/control#L90

I filed https://github.com/pop-os/desktop/issues/60

Cheers
--
Mathieu Duponchelle · https://www.centricular.com <https://www.centricular.com>

On 2/25/21 4:38 PM, Nicolas Dufresne wrote:

> Le jeudi 25 février 2021 à 01:27 -0600, JimmyHan a écrit :
>> thanks much..
>>
>> but don't you think deleting pop-desktop will cause problems?
> That's an interesting depency, worst case just remove or rename the plugins and
> file an issue to pop folks that their built crashes.
>
>>
>>
>> --
>> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
>> _______________________________________________
>> gstreamer-devel mailing list
>> [hidden email]
>> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Something may have went wrong in setting Up GStreamer environment for developing

JimmyHan
Yh they really do, I mean why would git affect anything. In looking for solutions I came across these links to.

based on this like here, I don't think removing pop-desktop would be a good idea.
https://www.reddit.com/r/pop_os/comments/elcqdo/how_to_remove_pop_desktop_environment/

thanks so much for your extended help.

Unfortunately, I can't wait on System76 developers to solve this.
I may have to jump on a vm in the mean time. I don't wanna go back to windows and I'm used to debian based systems. Can anyone suggest a debian based OS that will for sure work with GStreamer and all the plugins.

I would really appreciate that.

Sent from the GStreamer-devel mailing list archive at Nabble.com.

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

Re: Something may have went wrong in setting Up GStreamer environment for developing

gotsring
I typically use Ubuntu without issues, currently Ubuntu 20.10. I have not
tried developing on a VM (always slow for me, so I usually dual-boot), but I
don't think this will be a problem if you're just learning about GStreamer.



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

Re: Something may have went wrong in setting Up GStreamer environment for developing

Mathieu Duponchelle
In reply to this post by JimmyHan
I'm not a debian user, but https://gstreamer.freedesktop.org/documentation/installing/on-linux.html?gi-language=c#prerequisites
seems to suggest either latest ubuntu, or debian sid.

On 2/25/21 9:45 PM, JimmyHan wrote:
Yh they really do, I mean why would git affect anything. In looking for solutions I came across these links to.

based on this like here, I don't think removing pop-desktop would be a good idea.
https://www.reddit.com/r/pop_os/comments/elcqdo/how_to_remove_pop_desktop_environment/

thanks so much for your extended help.

Unfortunately, I can't wait on System76 developers to solve this.
I may have to jump on a vm in the mean time. I don't wanna go back to windows and I'm used to debian based systems. Can anyone suggest a debian based OS that will for sure work with GStreamer and all the plugins.

I would really appreciate that.

Sent from the GStreamer-devel mailing list archive at Nabble.com.

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

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

Re: Something may have went wrong in setting Up GStreamer environment for developing

amindfv@mailbox.org
On Thu, Feb 25, 2021 at 10:17:51PM +0100, Mathieu Duponchelle wrote:
> I'm not a debian user, but https://gstreamer.freedesktop.org/documentation/installing/on-linux.html?gi-language=c#prerequisites
> seems to suggest either latest ubuntu, or debian sid.

I'm happy on Debian stable as well.


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

Re: Something may have went wrong in setting Up GStreamer environment for developing

JimmyHan
In reply to this post by Mathieu Duponchelle
So in practicing, I realized what was the problem.

I run all the tutorials to see which one crashed with the segmentation fault.

then using the tutorials that crashed, I looked for similarities in code, and I found something.

All the tutorials utilizing this line of code crashed with segmentation faults:

/* Build the pipeline */
pipeline = gst_parse_launch("playbin uri=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm", NULL);

or

/* Set the URI to play */
g_object_set (data.source, "uri", "https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm", NULL);

it would crash withe the segmentation fault.

so I decided to go to the address "https://www.freedesktop.org/software/gstreamer-sdk/data/media/" to find any other formats.
Fortunately I found the .ogv format. Replaced .webm with .ogv and everything worked perfectly.

The uneducated conclusion for now is that, whenever the source is pulled from the internet and comes from a .webm format, it causes problems.
Well on my system (!Pop_OS).

Sent from the GStreamer-devel mailing list archive at Nabble.com.

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