libmpv

Post your Gambas programming questions here.
vuott
Posts: 91
Joined: Wednesday 05th April 2017 6:07pm
Location: European Union

Re: libmpv

Post by vuott » 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.

User avatar
BruceSteers
Posts: 524
Joined: Thursday 23rd July 2020 5:20pm

Re: libmpv

Post by BruceSteers » Tuesday 25th May 2021 10:04pm

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 😎
Wishing well
Bruce

If at first you don't succeed , try it differently.

vuott
Posts: 91
Joined: Wednesday 05th April 2017 6:07pm
Location: European Union

Re: libmpv

Post by vuott » 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

User avatar
BruceSteers
Posts: 524
Joined: Thursday 23rd July 2020 5:20pm

Re: libmpv

Post by BruceSteers » Wednesday 26th May 2021 12:32am

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.
Wishing well
Bruce

If at first you don't succeed , try it differently.

User avatar
stevedee
Posts: 447
Joined: Monday 20th March 2017 6:06pm

Re: libmpv

Post by stevedee » 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.

User avatar
BruceSteers
Posts: 524
Joined: Thursday 23rd July 2020 5:20pm

Re: libmpv

Post by BruceSteers » Wednesday 26th May 2021 2:45pm

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 😎
Wishing well
Bruce

If at first you don't succeed , try it differently.

User avatar
stevedee
Posts: 447
Joined: Monday 20th March 2017 6:06pm

Re: libmpv

Post by stevedee » Wednesday 26th May 2021 3:24pm

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 501 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.

vuott
Posts: 91
Joined: Wednesday 05th April 2017 6:07pm
Location: European Union

Re: libmpv

Post by vuott » 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.

User avatar
BruceSteers
Posts: 524
Joined: Thursday 23rd July 2020 5:20pm

Re: libmpv

Post by BruceSteers » 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
Wishing well
Bruce

If at first you don't succeed , try it differently.

User avatar
stevedee
Posts: 447
Joined: Monday 20th March 2017 6:06pm

Re: libmpv

Post by stevedee » Thursday 27th May 2021 9:49am

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.

Post Reply