Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

decode problem #9

Open
royaalto opened this issue Aug 21, 2018 · 7 comments
Open

decode problem #9

royaalto opened this issue Aug 21, 2018 · 7 comments

Comments

@royaalto
Copy link

I use bosch camera, and use your code from http://www.cnblogs.com/ansersion/p/5208845.html
我使用bosch的摄像头本来想用这个代码先解码 再编码为mjpeg,后面发现图片出来只有一半,然后我就用你代码SDL2显示了一下解码的图像,结果图像只有一半,请问这是怎么回事呢

@royaalto
Copy link
Author

感觉很像很多数据丢失了

@Ansersion
Copy link
Owner

  1. 你用的是complete_example吗?
  2. 有没有异常打印,如果有的话,能不能截一段给我?
  3. 在rtspClient.cpp的GetVideoData函数(大概在1930行左右),
    其中有一句:“NT = NALUTypeBaseTmp->ParseNALUHeader_Type(VideoBuffer.Buf);”
    能不能帮忙打印一下这个整数“NT”的值是多少?

@Ansersion
Copy link
Owner

https://www.cnblogs.com/ansersion/p/5079758.html#comments
评论区里有一种丢数据的情形以及解决方法,你看看是否管用。

@royaalto
Copy link
Author

modify rtcpdump.cpp:
transParams.SetRTPReceiveBuffer(1920*1024*4);
transParams.SetRTCPReceiveBuffer(1920*1024*4);
myRTPsession.h:
#define USLEEP_UNIT 500

it doesnot help

@royaalto
Copy link
Author

am I missing something?

@royaalto
Copy link
Author

NT value:
___________NT_________28
___________NT_________28
___________NT_________28
___________NT_________28
___________NT_________28
___________NT_________28
___________NT_________6
___________NT_________28
___________NT_________28
___________NT_________28
___________NT_________28
___________NT_________28
___________NT_________28
___________NT_________6

@Ansersion
Copy link
Owner

complete_example会收集视频并写入文件test_packet_recv.h264。
方便的话,麻烦用complete_example收集10-15秒的视频并把test_packet_recv.h264发送到我的邮箱:[email protected],然后截一张“一半图片”的样子和一张“完整图片”的样子。我看一下是什么问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants