Difference between revisions of "Mplayer"
From ArmadeusWiki
m (→Troubleshots) |
(add ffmpeg) |
||
Line 28: | Line 28: | ||
To see Mega Therion from the band Therion on The lcd screen of the Armadeus Board. (played from nfs) | To see Mega Therion from the band Therion on The lcd screen of the Armadeus Board. (played from nfs) | ||
http://e-ghosting.com/~jujun/080119_202525.3gp | http://e-ghosting.com/~jujun/080119_202525.3gp | ||
+ | |||
+ | =Converting videos= | ||
+ | To convert videos of your laptop to the board's LCD format, you can use '''ffmpeg''': | ||
+ | $ sudo apt-get install ffmpeg | ||
+ | |||
+ | * To show current video format: | ||
+ | $ ffmpeg -i my_video.mpg | ||
+ | FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al. | ||
+ | ....... | ||
+ | Input #0, mpeg, from 'my_video.mpg': | ||
+ | Duration: 00:00:01.7, start: 0.220000, bitrate: 2522 kb/s | ||
+ | Stream #0.0[0x1e0]: Video: mpeg1video, yuv420p, 352x288, 1150 kb/s, 25.00 fps(r) | ||
+ | Stream #0.1[0x1c0]: Audio: mp2, 44100 Hz, stereo, 224 kb/s | ||
+ | Must supply at least one output file | ||
+ | |||
+ | * To convert it to 320x240 format: | ||
+ | $ ffmpeg -i my_video.mpg -s 320x240 my_video_320x240.mpg | ||
=Links= | =Links= |
Revision as of 13:10, 29 August 2008
Introduction
Every Armadeus motherboard is capable of playing small MPEG videos with the help of the great Mplayer tool. It was successfully tested with 320x240 and 480x272 LCDs. Mplayer is using the Linux Framebuffer to display the videos.
Installation
[armadeus]$ make menuconfig
[armadeus]$ make
- then reflash your Rootfs
Usage
# mplayer -fs <-nosound> video.mpg
Troubleshots
- If you have a problem about a lib that can not be found during the link process, it's often an interaction between the host and the target. So you can disable the lib, with the buildroot/package/mplayer/mplayer.mk, editing the ./configure arguments
- disabling blinking cursor:
# echo 0 > /sys/class/graphics/fbcon/cursor_blink
or
# echo -e '\033[?17;0;0c' > /dev/tty0
To see Mega Therion from the band Therion on The lcd screen of the Armadeus Board. (played from nfs)
http://e-ghosting.com/~jujun/080119_202525.3gp
Converting videos
To convert videos of your laptop to the board's LCD format, you can use ffmpeg:
$ sudo apt-get install ffmpeg
- To show current video format:
$ ffmpeg -i my_video.mpg FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al. ....... Input #0, mpeg, from 'my_video.mpg': Duration: 00:00:01.7, start: 0.220000, bitrate: 2522 kb/s Stream #0.0[0x1e0]: Video: mpeg1video, yuv420p, 352x288, 1150 kb/s, 25.00 fps(r) Stream #0.1[0x1c0]: Audio: mp2, 44100 Hz, stereo, 224 kb/s Must supply at least one output file
- To convert it to 320x240 format:
$ ffmpeg -i my_video.mpg -s 320x240 my_video_320x240.mpg