x264

Windows: How to build X264.lib instead of .dll

我的未来我决定 提交于 2019-12-03 21:13:14
I downloaded the X264 source and installed mingw. Step 1: Executed this in the MINGW bash: ./configure --disable-cli --enable-shared --enable-win32thread - -extra-ldflags=-Wl,--output-def=libx264.def and then 'make' Step 2: Renamed the libx264-142.dll to libx264.dll and Opened up VS2012 Command Prompt and executed this: LIB /DEF:libx264.def which gave me libx264.lib and object libx264.exp Step 3: Included the lib file in a VS2012 project which uses the X264 API. Problem: When I start the project I get the following error message: "The program can't start because libx264.dll is missing from

Trouble syncing libavformat/ffmpeg with x264 and RTP

[亡魂溺海] 提交于 2019-12-03 10:48:09
问题 I've been working on some streaming software that takes live feeds from various kinds of cameras and streams over the network using H.264. To accomplish this, I'm using the x264 encoder directly (with the "zerolatency" preset) and feeding NALs as they are available to libavformat to pack into RTP (ultimately RTSP). Ideally, this application should be as real-time as possible. For the most part, this has been working well. Unfortunately, however, there is some sort of synchronization issue:

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

[亡魂溺海] 提交于 2019-12-03 07:08:19
问题 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

undefined reference to `x264_encoder_open_125'

匿名 (未验证) 提交于 2019-12-03 03:08:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: While installing ffmpeg on Ubuntu 12.04 I am getting following error libavcodec/libavcodec.a(libx264.o): In function `X264_init': /root/ffmpeg/libavcodec/libx264.c:492: undefined reference to `x264_encoder_open_125' collect2: ld returned 1 exit status make: *** [ffmpeg_g] Error 1 I am following the instructions given at http://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide Do anyone have idea about this error? 回答1: This is a typical problem for people who already have x264 installed through the package management system. You can solve

Writing x264 from OpenCV 3 with FFmpeg on Linux

匿名 (未验证) 提交于 2019-12-03 02:00:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm having trouble writing h264 video with OpenCV 3 via FFmpeg ("'X','2','6','4'" FOURCC). I've seen all the related posts so far on SO, but nothing helps. Code: cv::VideoWriter writer(output_path.string(), CV_FOURCC('X','2','6','4'), 60, frame_size); Output: OpenCV: FFMPEG: tag 0x34363258/'X264' is not supported with codec id 28 and format 'mp4 / MP4 (MPEG-4 Part 14)' OpenCV: FFMPEG: fallback to use tag 0x00000021/'!???' The resulting video is extremely small (byte-wise) and unreadable. Setting the four_cc to -1 results in "unknown tag"

Setting/Installing up OpenCV 2.4.6.1+ on Ubuntu 12.04.02

匿名 (未验证) 提交于 2019-12-03 01:58:03
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I had previously used OpenCV 2.4.5 with some certain configs and packages on Ubuntu 12.04.1 but had issues upgrading to OpenCV 2.4.6.1 on Ubuntu 12.04.2 I would like to share some ideas (a compilation of noteworthy information gathered from several sources including SO, ubuntu.org, asklinux.org and many other; and of course by trying several procedures) Below is what eventually got me through. NOTE: ensure you uninstall any previous installation of OpenCV, FFMpeg and other dependencies previously installed. STEP 1 (install ffmpeg and

H264: decode series of nal units with ffmpeg

﹥>﹥吖頭↗ 提交于 2019-12-03 00:49:21
I tried to decode a series of nal units with ffmpeg (libavcodec) but I get a "no frame" error. I produced the nal units with the guideline at How does one encode a series of images into H264 using the x264 C API? . I tried the following strategy for decoding: avcodec_init(); avcodec_register_all(); AVCodec* pCodec; pCodec=lpavcodec_find_decoder(CODEC_ID_H264); AVCodecContext* pCodecContext; pCodecContext=lpavcodec_alloc_context(); avcodec_open(pCodecContext,pCodec); AVFrame *pFrame; pFrame=avcodec_alloc_frame(); //for every nal unit: int frameFinished=0; //nalData2 is nalData without the first

x264编码器的参数设置。

匿名 (未验证) 提交于 2019-12-03 00:27:02
我对编码也是一知半解,很多参数意义也不太清楚,基本都是实际调整参数后,观看效果。如果描述错误,勿喷。 我也没打算深入研究,只是想用用该编码器。 本人使用x264主要想调整的参数, 第一,profile,也就是使用baseline还是main,还是high编码。 可以通过该接口设置 x264_param_apply_profile(); 第二, 编码复杂度 param.i_level_idc=30; 第三,图像质量控制 rc.f_rf_constant是实际质量,越大图像越花,越小越清晰。 param.rc.f_rf_constant_max ,图像质量的最大值。 第四, 码率控制 一开始我使用恒定码流设置,无论我怎么设置,都无法控制实际码流,后来换成平均码流后,就行了。 param.rc.i_rc_method = X264_RC_ABR;//参数i_rc_method表示码率控制,CQP(恒定质量),CRF(恒定码率),ABR(平均码率) x264使用的bitrate需要/1000。 第五,使用实时视频传输时,需要实时发送sps,pps数据 该参数设置是让每个I帧都附带sps/pps。 第六. I帧间隔 我是将I帧间隔与帧率挂钩的,以控制I帧始终在指定时间内刷新。 以下是2秒刷新一个I帧 第七,编码延迟 在使用中,开始总是会有编码延迟

Trouble syncing libavformat/ffmpeg with x264 and RTP

穿精又带淫゛_ 提交于 2019-12-03 00:21:10
I've been working on some streaming software that takes live feeds from various kinds of cameras and streams over the network using H.264. To accomplish this, I'm using the x264 encoder directly (with the "zerolatency" preset) and feeding NALs as they are available to libavformat to pack into RTP (ultimately RTSP). Ideally, this application should be as real-time as possible. For the most part, this has been working well. Unfortunately, however, there is some sort of synchronization issue: any video playback on clients seems to show a few smooth frames, followed by a short pause, then more

Mplayer ww 版本 SVN-r37370-ffmpeg n2.5.3 gcc 4.5.1

匿名 (未验证) 提交于 2019-12-02 23:57:01
缘起于更换工作环境到新的工作站,于无意中发现旧硬盘里的相关代码,又用着potplayer不爽。想着WW版自从2015年就不开始更新了… 神不在我们身边,所以朝圣的路很远,何不我自成神? 距mplayer最新的SVN版本还有700多个版本……等这些版本编译正常时,将把各种第三方库及GCC进行再一次更新……在此之前,请慢慢等待…不定时更新 根据Mplayer ww 版本 最后一个版本2015年的r37356 做了更新 SVN-r37370-ffmpeg n2.5.3 gcc 4.5.1 FFMPEG由n2.5-〉n2.5.3 下载地址: 链接:https://pan.baidu.com/s/1aQyKFy7fFlSHrpXNTFOD4w 提取码:hfp8 库及编译环境: glib_2.28.1 pkg-config_0.23-3 libintl-8 * compiler flags: -O3 -s -mms-bitfields -march=i386 -mtune=i686 mingw-full-20160707 * libtool-2.4.6 * autoconf-2.69 * automake-1.15 * m4-1.4.17 * binutils-2.26.1 * gmp-6.1.1 * mpfr-3.1.4 * mpc-1.0.3 mingw-full-20160704 *