x264

How to write a Live555 FramedSource to allow me to stream H.264 live

杀马特。学长 韩版系。学妹 提交于 2019-12-02 19:41:21
I've been trying to write a class that derives from FramedSource in Live555 that will allow me to stream live data from my D3D9 application to an MP4 or similar. What I do each frame is grab the backbuffer into system memory as a texture, then convert it from RGB -> YUV420P, then encode it using x264, then ideally pass the NAL packets on to Live555. I made a class called H264FramedSource that derived from FramedSource basically by copying the DeviceSource file. Instead of the input being an input file, I've made it a NAL packet which I update each frame. I'm quite new to codecs and streaming,

X264 Error message when capturing video

旧时模样 提交于 2019-12-02 06:33:52
I'm writing a program to save some webcam video to a file. I'm using the x264 codec found here x264 When I try writing frames to a file I get this error message poping up. x264vfw [warning]: Few frames probably would be lost. Ways to fix this: x264vfw [warning]: -if you use VirtualDub or its fork than you can enable 'VirtualDub Hack' option x264vfw [warning]: -you can enable 'File' output mode x264vfw [warning]: -you can enable 'Zero Latency' option I found this VirtualDub Hack but then I'm not using virtual dub. I'm not sure what the File output mode and zero latency mean. I think the problem

(原)理解码率控制模式(x264,x265,vpx)

為{幸葍}努か 提交于 2019-12-02 02:37:39
理解码率控制模式 (x264,x265,vpx) 原文链接: https://slhck.info/video/2017/03/01/rate-control.html 翻译: lihaiping1603@aliyun.com 前言: Variable vs. Constant Bitrate ( 可变码率和固定码率 ) 简单地说, VBR 让编码器为 难编码的图像使用更大的 bits ,而为能简单压缩的节约 bits. 那对于编码压缩什么是简单和难的呢?如果一个视频中存在大量运动,那么视频中相邻的视频图像帧之间的差异就会更大。同时, 高空间细节和复杂的纹理也很难编码 。 你的编码场景是什么? 1, 归档 ( 存储 ) :这种场景我们可能要求 文件 的大小 应该在尽可能小 的体积 下具有尽可能好的质量,但是您并不关心确切的大小 。 2, 流: 您希望通过 Internet 发送文件,使用典型的视频点播 (VoD) 流媒体解决方案,如 HTTP 渐进下载或 HTTP 自适应流媒体。您需要确保文件不超过特定的比特率,或者您需要以不同的名义比特率提供相同文件的不同表示 ( 用于自适应流 ) 。 3, 实时流媒体 ( 直播 ): 你希望尽快的完成编码,同时你也事先对视频内容未知。 4, 编码设备: 你想把你的文件做成 DVD ,蓝光等等。您希望确保文件最终具有特定的大小 。 码率控制模式

Compiling x264 for iOS 7

吃可爱长大的小学妹 提交于 2019-12-01 10:55:56
I'm getting error on compiling x264 for iOS. I have Xcode Version 5.0 (5A1413) with Apple LLVM version 5.0 (clang-500.2.75) (based on LLVM 3.3svn). I'm compiling x264-snapshot-20130925-2245. Config: CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang ./configure \ --host=arm-apple-darwin \ --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk \ --prefix=armv7 \ --extra-cflags='-arch armv7' \ --extra-ldflags="-L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer

Compiling x264 for iOS 7

爱⌒轻易说出口 提交于 2019-12-01 09:15:40
问题 I'm getting error on compiling x264 for iOS. I have Xcode Version 5.0 (5A1413) with Apple LLVM version 5.0 (clang-500.2.75) (based on LLVM 3.3svn). I'm compiling x264-snapshot-20130925-2245. Config: CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang ./configure \ --host=arm-apple-darwin \ --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk \ --prefix=armv7 \ --extra-cflags='-arch armv7' \

H264 Encoders other than ffmpeg x264

爱⌒轻易说出口 提交于 2019-11-30 19:35:45
The iPhone app I am working on captures images in series within certain user-defined time interval, I am looking for a way to combine these images into H264 encoded videos. I have done some research on Google, it looks like I will have to use something like ffmpeg/mencoder on iPhone? (Also found someone ported ffmpeg to iPhone, ffmpeg4iPhone) However, I found that x264 is under GPL license, and requires me to open source my project if I use ffmpeg. Also found some people suggested to use Ogg Theora, but I will need to port it to iPhone if I use it. (Which I am not sure how to do it now). Is

How to get h264 video info?

跟風遠走 提交于 2019-11-30 12:57:24
问题 How can I get specific h264 video information from video file? I need to know profile (Baseline/Main/High) and is there B-Frames in movie? 回答1: I've found out that the best way for this is using FFprobe with -show_streams parameter. It shows both h.264 profile and B-frames usage for video streams of the movie. ffprobe -show_streams -i "file.mp4" [STREAM] index=0 codec_name=h264 codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 profile=High codec_type=video codec_time_base=1001/48000

移植ffmpeg至海思平台

跟風遠走 提交于 2019-11-30 12:03:43
一、xvid、x264、ffmpeg源码下载 链接:https://pan.baidu.com/s/13phSFrLqkGrKDGF3_a2cSA 提取码:ls2s 二、交叉编译 1. xvid tar zxvf xvidcore-1.3.3.tar.gz cd xvidcore/build/generic ./configure --prefix=/home/workspace/arm_soft/ --host=arm-hisiv100nptl-linux --target=arm-linux make -j 8 make install xvidcore-1.1.3这个版本有点问题,后面编译ffmpeg的时候会提示找不到 libxvid,但还是记录下。 make 出现错误 root@chenwr-pc:/home/workspace/soft/ffmpeg/xvidcore-1.1.3/build/generic# make D: =build C: ./decoder.c cc1: error: unrecognized command line option "-freduce-all-givs" 编辑configure 搜索freduce 这两处屏蔽掉 make -j 8 make install 2. x264 tar jxvf last_x264.tar.bz2 cd

How to encode h.264 with libavcodec/x264?

本秂侑毒 提交于 2019-11-30 10:16:18
问题 I am attempting to encode video using libavcodec/libavformat. Audio works great, but when I try to encode video I get the following errors: [libx264 @ 0x10182a000]broken ffmpeg default settings detected [libx264 @ 0x10182a000]use an encoding preset (vpre) easy to fix using the command line ffmpeg, but I am trying to do this in C. my options are AVStream *pVideoOutStream = av_new_stream(pOutFormatCtx, 0); AVCodecContext *pVideoOutCodecCtx = pVideoOutStream->codec; pVideoOutCodecCtx->codec_id =

h264 RTP timestamp

天涯浪子 提交于 2019-11-30 07:34:01
I have a confusion about the timestamp of h264 RTP packet. I know the wall clock rate of video is 90KHz which I defined in the SIP SDP. The frame rate of my encoder is not exactly 30 FPS, it is variable. It varies from 15 FPS to 30 FPS on the fly. So, I cannot use any fixed timestamp. Could any one tell me the timestamp of the following encoded packet. After 0 milisecond encoded RTP timestamp = 0 (Let the starting timestamp 0) After 50 milisecond encoded RTP timestamp = ? After 40 milisecond encoded RTP timestamp = ? After 33 milisecond encoded RTP timestamp = ? What is the formula when the