Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

freebsd media player -- from terminal?

18 views
Skip to first unread message

MZ

unread,
Jan 28, 2010, 2:19:39 AM1/28/10
to
Is anybody using FreeBSD as a media player, where they decode and send
video directly to a 2nd video card while leaving the terminal coming out
of the other card? Perhaps using mplayer or something similar? No
front end. No pause, rewind, etc. Just something command line that
says something like "play movie.avi /dev/somecard" ? I suppose I'd be
willing to install X11 for it, but I don't want to have to load up a GUI.

I'm probably overlooking something obvious, but I wonder if anyone can
offer any suggestions.

Indi

unread,
Jan 29, 2010, 8:28:11 PM1/29/10
to


I always just build mplayer without the gtk interface, works fine.
Editing the Makefile yields more options than the config screen.
Simple keybindings for FF, RW, play/pause. Piece 'o' cake.


--
indi

Google Groupers and X-posters are filtered. If you're not a troll
or a spammer then you might want to stop posting like one.

heiko recktenwald

unread,
Jan 30, 2010, 9:02:59 PM1/30/10
to
Indi schrieb:

> On 2010-01-28, MZ <ma...@nospam.void> wrote:
>> Is anybody using FreeBSD as a media player, where they decode and send
>> video directly to a 2nd video card while leaving the terminal coming out
>> of the other card? Perhaps using mplayer or something similar? No
>> front end. No pause, rewind, etc. Just something command line that
>> says something like "play movie.avi /dev/somecard" ? I suppose I'd be
>> willing to install X11 for it, but I don't want to have to load up a GUI.
>>
>> I'm probably overlooking something obvious, but I wonder if anyone can
>> offer any suggestions.
>
>
> I always just build mplayer without the gtk interface, works fine.
> Editing the Makefile yields more options than the config screen.
> Simple keybindings for FF, RW, play/pause. Piece 'o' cake.
>
>
But how do you play it on the second card?


H.

DaveG

unread,
Jan 31, 2010, 5:50:01 AM1/31/10
to

Best bet is probably as basic X install with dual screen setup.

A couple of hints I can give are:

1. Although it's some time ago, I did once have a basic media player
setup using mplayer. I had X set to startup without a GUI, just a shell
at full screen size which ran a basic webrowser/webserver combo using PHP
to scan the "media" drive for any/all media files and presented a list.
I can't remember how I got the shell start up but IIRC was something
in .xinitrc/.xinit or something. This was a single screen setuo.

2. My current dual screen setup defaults to the VGA interface as screen
1 and the DVI interface as screen 2. As screen 2 is my larger screen, I
have KDE set to force screen 2 as the primary screen for windows to open
on, but if I run mplayer -fs it always opens on screen 1 (which happens
to be what I want.)

Now, I don't know if you can use the above, or if only KDE has the
options to do the screen selections, or even if that behavior can be got
from a basic X or some other, light window manager or via the dual head
drivers/config. But it might point you in the right direction.

It may be that if you setup X to use two separate and independent
screens, ie not dual head, desktop stretched over multiple screens, then
you can run an X program with a screen option, something like

startx command -screen:2.

Or maybe a separate instance of X. I dunno. I'm just guessing based on
vague memories as it's something I've not considered until now.

--
You cannot simply assume someone is honest
just because they are not an MP.

Christian Weisgerber

unread,
Jan 31, 2010, 12:27:49 PM1/31/10
to
MZ <ma...@nospam.void> wrote:

> Is anybody using FreeBSD as a media player, where they decode and send
> video directly to a 2nd video card while leaving the terminal coming out
> of the other card? Perhaps using mplayer or something similar? No
> front end. No pause, rewind, etc. Just something command line that
> says something like "play movie.avi /dev/somecard" ? I suppose I'd be
> willing to install X11 for it, but I don't want to have to load up a GUI.

Install X11 and run the X server on the second card only.

You can then just run mplayer on the main console and point its X11
output to DISPLAY=:0.0.

--
Christian "naddy" Weisgerber na...@mips.inka.de

Indi

unread,
Feb 1, 2010, 8:19:20 PM2/1/10
to

That or use one of the window managers that handles multiple monitors
properly. Awesome, xmonad, dwm, wmii are all pretty good. I use
wmii mostly nowadays, and most of the apps I prefer run in a terminal
emulator (xfce4-terminal is my favorite).

CeDeROM

unread,
Feb 8, 2010, 5:11:01 PM2/8/10
to
Hello!

On Jan 28, 7:19 am, MZ <m...@nospam.void> wrote:
> Is anybody using FreeBSD as a media player, where they decode and send
> video directly to a 2nd video card while leaving the terminal coming out

> of the other card? (...)

Some time ago I have sone 3 screen configuration, where 2 screens were
running on a first video card, and third screen was winning on a
second card - all this with Xorg (+Xinerama). It is possible to do
this with pure Xorg. What you want to do can be also accomplished by a
framebuffer output using specific video device with xine/mplayer/vlc.
This is really simple to set up, just remember to use some hardware
acceleration video card for displaying movies (nowadays its almost
each one of them will fit) - as I have used some old S3 the
performance was really bad :-)

Good luck!
Tomek

0 new messages