Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ Achieve camera preview by ffplay     - MySQL partition summary (Database)

- C / C ++ language usage summary of const (Programming)

- Linux Creating a new user error Creating mailbox file: File exists (Linux)

- AIX system file security aspects (Linux)

- Memcached distributed caching (Server)

- RabbitMQ user roles and access control (Linux)

- Linux common network tools: batch scanning of nmap hosting service (Linux)

- Applications Linux leap second problem caused (Linux)

- CentOS 6.5_x64 install Oracle 11g R2 (Database)

- Oracle 11g user rights management study notes (Database)

- Vim configuration instructions (Linux)

- How to Install Xombrero 1.6.4 (minimalist Web browser) on Ubuntu and Archlinux (Linux)

- MySQL master recovery from failure using binlog (Database)

- Ubuntu terminal command - see the port occupied and off (Linux)

- OpenGL Superb Learning Notes - GLSL language foundation (Programming)

- MongoDB polymerization being given (Database)

- C ++ why we chose to use the smart pointer (Programming)

- OpenGL Superb Learning Notes - Depth Texture and Shadows (Programming)

- Linux protobuf-c (Linux)

- The script Linux command (Linux)

  Achieve camera preview by ffplay
  Add Date : 2018-11-21      
  Hardware platform: Jetson TK1 Development Board (NVIDIA Tegra K1 Mobile Processor 32bit), Ningbo Sunny electric SP103A (OV16825) Module
Software platform: Ubuntu / Linaro 4.8.2-16ubuntu4 (Linux version 3.10.40 32bit)

Camera driver has been achieved, support v4l2 interface.

First, install the SDL library for the first time by the SDL-1.2.14 version of the source code for the install, always prompt when using SDL initialization failed. Second to enter the command "sudo apt-get remove libsdl1.2debian", "sudo apt-get install libsdl1.2-dev", and then install the SDL-1.2.15 source code to solve the problem through.

Then install x264, relatively simple steps
$ Git clone git: //git.videolan.org/x264.git
$ Cd x264
$. / Configure
$ Make
$ Sudo make install

Finally install ffmpeg, via git to download the latest version of the official website, the current version is version 2.8, by configure --enable-memalign-hack --enable-static, make, sudo make install to install it.

Our drive output is the raw sensor data for bayer raw10 format, each color occupying 16bit, only the lower 10 bits are valid data, order bggr. ffmpeg original code is not supported raw10, we need to make some modifications. Original code support bayer raw8 and bayer raw16, because bayer raw10 and bayer raw16 occupies two bytes are the same, so we refer bay raw16 modified. First ff_fmt_conversion_table in libavdevice / v4l2-common.c in an increase, where we directly borrowed raw16 format in the application process seems raw10 as raw16 use V4L2_PIX_FMT_SBGGR10 when v4l2 interface calls.


For raw16, currently code libswscale / bayer_template.c in BAYER_SHIFT set to 8, indicating that the lower 8 bits directly discarded because raw10 can only give up two low, so we will BAYER_SHIFT to 2.

To facilitate debugging can libavutil / log.c in av_log_level into AV_LOG_TRACE from AV_LOG_INFO, output for more information.

After finish the above changes recompile, install ffmpeg, then use the command "ffplay -f v4l2 -input_format bayer_bggr16le -video_size 4608x3456 -i / dev / video0" preview can be achieved, or if prompted SDL initialization fails, you can enter the shell DISPLAY =: 0 export DISPLAY command and set about DISPLAY.
- Go powerful development server simple example (Server)
- Getting Started with Linux system to learn: how to install USB webcams come in raspberry (Linux)
- Linux file compression and archiving (Linux)
- Mac OS X 10.10 Yosemite compiling OpenJDK 9 (Linux)
- MongoDB 2.6 deployment replica set + partitions (Database)
- CentOS7 boot systemd introduction and use of management (Linux)
- Comparison of sorting algorithms (Programming)
- Security implementation of disk data protection under Linux (Linux)
- The ORA-01113 error is handled with BBED without archiving (Database)
- Caffe install under Ubuntu 14.04 64bit (Linux)
- To achieve Linux Security (Linux)
- Oracle Sql Loader tool has shown signs (Database)
- Radius server setup under CentOS (Server)
- Oracle DataGuard principles and basic configuration (Database)
- DVD production using CentOS installation source within the company Yum (Linux)
- Firewall settings oracle remote connection in Linux systems (Linux)
- Linux network security probing tools Hping2 (Linux)
- vnStatSVG: traffic monitoring software vnStat (Linux)
- Ceph single / multi-node installation summary Powered by CentOS 6.x (Server)
- Apache Web Security Linux systems (Linux)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.