othercrashoverride / c2cap Goto Github PK
View Code? Open in Web Editor NEWCommand line video capture with hardware accelerated h264 compression.
Command line video capture with hardware accelerated h264 compression.
c2cap - Captures video from a V4L2 device and compresses it to a h264 bitstream using the S905 hardware codec. Usage: ./c2cap [-d v4l2_device_name] [-o output_file_name] Captures and writes a h264 bitstream. V4L2_device_name can be any capture device that supports YUYV surfaces. The special file_name "-" outputs to stdout instead of a file. This is useful for piping the data to another program such a ffmpeg. If no V4L2 device is specified, the default of "/dev/video0" is used. If no output file is specified, "default.h264" is used. The h264 bitstream output does *not* include framerate information. This will need to specified in the container when muxing. test_main() illustrates the simplest use of the API taking a single image and converting it to a h264 bitstream. The image must be in NV12 format. The following command can be used to onvert an image to NV12 format: ffmpeg -i maxresdefault.jpg -pix_fmt nv12 maxresdefault.yuv
odroid@odroid:~/ivis-codec/c2cap$ g++ -g main.cpp -o c2cap -l vpcodec
main.cpp: In function 'int main(int, char**)':
main.cpp:1231:15: error: 'tjDecompressHeader3' was not declared in this scope
int api = tjDecompressHeader3(jpegDecompressor,
^~~~~~~~~~~~~~~~~~~
main.cpp:1231:15: note: suggested alternative: 'tjDecompressHeader'
int api = tjDecompressHeader3(jpegDecompressor,
^~~~~~~~~~~~~~~~~~~
tjDecompressHeader
main.cpp:1251:33: error: 'tjBufSizeYUV2' was not declared in this scope
unsigned long jpegYuvSize = tjBufSizeYUV2(jpegWidth,
^~~~~~~~~~~~~
main.cpp:1251:33: note: suggested alternative: 'tjBufSizeYUV'
unsigned long jpegYuvSize = tjBufSizeYUV2(jpegWidth,
^~~~~~~~~~~~~
tjBufSizeYUV
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.