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

用rtsp拉流然后转换成hls推流,用vlc播放显示时间轴在动但是没有画面 #54

Open
mijjjj opened this issue Sep 23, 2022 · 6 comments

Comments

@mijjjj
Copy link

mijjjj commented Sep 23, 2022

用rtsp拉流然后转换成hls推流,用vlc播放显示时间轴在动但是没有画面。使用rtsp地址播放则正常。
流地址使用的是海康威视的PTZ摄像头。
使用默认提供的rtsp地址则 stsp和hls都播放正常

@langhuihui
Copy link
Member

用ffplay播放一下hls试试呢,此外可以访问接口 /api/stream?streamPath= xxxxx 看一下流数据是否正常(xxxxx换成你的流地址)

@mijjjj
Copy link
Author

mijjjj commented Sep 23, 2022

ffplay播放提示
image
api接口显示
image

@langhuihui
Copy link
Member

这个详情能贴出文本格式吗

@mijjjj
Copy link
Author

mijjjj commented Sep 23, 2022

[h264 @ 000002970c367540] no frame!
[NULL @ 000002970c360680] missing picture in access unit with size 6692
[h264 @ 000002970c367b00] data partitioning is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[h264 @ 000002970c367b00] If you want to help, upload a sample of this file to https://streams.videolan.org/upload/ and contact the ffmpeg-devel mailing list. ([email protected])
[h264 @ 000002970c367b00] no frame!
[NULL @ 000002970c360680] missing picture in access unit with size 5906
[h264 @ 00000297122cac00] data partitioning is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[h264 @ 00000297122cac00] If you want to help, upload a sample of this file to https://streams.videolan.org/upload/ and contact the ffmpeg-devel mailing list. ([email protected])
[h264 @ 00000297122cac00] no frame!
[NULL @ 000002970c360680] missing picture in access unit with size 6301
[h264 @ 0000029711e14f00] data partitioning is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[h264 @ 0000029711e14f00] If you want to help, upload a sample of this file to https://streams.videolan.org/upload/ and contact the ffmpeg-devel mailing list. ([email protected])

