Abrowser won't let me associate Gnome's mplayer with MP4 files

9 Antworten [Letzter Beitrag]
amenex
Offline
Beigetreten: 01/03/2015

Whatever app is associated with Abrowser, whenever I try to open an MP4 video from an HTML file, Abroswer's app insists that the video file is corrupt.

However, when I save the video file to my Documents folder, Mplayer runs it just fine. So does *indows 7, for that matter.

But I've not found a way to associate GNOME's Mplayer with MP4 files in the Abrowser preferences.

I'm running Trisquel 7 on a ThinkPad T420.

Trisquel 7 is up-to-date with apt-get.

Magic Banana

I am a member!

I am a translator!

Offline
Beigetreten: 07/24/2010

Use the "Applications" tab of Abrowser's "Preferences".

amenex
Offline
Beigetreten: 01/03/2015

Here's what my "Applications" tab reveals:

Debian package ? Always ask
DOS/Windows executable ? Always ask
ircs ? Always ask
mailto (W) Use KMailService (default)
Podcast ? Preview in ABrowser
Portable Document Format (PDF) ? Preview in ABrowser
Video Podcast ? Preview in ABrowser
Web Feed ? Preview in ABrowser

Browsing thru installed applications:
.gconf
.gnome2
.gnome2_private
.gstreamer-0.10
.mplayer

None of these changes the outcome, and there's no "reload" button in ABrowser, yet if I start GNOME MPlayer from the list of applications in the Trisquel menu, the same video plays just fine.

Magic Banana

I am a member!

I am a translator!

Offline
Beigetreten: 07/24/2010

