Page 2 of 3

Re: libmpv

Posted: Tuesday 25th May 2021 9:07pm
by vuott
BruceSteers wrote: Tuesday 25th May 2021 1:07am I'm not sure of the formats exactly i just have various mp4 and mkv files that the MediaView control show some okay but not others audio is okay but video is not right for some.
:? Really weird.
The "gb.media" Component, of which MediaView is a part, is based on GStreamer, which is a very powerful and very versatile multimedia system.

Re: libmpv

Posted: Tuesday 25th May 2021 10:04pm
by BruceSteers
vuott wrote: Tuesday 25th May 2021 9:07pm
BruceSteers wrote: Tuesday 25th May 2021 1:07am I'm not sure of the formats exactly i just have various mp4 and mkv files that the MediaView control show some okay but not others audio is okay but video is not right for some.
:? Really weird.
The "gb.media" Component, of which MediaView is a part, is based on GStreamer, which is a very powerful and very versatile multimedia system.
Yes it's why I settled for smplayer as my media player of choice.
GStreamer just never cut the mustard for me.

Hasn't taken much code to create a fully functional libmpv player class though. And what you can do with it is massive compared to MediaView as all (and there is lots) of the mpv options/commands are available 😎

Re: libmpv

Posted: Tuesday 25th May 2021 10:49pm
by vuott
BruceSteers wrote: Tuesday 25th May 2021 10:04pm And what you can do with it is massive compared to MediaView as all (and there is lots) of the mpv options/commands are available
Yes, I saw:
https://github.com/mpv-player/mpv/tree/master/DOCS/man

Re: libmpv

Posted: Wednesday 26th May 2021 12:32am
by BruceSteers
vuott wrote: Tuesday 25th May 2021 10:49pm
BruceSteers wrote: Tuesday 25th May 2021 10:04pm And what you can do with it is massive compared to MediaView as all (and there is lots) of the mpv options/commands are available
Yes, I saw:
https://github.com/mpv-player/mpv/tree/master/DOCS/man
sooo much info to take in :roll:
I found the docs quite spread out and hard to read. needs a more condensed reference.

Re: libmpv

Posted: Wednesday 26th May 2021 7:19am
by stevedee
BruceSteers wrote: Tuesday 25th May 2021 1:07am I'm not sure of the formats exactly i just have various mp4 and mkv files that the MediaView control show some okay but not others
audio is okay but video is not right for some....
Welcome to the rather muddled world of multimedia!

Mp4 & mkv are container formats. Its a bit like 2 people in a car. Just because they are driving a Ford Focus, it does not mean you will be able to understand what they are saying.

In .mp4 the audio stream could be AAC, MP3 or something else.

If the container is .avi then [pretty much] anything goes.

Re: libmpv

Posted: Wednesday 26th May 2021 2:45pm
by BruceSteers
stevedee wrote: Wednesday 26th May 2021 7:19am
BruceSteers wrote: Tuesday 25th May 2021 1:07am I'm not sure of the formats exactly i just have various mp4 and mkv files that the MediaView control show some okay but not others
audio is okay but video is not right for some....
Welcome to the rather muddled world of multimedia!

Mp4 & mkv are container formats. Its a bit like 2 people in a car. Just because they are driving a Ford Focus, it does not mean you will be able to understand what they are saying.

In .mp4 the audio stream could be AAC, MP3 or something else.

If the container is .avi then [pretty much] anything goes.
Yes, that's why I said "I'm not sure the format" as I do not know what's inside the mp4 or mkv file.

What I did find was mpv seemed to play everything 😎

Re: libmpv

Posted: Wednesday 26th May 2021 3:24pm
by stevedee
BruceSteers wrote: Wednesday 26th May 2021 2:45pm ...Yes, that's why I said "I'm not sure the format" as I do not know what's inside the mp4 or mkv file...
Many Linux media players will tell you the formats for Container, Video and Audio. Here is a screen shot of Xplayer;
VidAudioFormats.png
VidAudioFormats.png (307.63 KiB) Viewed 5246 times

What I did find was mpv seemed to play everything 😎
...everything that you have tried. Any idea how many there are out there in the wild? :shock:

Installing codecs can help if your app can use them. I think some players load their own.

Search for codec in Synaptic and see what you have already loaded.

Re: libmpv

Posted: Thursday 27th May 2021 3:04am
by vuott
stevedee wrote: Wednesday 26th May 2021 3:24pm Installing codecs can help if your app can use them.
Infact.

Re: libmpv

Posted: Thursday 27th May 2021 8:13am
by BruceSteers
vuott wrote: Thursday 27th May 2021 3:04am
stevedee wrote: Wednesday 26th May 2021 3:24pm Installing codecs can help if your app can use them.
Infact.
yeah but ,,, video says it's x.264 and i have x264 codecs installed.
Still no video on GSreamer
mpv / SMplayer works fine.

also fact

Re: libmpv

Posted: Thursday 27th May 2021 9:49am
by stevedee
BruceSteers wrote: Thursday 27th May 2021 8:13am
vuott wrote: Thursday 27th May 2021 3:04am
stevedee wrote: Wednesday 26th May 2021 3:24pm Installing codecs can help if your app can use them.
Infact.
yeah but ,,, video says it's x.264 and i have x264 codecs installed.
Still no video on GSreamer
mpv / SMplayer works fine.

also fact
Yes, well I did say "...if your app can use them" :roll:

I don't know if gstreamer can use installed codecs or whether it needs them to be in the form of a plugin, as it appears to have a 'plugin based architecture'.

You may find it both interesting & useful to install the video editor: Shotcut {AppImage here: https://www.shotcut.org/download/}
This is a great video editor anyway, but will also allow you to experiment with video formats via the Export options.