Raspberry Pi operating video

Currently offers four applications: raspistill, raspivid, raspiyuv and raspividyuv.

raspistill and raspiyuv very similar, for capturing images;

raspivid and raspividyuv for capturing video.
All applications are run on the command line, it is written by OpenMAX of mmal API.

OpenMAX mmal API provides the system components easier to use. Note, mmal is a system by the Broadcom as Videocore 4 custom API

Raspberry Pi video operation
Raspberry Pi save video raspivid
save video as h264 format
raspivid 30000 -Vs -o -t -> v0.h264
1
save 30s of video encoding h264

Raspberry Pi video format conversion MP4Box
video saved raspivid will usually recorded as .h264 format files, and we use a lot of players may not play the video file format normal. This .h264 format file we need to generate the packaged container format to the video player can be identified (such as the package is mp4 format). There are a lot of video processing software can achieve this purpose, you can also directly encapsulated directly on the Raspberry Pi. Presented here is "gpac" in "MP4Box". The method of installation and use is as follows:

APT-GET Update the sudo
the sudo the install APT-GET GPAC

MP4Box -add filename.h264 filename.mp4
. 1
2
. 3
. 4
Raspberry Pi play video omxplayer
// 1. Installation omxplayer
the sudo the install APT-GET omxplayer
// 2. formats and playback h264 mp4 format video
omxplayer example.mp4
omxplayer /opt/vc/src/hello_pi/hello_video/test.h264
----------------
Disclaimer: This article is CSDN blogger "simon Xi" the original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
Original link: https: //blog.csdn.net/simonforfuture/article/details/80013808

 

Guess you like

Origin www.cnblogs.com/cloudrivers/p/11444341.html