Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LibVLC complains about missing codec (h264) #22

Open
Glandos opened this issue Aug 4, 2020 · 13 comments
Open

LibVLC complains about missing codec (h264) #22

Glandos opened this issue Aug 4, 2020 · 13 comments

Comments

@Glandos
Copy link

Glandos commented Aug 4, 2020

When trying to play https://www.youtube.com/watch?v=3J06af5xHD0 here is the output:

Current source [https://r4---sn-25glen7l.googlevideo.com/videoplayback?expire=1596601797&ei=ZeEpX7nXHfy3xN8PtuibwA4&ip=2a01%3Ae0a%3A255%3A6e01%3A21f%3Ad0ff%3Afe80%3A127d&id=o-AFXjCbpSFUncd7IJan5iMfocNjL38T5gCZl6W_S3Obei&itag=136&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C271%2C278%2C313&source=youtube&requiressl=yes&mh=R1&mm=31%2C29&mn=sn-25glen7l%2Csn-25ge7ns7&ms=au%2Crdu&mv=m&mvi=4&pl=52&initcwndbps=878750&vprv=1&mime=video%2Fmp4&gir=yes&clen=205454443&dur=3936.624&lmt=1596549642102764&mt=1596580060&fvip=4&keepalive=yes&fexp=23883098&c=WEB&txp=6432432&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIhAIcKFqTSqOrCo6Nb5V01RjlQzxh_ARatJmJalX6BSnSXAiBrGW-kDviN2S-sQdQjBGZ46VRl7KEGcfHl28a0SChagw%3D%3D&sig=AOq0QJ8wRAIgFaqmHr_M236a2SClUdBKWOeAc8fX9hep0yEV6rOGKgkCIArVetJD7nv5Rxe68a7zYjuBC3EiFP-NFAojoitOdvIH] 5 
[00007ff95c3371d0] main decoder error: Codec `h264' (H264 - MPEG-4 AVC (part 10)) is not supported.
[00007ff95c3371d0] main decoder error: Codec non pris en charge
[00007ff95c3371d0] main decoder error: VLC ne peut pas décoder le format « h264 » (H264 - MPEG-4 AVC (part 10))
[00007ff95c3371d0] main decoder error: buffer deadlock prevented
[00007ff95c0489a0] main tls client error: connection error: Resource temporarily unavailable
[00007ff95c0489a0] main tls client error: connection error: Interrupted system call
[00007ff95c0048f0] main tls client error: connection error: Resource temporarily unavailable
[00007ff95c0048f0] main tls client error: connection error: Interrupted system call

(Sorry for the French inside…). However, when I try to play it with VLC on the same machine, everything is working fine.

Is there something I can do to know why libvlc is not working and vlc does the job?

I'm using Debian/unstable with MotionBox 1.6.0-6.

@Glandos
Copy link
Author

Glandos commented Aug 4, 2020

Here are some relevant logs from VLC itself when playing the same video:

[00007f69b4029290] main demux debug: using demux module "mp4"
[00007f69b40045f0] main decoder debug: looking for video decoder module matching "any": 15 candidates
[00007f69b40045f0] avcodec decoder debug: using ffmpeg Lavc58.91.100
[00007f69b40045f0] avcodec decoder debug: CPU flags: 0x000011db
[00007f69b40045f0] avcodec decoder debug: allowing 5 thread(s) for decoding
[h264 @ 0x7f69b40541c0] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0x7f69b40541c0] nal_unit_type: 8(PPS), nal_ref_idc: 3
[00007f69b40045f0] avcodec decoder debug: codec (h264) started
[00007f69b40045f0] avcodec decoder debug: using frame thread mode with 5 threads
[00007f69b40045f0] main decoder debug: using video decoder module "avcodec"

So maybe ffmpeg is not used/detected?

@3unjee
Copy link
Member

3unjee commented Aug 5, 2020

Oh wow, never encountered something like this. Can you confirm you have no libvlc.so in your MotionBox folder and you start things with start.sh ?

@Glandos
Copy link
Author

Glandos commented Aug 6, 2020

user@complexe ~/T/MotionBox-1.6.0> pwd
/home/user/Téléchargements/MotionBox-1.6.0
user@complexe ~/T/MotionBox-1.6.0> find -name '*libvlc*'
user@complexe ~/T/MotionBox-1.6.0>

And yes, I start it with sh start.sh. Note however that it is working with https://www.youtube.com/watch?v=hsxukOPEdgg because it's AV1 at 480p. I was using 480p for the failing stream also.

@3unjee
Copy link
Member

3unjee commented Aug 7, 2020

Strange, what's the VLC version on your Debian ?

@Glandos
Copy link
Author

Glandos commented Aug 7, 2020

The current version on unstable : 3.0.11.1-1

@kodxana
Copy link

kodxana commented Aug 19, 2020

Having that same problem :P

@3unjee
Copy link
Member

3unjee commented Aug 19, 2020

@kodxana What distribution / version are you using ?

Could you guys try this artifact (Linux 64 bit): https://dev.azure.com/bunjee/MotionBox/_build/results?buildId=2239&view=artifacts&type=publishedArtifacts

This could be related to this: http://omega.gg/t/some-youtube-videos-dont-start/100/15

@kodxana
Copy link

kodxana commented Aug 19, 2020

@3unjee Yup this artefact works perfect. Pop_OS! 20.04 64bit

@Glandos
Copy link
Author

Glandos commented Aug 21, 2020

It also works here!

@JimboJoe
Copy link

I confirm the above-mentioned artifact fixes the problem on Linux Mint 20 👍

@3unjee
Copy link
Member

3unjee commented Oct 12, 2020

OK, I'll push the new version ASAP and close this.

@HammiSaif
Copy link

I am also facing the same issue that libVLC is not able to play video whereas VLC does.
I am using UBUNTU mate 20.04.1 LTS on raspberry pi 4.

[0000ffff60035af0] main decoder error: Codec `h264' (H264 - MPEG-4 AVC (part 10)) is not supported.
[0000ffff60035af0] main decoder error: Codec not supported
[0000ffff60035af0] main decoder error: VLC could not decode the format "h264" (H264 - MPEG-4 AVC (part 10))

Can someone please help me

@3unjee
Copy link
Member

3unjee commented Oct 19, 2022

That shouldn't happen on Ubuntu 20.04 with VLC installed, have you tested the lastest archive -> https://omega.gg/MotionBox/get ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants