albfan / miraclecast

Connect external monitors to your system via Wifi-Display specification also known as Miracast
Other
3.86k stars 414 forks source link

gst plugin "avdec_h264" not available #508

Closed GameO7er closed 8 months ago

GameO7er commented 8 months ago

I am trying install on Arch linux (linux 6.7) with plasma (5.27 then 6.0.2) and got this error:

testing plugins required:

test udpsrc... (passed)
test rtpjitterbuffer... (passed)
test rtpmp2tdepay... (passed)
test tsdemux... (passed)
test h264parse... (passed)
test avdec_h264...
        gst plugin "avdec_h264" not available
test autovideosink... (passed)

Some plugins required for visualization are missed

Try installing packages "gst-plugins-bad, gst-plugins-base, gst-plugins-base-libs, gst-plugins-good, gst-plugins-ugly, gst-libav, gstreamer".

If that fails too, try:

$ vlc rtp://@:7236

I wonder why this test script shouldn't start first? why there isn't wizard for checking prerequisites and then run the app? I searched a lot to find out there is a test script and I don't have some packages. I also have two network:

Thanks in advance

GameO7er commented 8 months ago

I solved this problem via these commands:

 sudo pacman -S gst-libav

this is very important to do "pacman -Syu" and don't partial update.

I also tried these commands:

sudo pacman -S gst-plugins-bad, gst-plugins-base, gst-plugins-base-libs, gst-plugins-good, gst-plugins-ugly, gst-libav, gstreamer

but the result was:

error: target not found: gst-plugins-bad,
error: target not found: gst-plugins-base,
error: target not found: gst-plugins-base-libs,
error: target not found: gst-plugins-good,
error: target not found: gst-plugins-ugly,
error: target not found: gst-libav,
warning: gstreamer-1.24.1-2 is up to date -- reinstalling

so the above command doesn't work. I wrote this because many people (like me) maybe search on (google, duckduckgo, etc) and maybe this helps them.

Sincerely

GameO7er commented 8 months ago

Beside if you using Ubuntu please check this out (Trying to Install on 16.04.1 Ubuntu Studio):

127

Sincerely