omega-gg / MotionBox

Video Browser for Motion Freedom
http://omega.gg/MotionBox
GNU General Public License v3.0
116 stars 14 forks source link

LibVLC complains about missing codec (h264) #22

Open Glandos opened 4 years ago

Glandos commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago
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 commented 4 years ago

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

Glandos commented 4 years ago

The current version on unstable : 3.0.11.1-1

kodxana commented 4 years ago

Having that same problem :P

3unjee commented 4 years ago

@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 commented 4 years ago

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

Glandos commented 4 years ago

It also works here!

JimboJoe commented 4 years ago

I confirm the above-mentioned artifact fixes the problem on Linux Mint 20 :+1:

3unjee commented 4 years ago

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

HammiSaif commented 2 years ago

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 commented 2 years ago

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