- 博客(8)
- 资源 (2)
- 问答 (1)
- 收藏
- 关注
原创 封装264和aac两路流为MP4文件问题记录
1.aac文件使用avformat_write_header函数写不进去,发现MP4需要的是aac的裸流。因此需要AVBitStreamFilterContext* aacbsfc = av_bitstream_filter_init("aac_adtstoasc");2.生成的MP4文件系统自带的windows播放不出,但是vlc和ffplay能播放出来,使用Mp4Explorer.exe也打不开其格式。后来发现是MP4 moov box中的avcc box为空导致。最终通过以下代码解决。
2023-09-27 17:12:26
190
1
转载 从wireshark中保存264流至文件
转载地址:https://blog.youkuaiyun.com/jasonhwang/article/details/7359095使用文中第一个版本,发现wireshark中的流若有0x00则被截断保存到264文件中,因此稍微修改一下代码。 -- Dump RTP h.264 payload to raw h.264 file (*.264)-- According to R...
2018-08-24 14:26:14
1677
原创 QT学习笔记1
#ifndef QTTSTSTAGE2_H#define QTTSTSTAGE2_H#include #include "ui_qttststage2.h"class qtTstStage2 : public QWidget, public Ui::GoToCellDialog{ Q_OBJECTpublic: qtTstStage2(QWidget *parent = 0);
2016-12-28 16:42:24
258
原创 64位整型和字符串转换
字符串转64位整型__int64 atoi64_t(char *arrTmp){ int len =0; int i=0; int j =0; __int64 nTmpRes =0; __int64 ntmp10=1; if (arrTmp == NULL) { return 0; } len=strlen(arrTmp); for (i =len-1 ; i >=
2016-12-14 11:00:50
8279
原创 用directshow 获取摄像头名称
CameraInfo.cpp #include "CameraInfoDef.h"#include "CameraInfo.h";const struct PixelFormatTag *avpriv_get_raw_pix_fmt_tags(void);enum AVPixelFormat avpriv_find_pix_fmt(const PixelF
2016-10-27 10:40:29
1931
原创 然ffmpeg支持h264编解码--环境vs2005
1.1 FFMPEGFFmpeg是一个开源免费跨平台的视频和音频流方案,属于自由软件,采用LGPL或GPL许可证(依据你选择的组件)。它提供了录制、转换以及流化音视频的完整解决方案。它包含了非常先进的音频/视频编解码库libavcodec,为了保证高可移植性和编解码质量,libavcodec里很多codec都是从头开发的。1.1.1 编译FFmpeg库网站上提供FFmpeg库都是v
2016-10-25 10:52:21
1099
原创 简单写一个加入组播组接收到数据的代码
#include #include #include #pragma comment (lib, "ws2_32.lib")DWORD WINAPI ThreadProc1 (PVOID pParam) { SOCKET *socketFd = (SOCKET *)pParam; if (socketFd ==NULL) { printf("ThreadPr
2016-08-04 16:53:42
2156
原创 基于ffmpeg摄像头采集编码成264码流
// 获取摄像头名字//Show Dshow Devicevoid show_dshow_device(){ AVFormatContext *pFormatCtx = avformat_alloc_context(); AVDictionary* options = NULL; av_dict_set(&options,"list_devices","true",0);
2016-03-10 10:51:53
428
帮忙指导下,h264编解码问题,关于zerolatency设置问题。
2016-11-23
TA创建的收藏夹 TA关注的收藏夹
TA关注的人