{"StartTime":"2022-09-23T10:24:55.0321564+08:00","PublishTimeout":10000000000,"DelayCloseTimeout":0,"Path":"live/rtsp1","Publisher":{"ID":"","Type":"RTSPPuller","StartTime":"2022-09-23T10:24:55.0326649+08:00","Args":{},"Config":{"RePull":0,"PullOnStart":true,"PullOnSubscribe":false,"PullList":{"live/rtsp1":"rtsp://[email protected]/Streaming/Channels/101?transportmode=unicast","live/rtsp2":"rtsp://[email protected]/Streaming/Channels/201?transportmode=unicast","live/rtsp3":"rtsp://[email protected]/Streaming/Channels/102?transportmode=unicast"}},"StreamPath":"live/rtsp1","RemoteURL":"rtsp://[email protected]/Streaming/Channels/101?transportmode=unicast","ReConnectCount":1,"Transport":2},"State":1,"Subscribers":[{"ID":"","Type":"HLSWriter","StartTime":"2022-09-23T10:24:55.0513322+08:00","Args":{}}],"Tracks":[{"Name":"pcma","BPS":8300,"FPS":25,"RawPart":[93,214,197,211,204,198,210,220,208,87],"RawSize":320,"BPSs":[{"Timestamp":"2022-09-23T10:58:51.8859084+08:00","Value":8300},{"Timestamp":"2022-09-23T10:58:52.9032778+08:00","Value":8632},{"Timestamp":"2022-09-23T10:58:53.9472189+08:00","Value":8632},{"Timestamp":"2022-09-23T10:58:54.9911069+08:00","Value":8632},{"Timestamp":"2022-09-23T10:58:56.0317583+08:00","Value":8632},{"Timestamp":"2022-09-23T10:58:57.0446077+08:00","Value":8300},{"Timestamp":"2022-09-23T10:58:58.0589325+08:00","Value":8632},{"Timestamp":"2022-09-23T10:58:59.0633931+08:00","Value":8300},{"Timestamp":"2022-09-23T10:59:00.0929496+08:00","Value":8632},{"Timestamp":"2022-09-23T10:59:01.1064387+08:00","Value":8300}],"FPSs":[{"Timestamp":"2022-09-23T10:58:51.8859084+08:00","Value":25},{"Timestamp":"2022-09-23T10:58:52.9032778+08:00","Value":26},{"Timestamp":"2022-09-23T10:58:53.9472189+08:00","Value":26},{"Timestamp":"2022-09-23T10:58:54.9911069+08:00","Value":26},{"Timestamp":"2022-09-23T10:58:56.0317583+08:00","Value":26},{"Timestamp":"2022-09-23T10:58:57.0446077+08:00","Value":25},{"Timestamp":"2022-09-23T10:58:58.0589325+08:00","Value":26},{"Timestamp":"2022-09-23T10:58:59.0633931+08:00","Value":25},{"Timestamp":"2022-09-23T10:59:00.0929496+08:00","Value":26},{"Timestamp":"2022-09-23T10:59:01.1064387+08:00","Value":25}],"Size":32,"MoveCount":51147,"LastValue":{"DeltaTime":3,"AbsTime":153438,"Timestamp":"2022-09-23T10:59:01.427123+08:00","Sequence":51146,"BytesIn":332,"IFrame":false,"PTS":2774917432,"DTS":2774917432},"Poll":10000000,"SampleRate":8000,"CodecID":7,"Channels":1,"SampleSize":8,"AVCCHead":"cg==","Profile":0},{"Name":"h265","BPS":157834,"FPS":25,"RawPart":[2,1,208,1,113,116,32,140,250,200],"RawSize":6095,"BPSs":[{"Timestamp":"2022-09-23T10:58:52.1473348+08:00","Value":341023},{"Timestamp":"2022-09-23T10:58:53.1694678+08:00","Value":161710},{"Timestamp":"2022-09-23T10:58:54.184075+08:00","Value":340076},{"Timestamp":"2022-09-23T10:58:55.2130184+08:00","Value":164666},{"Timestamp":"2022-09-23T10:58:56.2552202+08:00","Value":364523},{"Timestamp":"2022-09-23T10:58:57.3092185+08:00","Value":159575},{"Timestamp":"2022-09-23T10:58:58.3489761+08:00","Value":342233},{"Timestamp":"2022-09-23T10:58:59.3826892+08:00","Value":163482},{"Timestamp":"2022-09-23T10:59:00.415867+08:00","Value":346497},{"Timestamp":"2022-09-23T10:59:01.427123+08:00","Value":157834}],"FPSs":[{"Timestamp":"2022-09-23T10:58:52.1473348+08:00","Value":26},{"Timestamp":"2022-09-23T10:58:53.1694678+08:00","Value":26},{"Timestamp":"2022-09-23T10:58:54.184075+08:00","Value":25},{"Timestamp":"2022-09-23T10:58:55.2130184+08:00","Value":26},{"Timestamp":"2022-09-23T10:58:56.2552202+08:00","Value":26},{"Timestamp":"2022-09-23T10:58:57.3092185+08:00","Value":26},{"Timestamp":"2022-09-23T10:58:58.3489761+08:00","Value":26},{"Timestamp":"2022-09-23T10:58:59.3826892+08:00","Value":26},{"Timestamp":"2022-09-23T10:59:00.415867+08:00","Value":26},{"Timestamp":"2022-09-23T10:59:01.427123+08:00","Value":25}],"Size":55,"MoveCount":51147,"LastValue":{"DeltaTime":40,"AbsTime":2045865,"Timestamp":"2022-09-23T10:59:01.4495301+08:00","Sequence":51146,"BytesIn":6168,"IFrame":false,"PTS":1153055258,"DTS":1153055258},"Poll":10000000,"SampleRate":90000,"CodecID":12,"SPSInfo":{"ProfileIdc":0,"LevelIdc":0,"MbWidth":0,"MbHeight":0,"CropLeft":0,"CropRight":0,"CropTop":0,"CropBottom":4,"Width":1920,"Height":1088},"GOP":50}],"AppName":"live","StreamName":"rtsp1","CloseReason":0}

@langhuihui
Copy link
Member

你这是h265啊,hls写h265可能有bug,你先用个h264试试

@mijjjj
Copy link
Author

mijjjj commented Sep 23, 2022

收到,感谢

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