Difference between revisions of "Mplayer"

From ArmadeusWiki
Jump to: navigation, search
m (Troubleshots)
m (Usage)
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
=Introduction=
 
=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.
+
Every Armadeus APF modules are capable of playing small MPEG videos with the help of the great [http://www.mplayerhq.hu/design7/info.html Mplayer tool]. It was successfully tested with 320x240 and 480x272 LCDs.
Mplayer is using the [[FrameBuffer|Linux Framebuffer]] to display the videos.
+
Mplayer is using the [[FrameBuffer|Linux Framebuffer]] to display the videos.<br>
 +
It is also possible to play audio files or webcast with this tool.
  
 
=Installation=
 
=Installation=
 
* Activate ''mplayer'' package in Buildroot configuration:
 
* Activate ''mplayer'' package in Buildroot configuration:
 
  [armadeus]$ make menuconfig
 
  [armadeus]$ make menuconfig
[[Image:Menuconfig_package.png]]
+
<pre class="config">
<br><br>
+
...
[[Image:Menuconfig_package_graphics.png]]
+
Target packages  --->
<br><br>
+
    ...
[[Image:Menuconfig_package_mplayer.png]]
+
    Audio and video applications  --->
 +
        ...
 +
        [*] mplayer
 +
</pre>
 
* save your configuration and then build it:
 
* save your configuration and then build it:
 
  [armadeus]$ make
 
  [armadeus]$ make
Line 16: Line 20:
  
 
=Usage=
 
=Usage=
# mplayer -fs <-nosound> video.mpg
+
{{Note|On [[APF6]] please add ''-vo fbdev2'' to the commands below}}
 +
* Play a Fullscreen (centered) video with no sound:
 +
<pre class="apf">
 +
# mplayer -fs -nosound video.mpg
 +
</pre>
 +
* when playing a movie, keyboard can be used to control mplayer. List of shortcuts is available [http://www.mplayerhq.hu/DOCS/man/en/mplayer.1.html#INTERACTIVE CONTROL here]
 +
* Play an audio webcast:
 +
<pre class="apf">
 +
# mplayer -ao alsa -cache 128 -vc dummy -vo null http://live.radio-.....
 +
</pre>
  
 
=Troubleshots=
 
=Troubleshots=
  
* disabling blinking cursor: [[FrameBuffer#Tips]]
+
* [[FrameBuffer#Tips|disable blinking cursor]]
 
+
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=
 
=Converting videos=
To convert videos of your laptop to the board's LCD format, you can use '''ffmpeg''':
+
To convert your videos to fit the board's LCD format, you can use '''ffmpeg''' on your PC:
$ sudo apt-get install ffmpeg
+
<pre class="host">
 
+
$ sudo apt-get install ffmpeg
 +
</pre>
 
* To show current video format:
 
* To show current video format:
 +
<pre class="host">
 
  $ ffmpeg -i my_video.mpg
 
  $ ffmpeg -i my_video.mpg
 
  FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
 
  FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
Line 38: Line 50:
 
   Stream #0.1[0x1c0]: Audio: mp2, 44100 Hz, stereo, 224 kb/s
 
   Stream #0.1[0x1c0]: Audio: mp2, 44100 Hz, stereo, 224 kb/s
 
  Must supply at least one output file
 
  Must supply at least one output file
 
+
</pre>
 
* To convert it to 320x240 format:
 
* To convert it to 320x240 format:
$ ffmpeg -i my_video.mpg -s 320x240 my_video_320x240.mpg
+
<pre class="host">
 +
$ ffmpeg -i my_video.mpg -s 320x240 my_video_320x240.mpg
 +
</pre>
  
 
=Links=
 
=Links=
 
* [[FrameBuffer | Framebuffer configuration]]
 
* [[FrameBuffer | Framebuffer configuration]]
 +
* [http://www.mplayerhq.hu/design7/info.html Mplayer website]
 +
* [http://www.linuxjournal.com/video/linux-howto-video-editing-magic-ffmpeg Nice (video) tutorial to edit videos with ffmpeg]
  
 
[[Category:Multimedia]]
 
[[Category:Multimedia]]

Latest revision as of 08:22, 20 May 2015

Introduction

Every Armadeus APF modules are 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.
It is also possible to play audio files or webcast with this tool.

Installation

  • Activate mplayer package in Buildroot configuration:
[armadeus]$ make menuconfig
...
Target packages  --->
    ...
    Audio and video applications  --->
        ...
        [*] mplayer
  • save your configuration and then build it:
[armadeus]$ make
  • finally reflash your rootfs

Usage

Note Note: On APF6 please add -vo fbdev2 to the commands below
  • Play a Fullscreen (centered) video with no sound:
# mplayer -fs -nosound video.mpg
  • when playing a movie, keyboard can be used to control mplayer. List of shortcuts is available CONTROL here
  • Play an audio webcast:
# mplayer -ao alsa -cache 128 -vc dummy -vo null http://live.radio-.....

Troubleshots

Converting videos

To convert your videos to fit the board's LCD format, you can use ffmpeg on your PC:

$ 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