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

- Teach you how to ensure password security under the Linux operating system (Linux)

- CentOS 7 version how to achieve the power to start the graphical interface (Linux)

- Docker startups use continuous integration deployment (Server)

- The difference Docker save and export commands (Linux)

- Run Windows in FreeBSD bhyve (Linux)

- Ubuntu derivative version of the user and how to install SmartGit / HG 6.0.0 (Linux)

- Lua non-blocking write log (Programming)

- Talking about the implementation and the JVM garbage collection mechanism (Programming)

- Linux system security settings after installation (Linux)

- Linux operating system security settings initial understanding (Linux)

- C # compiler to achieve functional use in the runtime (Programming)

- HTML5 Application Cache (Programming)

- Internet proxy workaround can not be used under Linux YUM (Linux)

- Create Your Own Docker base image in two ways (Linux)

- C ++ sequence containers basics summary (Programming)

- Create and modify Oracle temporary table space (Database)

- Simple to install Tor browser to Ubuntu 14.04 and Linux Mint 17 (Linux)

- java.net.NoRouteToHostException of Hadoop problem: no route to host (Server)

- The text formatting tools awk Linux system (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.
- Oracle 11g manually create a database (Database)
- Linux 6 use UDEV binding shared storage (Linux)
- How to upgrade to Ubuntu 14.04 Linux Kernel 4.4.1 LTS (Linux)
- RVM installation instructions (Linux)
- Ten minutes to find out the character set and character encoding (Linux)
- CentOS 6 / Linux su: Unable to set user ID: Resource temporarily unavailable (Linux)
- Oracle 11gr2 new APPEND_VALUES tips (Database)
- Java logging performance of those things (Programming)
- Linux more command Detailed (Linux)
- C language keywords Comments (Programming)
- Linux System Tutorial: How to browse the Linux command line, weather forecast (Linux)
- Linux Network Programming - raw socket instance: MAC header message analysis (Programming)
- Analysis of memory mapping process in Linux x86-64 mode (Linux)
- CentOS7 complete step to install Hadoop2.7 (Server)
- xCAT line installation on CentOS 6.X (Linux)
- Modify MySQL character encoding under Linux (Database)
- Text analysis tools - awk (Linux)
- STL in the list of erase () method (Programming)
- Valgrind * not * leak check tool (Linux)
- SQLite (Database)
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.