星期二, 2月 16, 2016

ffmpeg parser libx264資料


  • FFMPEG结构体分析:AVFormatContext

http://blog.csdn.net/leixiaohua1020/article/details/14214705
  • 使用FFMPEG类库分离出多媒体文件中的H.264码流

http://blog.csdn.net/leixiaohua1020/article/details/11800877

  • FFmpeg的H.264解码器源代码简单分析:解析器(Parser)部分

http://blog.csdn.net/leixiaohua1020/article/details/45001033


  •  最简单的视频编码器:基于libx264(编码YUV为H.264)

http://blog.csdn.net/leixiaohua1020/article/details/42078645



  • 下載x264 程式碼

  1. git clone git://git.videolan.org/x264.git  
YASM Setup
Download YASM executable from ​http://yasm.tortall.net/Download.html. You have to download the "general use" binaries and NOT the ones for VS2010. Either Win32 or Win64 binaries support outputting object files for both architectures so that should not matter. The last tested version was yasm-1.3.0-win64.exe.
Rename the downloaded executable to yasm.exe and place it in your MSYS2 path. E.g.C:\msys64\usr\bin\yasm.exe.
  • 到codelite設定一下路徑



  •  問題: codelite中,debugger有時候會不work,到設定中修改automatically set...就可以除錯


  • 問題: 在編譯完後執行後產生不出來h264檔案,x264_encoder_encode函式傳回值為0, pNals, iNal值也為0,原因為多執行緒 delay encode的問題,如下:
http://blog.sina.com.cn/s/blog_51396f890102f061.html
到程式39行,新增一行
  pParam->i_threads  = 1;
強制thread為1就解決delay encode的問題,但是效能會比較差。

沒有留言: