LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-20-2008, 08:41 PM   #1
georgelcf
LQ Newbie
 
Registered: Feb 2008
Posts: 1

Rep: Reputation: 0
How to setup directfb with mplayer properly?


Hi everybody,

Since i want to play movie and display jpg on console (FC8 without X11),

1. Get directfb source from directfb.org (directfb-1.1.1.tar.gz)
2. Configure grub.conf file, vga = 794 for (/dev/fb0)
3. Configure ld.so.conf file to set /usr/local/lib and then ldconfig
4. install libjpeg6, zlib, libpng
5. Extract directfb-1.1.1.tar.gz and ./configure --disable-X11 and make and make install
6. installation successfully.

7. Get mplayer source from mplayerhq.hl (MPlayer v1.0rc2 source)
8. Extract it and ./configure and make and make install
9. Everything is okay.

Then i tried to play movie in console first, Type

mplayer -vo directfb xxx.mpg

It can't success and show the error message:

=============================================
MPlayer interrupted by signal 6 in module: decode_video
- MPlayer crashed. This shouldn't happen.
It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
gcc version. If you think it's MPlayer's fault, please read
DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
won't help unless you provide this information when reporting a possible bug.
==============================================

1. Does anyone how to fix it?
2. Also, how to i display jpg in console?

thx a lot

George
 
Old 04-11-2021, 09:53 PM   #2
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,466

Rep: Reputation: Disabled
Hi George

One thing to watch out for is that you have permissions to access the framebuffer.

ls -l on mine gives:
crw-rw---- 1 root video 29, 0 2021-03-31 15:23 /dev/fb0

Being in the video group works for me, but it may be a different group in your distro. If it says `root root' then try (as root or with sudo) `chgrp video /dev/fb0; chmod g+rw /dev/fb0' (or a group you're in if not the video group (check with the `groups' command)).

You might also want to run `ldd' on the mplayer binary, to check it's linked to the right things.

I've been using `mplayer -vo fbdev2' to play videos in the console for a while, so try and see if that works too, but if you really want get directfb working, then I am also working on it at the moment and I'll report back with any success/failures.

I find that mpv with drm support also works, but it's only fullscreen - you can't make positioned/resized windows like you can with mplayer + fbdev2.

For displaying static images, I use `fim' (fbi improved), which is a fork of `fbi' and tends to work better. It also comes with a `fimgs' shell script to display PDFs and postscript files (You need ghostscript installed for this). MPlayer does also display static images, but if works better with animations like MNGs (not sure about animated GIFs, but they can be converted with ImageMagick). Static images often disappear before you can see them properly in mplayer.

Hope this helps.

Edit* There is a man page for directfbrc(5) you may want to look at if you haven't already. There are a lot of options that can put into /etc/directfbrc, or one in $HOME.

Last edited by dive; 04-11-2021 at 10:11 PM.
 
Old 04-12-2021, 12:29 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 17,948
Blog Entries: 11

Rep: Reputation: 5433Reputation: 5433Reputation: 5433Reputation: 5433Reputation: 5433Reputation: 5433Reputation: 5433Reputation: 5433Reputation: 5433Reputation: 5433Reputation: 5433
Is this a glitch in the forum software, or did you really just (in 2021) reply to an unanswered question from 2008?
 
Old 04-12-2021, 01:49 AM   #4
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,466

Rep: Reputation: Disabled
Damn, I was searching for something and this link came up as the first result, then I read the date backwards! yy-mm-dd

Oh well.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
MPlayer not working properly, showing flashes in between swapy Linux - Software 1 11-09-2007 07:35 AM
mplayer wont work on suse 9.2 properly sephitoh999 Linux - Software 3 03-17-2005 11:52 AM
directfb MatroxG450 Freevo MPlayer ^kossu Debian 1 02-26-2005 01:34 PM
Mplayer does not play dvd properly! tolis Linux - Software 3 12-15-2003 07:48 AM
How-to get MySQL setup properly X11 Linux - Software 6 08-27-2002 05:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration