Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.