I have "Video MPEG-4" in this "Applications" tab. That may be thanks to the "mozplugger" package (in Trisquel's repository). Installing it may solve your problem.

amenex
Offline
Beigetreten: 01/03/2015

The Plug-ins and Add-ons menus aren't helping, either.

amenex
Offline
Beigetreten: 01/03/2015

The "Mozplugger" app appeared OK after I used apt-get to install it, but that pesky "corrupt file" appears nevertheless when I try to view that nasty MV4 file by clicking on the link in my HTML file in ABrowser. Worse, "Video MPEG-4" is nowhere to be found.

Mozplugger didn't show up until after I used Synaptic Package Manager to remove mplayer-2 and replace it with mplayer. That was just a stab in the dark. Fortunately, I can reach the MV4 file by other means - download to the hard drive first, then apply GNOME MPlayer. Alas, now I see that GNOME MPlayer is messed up. I'll go back to mplayer-2, I guess, and see what transpires ...

amenex
Offline
Beigetreten: 01/03/2015

Oops. I meant "MP4" of course.

GNOME MPlayer played my video at triple time with mplayer2 replaced by mplayer, so I uninstalled GNOME MPlayer and then reinstalled it.

At first, I thought that ABrowser didn't like a couple of MP4 files that I had edited. But now I see that is doesn't like _any_ of my MP4 files. Maybe a certain flag has been set ? Where might that flag be ?

Here's my Mozplugger's video configuration file; note that the second set of commands covers MPEG4 OK:

###################
### Video ###
###################

video/mpeg:mpeg,mpg,mpe:MPEG animation
video/x-mpeg:mpeg,mpg,mpe:MPEG animation
video/x-mpeg2:mpv2,mp2ve:MPEG2 animation
MP_VIDEO_STREAM()
TM_VIDEO_STREAM()
nokill noisy: xine -pq "$file"
loop: mtvp -l -W$window "$file"
: mtvp -W$window "$file"
loop: xanim +Av100 -Zr +W$window +q +f "$file"
: xanim +Av100 -Zr +W$window +q +Ze +f "$file"

video/mp4:mp4:MPEG4 animation
video/msvideo:avi:AVI animation
video/x-msvideo:avi:AVI animation
video/fli:fli,flc:FLI animation
video/x-fli:fli,flc:FLI animation
MP_VIDEO_STREAM()
TM_VIDEO_STREAM()
nokill noisy: xine -pq "$file"

application/x-mplayer2:*:Windows Media video
video/x-ms-asf:asf,asx:Windows Media video
video/x-ms-wm:wm:Windows Media video
video/x-ms-wmv:wmv:Windows Media video
video/x-ms-wvx:wvx:Windows Media video
video/x-ms-asf-plugin:*:Window Media video
MP_VIDEO_PLAYLIST(%.asx)
MP_VIDEO_STREAM()
TM_VIDEO_STREAM()

application/asx:asx:Windows Media video
MP_VIDEO_STREAM(-playlist)
TM_VIDEO_STREAM()

application/x-quicktimeplayer:mov:Quicktime animation
image/x-macpaint:pntg,mov:Quicktime animation
video/quicktime:mov,qt:Quicktime animation
video/x-quicktime:mov,qt:Quicktime animation
MP_VIDEO_STREAM()
MP_LINKS("$file")
TM_VIDEO_STREAM()
TM_LINKS("$file")
stream links : xine -pq "$file"
nokill noisy: xine -pq "$file"

video/x-theora:ogg:OGG stream with video
video/theora:ogg:OGG stream with video
video/ogg:ogg:OGG stream with video
video/x-ogg:ogm,ogv:OGG stream with video
MP_VIDEO_STREAM()
TM_VIDEO_STREAM()

video/dl:dl:DL animation
video/x-dl:dl:DL animation
video/sgi-movie:movie,movi,mv:SGI animation
video/x-sgi-movie:movie,movi,mv:SGI animation
video/anim:iff,anim5,anim3,anim7:IFF animation###################
### Video ###
###################

video/mpeg:mpeg,mpg,mpe:MPEG animation
video/x-mpeg:mpeg,mpg,mpe:MPEG animation
video/x-mpeg2:mpv2,mp2ve:MPEG2 animation
MP_VIDEO_STREAM()
TM_VIDEO_STREAM()
nokill noisy: xine -pq "$file"
loop: mtvp -l -W$window "$file"
: mtvp -W$window "$file"
loop: xanim +Av100 -Zr +W$window +q +f "$file"
: xanim +Av100 -Zr +W$window +q +Ze +f "$file"

video/mp4:mp4:MPEG4 animation
video/msvideo:avi:AVI animation
video/x-msvideo:avi:AVI animation
video/fli:fli,flc:FLI animation
video/x-fli:fli,flc:FLI animation
MP_VIDEO_STREAM()
TM_VIDEO_STREAM()
nokill noisy: xine -pq "$file"

application/x-mplayer2:*:Windows Media video
video/x-ms-asf:asf,asx:Windows Media video
video/x-ms-wm:wm:Windows Media video
video/x-ms-wmv:wmv:Windows Media video
video/x-ms-wvx:wvx:Windows Media video
video/x-ms-asf-plugin:*:Window Media video
MP_VIDEO_PLAYLIST(%.asx)
MP_VIDEO_STREAM()
TM_VIDEO_STREAM()

application/asx:asx:Windows Media video
MP_VIDEO_STREAM(-playlist)
TM_VIDEO_STREAM()

application/x-quicktimeplayer:mov:Quicktime animation
image/x-macpaint:pntg,mov:Quicktime animation
video/quicktime:mov,qt:Quicktime animation
video/x-quicktime:mov,qt:Quicktime animation
MP_VIDEO_STREAM()
MP_LINKS("$file")
TM_VIDEO_STREAM()
TM_LINKS("$file")
stream links : xine -pq "$file"
nokill noisy: xine -pq "$file"

video/x-theora:ogg:OGG stream with video
video/theora:ogg:OGG stream with video
video/ogg:ogg:OGG stream with video
video/x-ogg:ogm,ogv:OGG stream with video
MP_VIDEO_STREAM()
TM_VIDEO_STREAM()

video/dl:dl:DL animation
video/x-dl:dl:DL animation
video/sgi-movie:movie,movi,mv:SGI animation
video/x-sgi-movie:movie,movi,mv:SGI animation
video/anim:iff,anim5,anim3,anim7:IFF animation
video/x-anim:iff,anim5,anim3,anim7:IFF animation
loop: xanim +Av100 -Zr +W$window +q +f "$file"
: xanim +Av100 -Zr +W$window +q +Ze +f "$file"
video/x-anim:iff,anim5,anim3,anim7:IFF animation
loop: xanim +Av100 -Zr +W$window +q +f "$file"
: xanim +Av100 -Zr +W$window +q +Ze +f "$file"

leny2010

I am a member!

I am a translator!

Offline
Beigetreten: 09/15/2011

True, they cover MP4 OK, but by the look of it they invoke xine not mplayer... try changing it to mplayer as you intend.

amenex
Offline
Beigetreten: 01/03/2015

At leny2010's suggestion, I altered MozPlugger's configuration file thusly:

cat 60-video.conf
###################
### Video ###
###################

video/mpeg:mpeg,mpg,mpe:MPEG animation
video/x-mpeg:mpeg,mpg,mpe:MPEG animation
video/x-mpeg2:mpv2,mp2ve:MPEG2 animation
MP_VIDEO_STREAM()
TM_VIDEO_STREAM()
nokill noisy: xine -pq "$file"
loop: mtvp -l -W$window "$file"
: mtvp -W$window "$file"
loop: xanim +Av100 -Zr +W$window +q +f "$file"
: xanim +Av100 -Zr +W$window +q +Ze +f "$file"

video/mp4:mp4:MPEG4 animation
video/msvideo:avi:AVI animation
video/x-msvideo:avi:AVI animation
video/fli:fli,flc:FLI animation
video/x-fli:fli,flc:FLI animation
MP_VIDEO_STREAM()
TM_VIDEO_STREAM()
nokill noisy: mplayer -pq "$file"

application/x-mplayer2:*:Windows Media video
video/x-ms-asf:asf,asx:Windows Media video
video/x-ms-wm:wm:Windows Media video
video/x-ms-wmv:wmv:Windows Media video
video/x-ms-wvx:wvx:Windows Media video
video/x-ms-asf-plugin:*:Window Media video
MP_VIDEO_PLAYLIST(%.asx)
MP_VIDEO_STREAM()
TM_VIDEO_STREAM()

application/asx:asx:Windows Media video
MP_VIDEO_STREAM(-playlist)
TM_VIDEO_STREAM()

application/x-quicktimeplayer:mov:Quicktime animation
image/x-macpaint:pntg,mov:Quicktime animation
video/quicktime:mov,qt:Quicktime animation
video/x-quicktime:mov,qt:Quicktime animation
MP_VIDEO_STREAM()
MP_LINKS("$file")
TM_VIDEO_STREAM()
TM_LINKS("$file")
stream links : mplayer -pq "$file"
nokill noisy: mplayer -pq "$file"

video/x-theora:ogg:OGG stream with video
video/theora:ogg:OGG stream with video
video/ogg:ogg:OGG stream with video
video/x-ogg:ogm,ogv:OGG stream with video
MP_VIDEO_STREAM()
TM_VIDEO_STREAM()

video/dl:dl:DL animation
video/x-dl:dl:DL animation
video/sgi-movie:movie,movi,mv:SGI animation
video/x-sgi-movie:movie,movi,mv:SGI animation
video/anim:iff,anim5,anim3,anim7:IFF animation
video/x-anim:iff,anim5,anim3,anim7:IFF animation
loop: xanim +Av100 -Zr +W$window +q +f "$file"
: xanim +Av100 -Zr +W$window +q +Ze +f "$file"

But it appears that I haven't gone far enough in banishing xine ... as I still get that "corrupt file" message, even though the MP4 opens & plays OK with anything other than ABrowser.

leny2010

I am a member!

I am a translator!

Offline
Beigetreten: 09/15/2011

Sorry no, I expected you to read man mozplugger and the existing /etc/mozpluggerrc . The line is

nokill noisy: MP_NOEMBED("$file")

And if you're loading the HTML file from disk then don't forget to specify a *relative* URL for the video file. Attached find an example html file which works with that Mozplugger setup on my machine.

AnhangGröße
mozplugger_test.html_.txt 225 Bytes