vlc 에서 pps 와 sps 를 받 지 못 했 습 니 다.
디코더 가 처음 인 코딩 을 실 행 했 을 때 만 SPS, PPS, I 를 인 코딩 했 기 때 문 입 니 다.Frame;
h264 packetizer has set so, that it sends sps/pps only first keyframe,
I'm trying to figure what breaks if that is changed so sps/pps is written in every keyframe.
[ | http://trac.videolan.org/vlc/ticket/1384]
해결 방법:
1. 인 코더 가 모든 관건 적 인 프레임 에 SPS, PPS 를 인 코딩 하 는데 보통 인 코더 가 만 든 SPS, PPS 가 똑 같 기 때문에 이런 방법 은 자원 을 소모 한다 고 합 니 다.
2. 서버 에서 클 라 이언 트 요청 을 받 았 을 때 첫 번 째 package 에 SPS, PPS 를 보 냅 니 다.
구체 적 으로 다음 과 같다.
1. 있다 VideoOpenFileSource 변 수 를 추가 합 니 다 isFirst Frame;
2. 구조 시 isFirst Frame = true 초기 화;
3. int 에서 VideoOpenFileSource:: readFromBufferChain () 수정 은 다음 과 같 습 니 다.
1 if(isFirstFrame == true)
2 {
3 memcpy(fTo, h264_header, sizeof(h264_header)); /* h264_header = pps +sps*/
4 offset = sizeof(h264_header);
5 framesize = BufferChain_get(fInput.video_bufs, fTo + offset);
6 offset += framesize;
7 isFirstFrame = false;
8 printf("this is the first fime
");
9 sleep(1);
10 }
11 else
12 {
13 framesize = BufferChain_get(fInput.video_bufs, fTo + offset);
14 offset += framesize;
15 }
1
[http://topic.csdn.net/u/20100801/17/ef35e664-92ff-4144-a35f-3984dcf11da3.html| ]
========================================================================
sdp pps sps :
packetization-mode , NALU (0); (non-interleaved) (1); (interleaved) (2)
sprop-parameter-sets H.264 NAL ,base64 ;( = sps+pps)
profile-level-id H.264 profile 。
www.cppblog.com/czanyou/
ffmpeg decode pps sps :
stackoverflow.com/questions/3493742/problem-to-decode-h264-video-over-rtp-with-ffmpeg-libavcodec/3500432#3500432
http://hi.baidu.com/yuan07804017/blog/item/a4f54e3ee4d3d0c99e3d624f.html
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
Docker를 사용한 React 및 .NET Core 6.0 샘플 프로젝트 - 1부이 기사에서는 Entity Framework Core Code First 접근 방식을 사용하는 ASP.NET Core 6.0 WEP API의 CRUD(만들기, 읽기, 업데이트 및 삭제) 작업에 대해 설명합니다. 웹 ...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.