Closed menglingbo closed 8 months ago
经常dump在 libflv/source/mpeg4_h264_read_ue函数的assert(leadingZeroBits < 32);这个地方
把原始H264文件也上传下?
nalutype序列 如果是这个样子的,7 8 5 1 1 21 1 1 1 1 1 21 1 1 1 1 1会有这个问题,我把21 扔掉就可以了
21 Coded slice extension for a depth view component or a 3D-AVC texture view component slice_layer_extension_rbsp( )
源文件是3D流吗?
不确定是不是3D流,通过ffprobe看到这些信息 Metadata: title : VCP IPC Realtime stream Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: h264 (High), yuv420p(progressive), 1280x720, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1: Audio: pcm_mulaw, 8000 Hz, 1 channels, s16, 64 kb/s Stream #0:2: Data: none
mov_writer-h264.cpp只支持264裸流文件, 如果是带音频的文件, 需要单独处理.
void h264_handler(void param, const uint8_t nalu, size_t bytes,long long llTs) { static uint8_t startcode[] = {0x00, 0x00, 0x00, 0x01}; va_mov ctx = (va_mov)param;
}
int h264_write(va_mov ctx, const void data, int bytes,long long llTs) { int vcl = 0; int update = 0; uint8_t ptr=( uint8_t )data;
}
https://github.com/ireader/media-server/assets/5715627/e68ad5dc-f0a1-48e2-8fd1-2214d21c7220
https://github.com/ireader/media-server/assets/5715627/8d048e0e-0d5e-431b-8697-01738c3566f8