Multimedia Seg Fault on load
-
Hi guys im trying to run the media player example from the qt creator welcome page. My issue is that as soon as it reaches the line to create the player i get a seg fault.
I have tried the following:
-
Running on Qt Version 5.15.1 ( i have also tried a different project with a player on versions 5.13.0 and 5.13.2)
-
I have installed ubuntu-restricted-extras for media codecs and ubuntu-restricted-addons
-
i have installed gstreamer
I am running on PopOs 21.04 if anyone has any insight.
Thank you
-
-
Hi guys im trying to run the media player example from the qt creator welcome page. My issue is that as soon as it reaches the line to create the player i get a seg fault.
I have tried the following:
-
Running on Qt Version 5.15.1 ( i have also tried a different project with a player on versions 5.13.0 and 5.13.2)
-
I have installed ubuntu-restricted-extras for media codecs and ubuntu-restricted-addons
-
i have installed gstreamer
I am running on PopOs 21.04 if anyone has any insight.
Thank you
-
-
@sc20cah Check your constructor of Player class, may be any object in that is not properly initialised, and post your constructor code.
-
@sc20cah Check your constructor of Player class, may be any object in that is not properly initialised, and post your constructor code.
I dont think it will be, it is happening on every multimedia app including the example one provided by Qt called 'Media Player Example' without any changes
-
I dont think it will be, it is happening on every multimedia app including the example one provided by Qt called 'Media Player Example' without any changes
-
I dont think it will be, it is happening on every multimedia app including the example one provided by Qt called 'Media Player Example' without any changes
@sc20cah Is media file running by gstreamer command line on your system? gst-play-1.0 or gst-launch-1.0
example : gst-launch-1.0 playbin uri=file:///path_to_media/1234.mp4
if not then you need to install gstreamer dependencies; gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly libavcodec-extra gstreamer1.0-libav gstreamer1.0-fluendo-mp3 chromium-codecs-ffmpeg-extra libdvd-pkg
-
@sc20cah Try to update your graphics drivers. What graphics hardware do you have? (NVidia, AMD, Intel, comething else)
You can also test with Qt provided by your distribution.@jsulm
I am running Nvidia 470.86 with an rtx 2060 and same error after update@anil_arise
When I run the command u gave I get 'failed to create playbin element' I have tried reinstalling all the plugins you have listed and still the same error. Also, when it gets to installing gstreamer-1.9-fluendo-mp3 it says it has no installation candidate. -
@jsulm
I am running Nvidia 470.86 with an rtx 2060 and same error after update@anil_arise
When I run the command u gave I get 'failed to create playbin element' I have tried reinstalling all the plugins you have listed and still the same error. Also, when it gets to installing gstreamer-1.9-fluendo-mp3 it says it has no installation candidate.@sc20cah As per your debugger screenshot, qt media player using default media streamer is Gstreamer, so
- Install and resolve gstreamer with its dependencies .
- If plugins of gstreamer are correctly configured/installed . example1 or example2 will be run without error.
- then compile your qt media player program.