Page 1 of 1

firefoxdoesn't play MP4 (Solved)

Posted: Thu May 12, 2022 10:34 pm
by gilles

Hello,
Firefox-91.9.Oesr with Bionic 32 doesn't play MP4.
What must I do ?
Thank you


Re: firefoxdoesn't play MP4

Posted: Thu May 12, 2022 11:16 pm
by ozsouth

@gilles - if you mean sound doesn't play, you probably need to start firefox with apulse, i.e.
from a terminal run: apulse firefox (assuming just running 'firefox' starts it).
In bionic32, you may also need the apulse .pet found in this post: viewtopic.php?p=54265&sid=9febef9bdecda ... 029#p54265


Re: firefoxdoesn't play MP4

Posted: Fri May 13, 2022 3:21 am
by Flash

Alternatively, you can download the .mp4 file and see if any of the several media players in Puppy's Multimedia section will play it. Gnome or mhWaveEdit have always been able to play .mp4 for me.


Re: firefoxdoesn't play MP4

Posted: Fri May 13, 2022 12:45 pm
by gilles

Hello,

Yes, what I mean is that I can watch the mp4 video but without sound.
I downladed the apulse.pet, but it changed nothing.
But it is wrigth I have video and sound perfectly if I click on "download" and choose to open it with the default media player. It should be better to have it directly...Is it imposible ?

Thank you for your help.


Re: firefoxdoesn't play MP4

Posted: Fri May 13, 2022 2:12 pm
by mikeslr

File-browse to /usr/share/applications/firefox.desktop. (Yours might have a slightly different name, or one beginning with mozilla). Open it in a text editor. Add apulse to the right side of the Exec= line, e.g.:

Exec=apulse firefox

You didn't need to install apulse. It's built into Puppys. You just have to tell an application to use it; or rather, as the argument above shows, use it and an application at the same time.

But the way I prefer is to use MikeWalsh's rebuilt of fredx181's portable. viewtopic.php?p=37559#p37559. Among other things, the application will update and the script which starts it also starts apulse.


Re: firefoxdoesn't play MP4

Posted: Sat May 14, 2022 8:17 am
by gilles

Hello Mikeslr,
In :
[Desktop Entry]
Encoding=UTF-8
Name=Navigateur Firefox
Comment=Navigateur Firefox
Exec=/opt/firefox/firefox
Icon=/usr/local/share/icons/hicolor/24x24/apps/firefox.png
Terminal=false
StartupNotify=false
NoDisplay=false
Type=Application
Categories=WebBrowser;
GenericName=Navigateur Firefox

I have change the Exec line to :
Exec=apulse firefox

But, then, firefox doesn't work at all : it doesn't start...
So I came back to :
Exec=/opt/firefox/firefox
and so, it starts again but without sound with mp4, except if I click on download and open with the default media player.

Thank you for your help


Re: firefoxdoesn't play MP4

Posted: Sat May 14, 2022 1:06 pm
by one

Hi @gilles,

so the solution will probable be to change the Exec line to:

Exec=/opt/firefox/apulse firefox

peace


Re: firefoxdoesn't play MP4

Posted: Sat May 14, 2022 1:26 pm
by ozsouth

I think that exec line should be:
Exec=apulse /opt/firefox/firefox


Re: firefoxdoesn't play MP4

Posted: Sat May 14, 2022 5:36 pm
by one

Hi @ozsouth,

my bad - I think you are right :oops: .

@gilles

I started a pristine bionicpup32, downloaded a firefox-91.9.0esr.tar.bz2 from firefox and extracted it in /opt, started the firefox binary from there and it plays mp4 with sound.
The portable firefox-esr from mikewalsh also plays mp4 well with sound ...

peace


Re: firefoxdoesn't play MP4

Posted: Sun May 15, 2022 8:56 am
by gilles

Hello,
I modified the Exec line to : Exec=apulse /opt/firefox/firefox
This way, it works perfectly
Thank you