Raspberry Pi OS
Raspberry Pi OS
Raspberry Pi
Documentation
Computers
Accessories
Microcontrollers
Services
Pico C SDK
Raspberry Pi OS
Introduction
Edit this on GitHub
Using APT
The easiest way to manage installing, upgrading, and
removing software is using APT (Advanced Packaging
Tool) from Debian. To update software in Raspberry Pi
OS, you can use the apt tool from a Terminal window.
NOTE
WARNING
apt-cache show sl
Package: sl
Version: 3.03-17
Architecture: armhf
Maintainer: Hiroyuki Yamamoto <[email protected]>
Installed-Size: 114
Depends: libc6 (>= 2.4), libncurses5 (>= 5.5-5~),
Homepage: http://www.tkl.iis.u-tokyo.ac.jp/~toyoda
Priority: optional
Section: games
Filename: pool/main/s/sl/sl_3.03-17_armhf.deb
Size: 26246
SHA256: 42dea9d7c618af8fe9f3c810b3d551102832bf217a
SHA1: b08039acccecd721fc3e6faf264fe59e56118e74
MD5sum: 450b21cc998dc9026313f72b4bd9807b
Description: Correct you if you type `sl' by mista
Sl is a program that can display animations aimed
if you type 'sl' by mistake.
SL stands for Steam Locomotive.
Using rpi-update
rpi-update is a command line application that will
update your Raspberry Pi OS kernel and VideoCore
Grmware to the latest pre-release versions.
WARNING
What it does
Running rpi-update
sudo rpi-update
sudo reboot
WARNING
omxplayer /opt/vc/src/hello_pi/hello_video/test.h2
You can also specify which part of the video you want to
be displayed: this is called a crop window. This portion of
the video will be scaled up to match the display, unless
you also use the window option.
omxplayer example.mp3
wget https://raw.githubusercontent.com/raspberrypi
You can even force output over both the headphone jack
and HDMI with:
omxplayer example.mp4
An Example Video
omxplayer /opt/vc/src/hello_pi/hello_video/test.h2
omxplayer /opt/vc/src/hello_pi/hello_video/test.h2
vlc /opt/vc/src/hello_pi/hello_video/test.h264
1 decrease speed
2 increase speed
< rewind
> fast forward
z show info
j previous audio stream
k next audio stream
i previous chapter
o next chapter
n previous subtitle stream
m next subtitle stream
s toggle subtitles
w show subtitles
x hide subtitles
d decrease subtitle delay (- 250 ms)
f increase subtitle delay (+ 250 ms)
q exit omxplayer
p / space pause/resume
- decrease volume
+ / = increase volume
left arrow seek -30 seconds
right arrow seek +30 seconds
down arrow seek -600 seconds
up arrow seek +600 seconds
Adding the & at the end of the command runs the job in
the background. You can then check the status of this
background job using the jobs command. By default, the
job will complete when omxplayer Gnishes playing, but if
necessary, you can stop it at any point using the kill
command.
$ jobs
[1]- Running omxplayer --no-keys exam
$ kill %1
$
[1]- Terminated omxplayer --no-keys exam
NOTE
If you are not using the default pi user account, you need
to add your username to the video group, otherwise you
will see 'permission denied' errors.
Basic Usage
Enter the command fswebcam followed by a Glename
and a picture will be taken using the webcam, and saved
to the Glename speciGed:
fswebcam image.jpg
NOTE