x264

Qt开发笔记之编码x264码流并封装mp4(三):Qt使用x264库对.yuv文件编码为.h264文件

醉酒当歌 提交于 2019-12-12 08:44:54
若该文为原创文章,未经允许不得转载 原博主博客地址: https://blog.csdn.net/qq21497936 本文章博客地址: https://blog.csdn.net/qq21497936/article/details/103486861 目录 前言 YUV格式详解 概述 拓展 Yuv转rgb Rgb转Yuv H264编码 概述 功能 性价比 码率 帧数 MPEG-1压缩(H264位MPEG-1的第十部分) IPB帧 I帧:帧内编码帧 P帧:前向预测编码帧。 B帧:双向预测内插编码帧。 Demo的编码转换效果对比 关键代码 工程模板v1.1.0 参考 Qt 开发笔记之编码x264 码流并封装mp4 《 Qt开发笔记之编码x264码流并封装mp4(一):x264介绍、windows平台x264库编译 》 《 Qt开发笔记之编码x264码流并封装mp4(二):windows平台x264添加mp4支持,gpac库的介绍与编译 》 《 Qt开发笔记之编码x264码流并封装mp4(三):Qt使用x264库对.yuv文件编码为.h264文件 》 《Qt开发笔记之编码x264码流并封装mp4(四):mp4v2库的介绍和windows平台编译》:待发布 《Qt开发笔记之编码x264码流并封装mp4(五):ubuntu平台编译x264》:待发布

How to encode (ffmpeg x264) with continuous seek

你说的曾经没有我的故事 提交于 2019-12-11 22:08:36
问题 I have a batch file that encodes video files from 'Source' folder to 'Target' folder. The batch file content is: for %%a in ("Source*.*") do @echo DirectShowSource("%%a") >> "batchScript.avs" && @echo MSharpen(10,120) >> "batchScript.avs" && ffmpeg -i "batchScript.avs" -n -c:v libx264 -crf 24 -c:a libmp3lame -b:a 192k "Target\%%~na.mp4" && del "batchScript.avs" pause I'm not sure why, but when I playback the encoded files in media player classic I can only jump to discrete jumps in time and

How can I quantitatively measure gstreamer H264 latency between source and display?

a 夏天 提交于 2019-12-11 12:59:49
问题 I have a project where we are using gstreamer , x264, etc, to multicast a video stream over a local network to multiple receivers (dedicated computers attached to monitors). We're using gstreamer on both the video source (camera) systems and the display monitors. We're using RTP, payload 96, and libx264 to encode the video stream (no audio). But now I need to quantify the latency between (as close as possible to) frame acquisition and display. Does anyone have suggestions that use the

安装X264提示./configure: line 551: ./config.guess: Permission denied ./configure: line 554: ./config.sub

柔情痞子 提交于 2019-12-11 12:02:09
root@mingdi-desktop:/home/salman/V2.0/path/x264-snapshot-20191014-2245# chmod 764 ./config.guess root@mingdi-desktop:/home/salman/V2.0/path/x264-snapshot-20191014-2245# chmod 764 ./config.sub root@mingdi-desktop:/home/salman/V2.0/path/x264-snapshot-20191014-2245# ./configure --enable-shared --prefix=/usr 解决如下问题: ./configure: line 551: ./config.guess: Permission denied ./configure: line 554: ./config.sub: Permission denied 来源: CSDN 作者: 天巽夕 链接: https://blog.csdn.net/aa804738534/article/details/103489334

Cannot find yasm even though I have installed it

隐身守侯 提交于 2019-12-08 16:25:48
问题 I got a strange problem. I tried to install x264. When run sudo ./configure --enable-shared, it gave: Found no assembler Minimum version is yasm-0.7.0 If you really want to compile without asm, configure with --disable-asm. But I already installed yasm-0.7.0 ,to prove that ,i run yasm --version,it gave: * yasm 0.7.0.2066 Compiled on May 8 2012. Copyright (c) 2001-2008 Peter Johnson and other Yasm developers. Run yasm --license for licensing overview and summary. * I install yasm to /usr/local

x264 rate control modes

独自空忆成欢 提交于 2019-12-08 07:27:26
问题 Recently I am reading the x264 source codes. Mostly, I concern the RC part. And I am confused about the parameters --bitrate and --vbv-maxrate . When bitrate is set, the CBR mode is used in frame level. If you want to start the MB level RC, the parameters bitrate , vbv-maxrate and vbv-bufsize should be set. But I don't know the relationship between bitrate and vbv-maxrate . What is the criterion of the real encoding result when bitrate and vbv-maxrate are both set? And what is the recommended

libx264: which parameters can be changed on fly?

久未见 提交于 2019-12-08 06:45:38
问题 I know that it is possible to change some encoder parameters on fly, using x264_encoder_reconfig(). From this commit I can deduce that we can change ratecontrol parameters - but I was unable to find a clear list of parameters that may be changed. Question: which parameters of x264 encoder can be changed on fly? 回答1: You can look for the list of reconfigurable options in the source code of libx264 x264_encoder_try_reconfig function 来源: https://stackoverflow.com/questions/22981704/libx264-which

OpenCV binary deployment (Linux)

随声附和 提交于 2019-12-08 03:36:58
问题 In the institute we use Scientific Linux 5 on the cluster and I need to deploy an app that uses a modern OpenCV distribution (2.3.1 or 2.4.0). I don't have root privileges on the cluster. Essentially, how do I package all the dynamic binary dependencies of ffmpeg (and hopefully x264), opencv so that I can xcopy-deploy my app? I have a working installation of OpenCV 2.3.1 on Ubuntu. If there was a way to controllably load the executable and copy along all the dynamic dependencies, I could use

Writing numpy arrays using cv2 VideoWriter

安稳与你 提交于 2019-12-07 09:01:28
问题 I have a problem with writing a toy example video using opencv2.3.1 VideoWriter, here is how I do it: writer = cv2.VideoWriter('test1.avi',cv.CV_FOURCC('P','I','M','1'),25,(640,480)) for i in range(1000): x = np.random.randint(10,size=(480,640)).astype('uint8') writer.write(x) #del writer (with or without tested) I tried every possible combination resulting with a 0 bytes file if the extension was mpg, and 5.5kb if it was avi. I should say that some pointed out that I should build the ffmpeg

Android下玩JNI的新老三种姿势

落爺英雄遲暮 提交于 2019-12-06 08:30:20
请尊重原创,转载请注明出处: http://blog.csdn.net/mabeijianxi/article/details/68525164 (本文已在 hongyang 微信公众号发布) 说明:本篇不撸代码,只玩编译,其包含了Android studio 2.2最新的JNI玩法 编译环境:macOS 10.12.3 工具包含:Android Studio 2.2 NDK-r14 在Android下要玩jni首先下载ndk是必须的,可以直接去 https://developer.android.google.cn/ndk/downloads/index.html 下载,当然我们家AS为开发者也提供了便捷 只需如图勾选然后OK即可,我的版本是r14,值得一提的是 google ndk-build 命令在 r13 后默认使用 Clang ,并将在后续版本中移除 GCC ,其编译速度更快、编译产出更小、出错提示更友好。 一、徒手编写Android.mk然后ndk-build编译: 这种编译其实是用make工具来玩的,在 linux 徒手写并编译过c的应该很清楚,通过编写makefile,然后再用make编译已经比不停的用gcc命令逐个编译要爽很多,但是 makefile 的编写还是有点蛋疼。程序员都是化繁为简善解人意的,通过 ndk 工具我们无需自己写 makefile 了