[FFmpeg-user] impossible to read rtsp stream with the type h264

ABDALLAH Moussa Moussa.ABDALLAH at nexeya.com
Wed Feb 27 12:19:18 EET 2019


Please don't answer to this message I have create an other message.

-----Message d'origine-----
De : ffmpeg-user <ffmpeg-user-bounces at ffmpeg.org> De la part de ABDALLAH Moussa
Envoyé : mercredi 27 février 2019 10:45
À : FFmpeg user questions <ffmpeg-user at ffmpeg.org>
Objet : Re: [FFmpeg-user] impossible to read rtsp stream with the type h264

After different test avd with your help I finally success to record the stream video h264 to a file mkv. But I see different error message during the process, what do these mean please ( the message SEI type 5 size 1360 truncated and the message [matroska @ 0x2901800] Non-monotonous DTS in output stream 0:0; previous: 0, current: -167; changing to 0. This may result in incorrect timestamps in the output file.) ?

[h264 @ 0x28f1ac0] SEI type 5 size 1360 truncated at 680
[h264 @ 0x28f1ac0] SEI type 5 size 1360 truncated at 671
[h264 @ 0x28f1ac0] SEI type 5 size 1360 truncated at 680
[h264 @ 0x28f1ac0] SEI type 5 size 1360 truncated at 671
[h264 @ 0x28f1ac0] SEI type 5 size 1360 truncated at 680
[h264 @ 0x28f1ac0] SEI type 5 size 1360 truncated at 671
[h264 @ 0x28f1ac0] SEI type 5 size 1360 truncated at 680
[h264 @ 0x28f1ac0] SEI type 5 size 1360 truncated at 671
[h264 @ 0x28f1ac0] SEI type 5 size 1360 truncated at 680
[h264 @ 0x28f1ac0] SEI type 5 size 1360 truncated at 671
[h264 @ 0x28f1ac0] SEI type 5 size 1360 truncated at 680
[h264 @ 0x28f1ac0] SEI type 5 size 1360 truncated at 671
[h264 @ 0x28f1ac0] SEI type 5 size 1360 truncated at 680
[h264 @ 0x28f1ac0] SEI type 5 size 1360 truncated at 671
[h264 @ 0x28f1ac0] SEI type 5 size 1360 truncated at 680
    Last message repeated 20 times
Input #0, rtsp, from 'rtsp://admin:nexeya@192.9.200.121/h264':
  Metadata:
    title           : h264
    comment         : Network Camera Streamer
  Duration: 00:00:00.00, start: 0.199633, bitrate: N/A
    Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1: Data: none
Output #0, matroska, to '_capture.mkv':
  Metadata:
    title           : h264
    comment         : Network Camera Streamer
    encoder         : Lavf58.20.100
    Stream #0:0: Video: h264 (Main) (H264 / 0x34363248), yuvj420p(pc, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 29.97 fps, 29.97 tbr, 1k tbn, 90k tbc Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[matroska @ 0x2901800] Non-monotonous DTS in output stream 0:0; previous: 0, current: -167; changing to 0. This may result in incorrect timestamps in the output file.
[matroska @ 0x2901800] Non-monotonous DTS in output stream 0:0; previous: 0, current: -134; changing to 0. This may result in incorrect timestamps in the output file.
[matroska @ 0x2901800] Non-monotonous DTS in output stream 0:0; previous: 0, current: -100; changing to 0. This may result in incorrect timestamps in the output file.
[matroska @ 0x2901800] Non-monotonous DTS in output stream 0:0; previous: 0, current: -67; changing to 0. This may result in incorrect timestamps in the output file.
[matroska @ 0x2901800] Non-monotonous DTS in output stream 0:0; previous: 0, current: -34; changing to 0. This may result in incorrect timestamps in the output file.
[NULL @ 0x28f1ac0] SEI type 5 size 1360 truncated at 680
    Last message repeated 26 times
[NULL @ 0x28f1ac0] SEI type 5 size 1360 truncated at 680.60 bitrate=3928.5kbits/s speed=3.09x    
    Last message repeated 16 times
[NULL @ 0x28f1ac0] SEI type 5 size 1360 truncated at 680.17 bitrate=5534.2kbits/s speed=2.03x    
    Last message repeated 14 times
[NULL @ 0x28f1ac0] SEI type 5 size 1360 truncated at 680.67 bitrate=4497.8kbits/s speed=1.69x    
    Last message repeated 9 times
frame=   96 fps= 50 q=-1.0 Lsize=    2531kB time=00:00:02.97 bitrate=6980.1kbits/s speed=1.56x    
video:2529kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.064409%


-----Message d'origine-----
De : ffmpeg-user <ffmpeg-user-bounces at ffmpeg.org> De la part de ABDALLAH Moussa Envoyé : mardi 26 février 2019 20:15 À : FFmpeg user questions <ffmpeg-user at ffmpeg.org> Objet : Re: [FFmpeg-user] impossible to read rtsp stream with the type h264

I found how with -rtsp_transport tcp.

Thanks you again.

> Le 26 févr. 2019 à 18:58, ABDALLAH Moussa <Moussa.ABDALLAH at nexeya.com> a écrit :
> 
> Thanks you for these response.
> 
> [rtsp @ 0x39da4c0] UDP timeout, retrying with TCP
> 
> Did you try forcing tcp? It may help if a camera timeout is the issue.
> 
> How to force tcp?
> 
> Le 26 févr. 2019 à 18:52, Carl Eugen Hoyos <ceffmpeg at gmail.com<mailto:ceffmpeg at gmail.com>> a écrit :
> 
> 
> 
> Am 26.02.2019 um 18:07 schrieb ABDALLAH Moussa <Moussa.ABDALLAH at nexeya.com<mailto:Moussa.ABDALLAH at nexeya.com>>:
> 
> Hi,
> 
> I try to read a stream video with the command line : ffmpeg -i
> rtsp://192.9.200.121/h264 -y -map 0 -t 5 -c copy -f matroska 
> _capture.mkv
> 
> And I get this error :
> 
> ffmpeg version 4.1.1 Copyright (c)
> 
> Please remember that only current FFmpeg git head is supported here.
> 
> 2000-2019 the FFmpeg developers
> built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-36)
> configuration:
> libavutil      56. 22.100 / 56. 22.100
> libavcodec     58. 35.100 / 58. 35.100
> libavformat    58. 20.100 / 58. 20.100
> libavdevice    58.  5.100 / 58.  5.100
> libavfilter     7. 40.101 /  7. 40.101
> libswscale      5.  3.100 /  5.  3.100
> libswresample   3.  3.100 /  3.  3.100
> 
> [rtsp @ 0x39da4c0] UDP timeout, retrying with TCP
> 
> Did you try forcing tcp? It may help if a camera timeout is the issue.
> 
> [rtsp @ 0x39da4c0] method SETUP failed: 454 Session Not Found [rtsp @ 
> 0x39da4c0] Could not find codec parameters for stream 0 (Video: h264, 
> none, 1280x720): unspecified pixel format Consider increasing the 
> value for the 'analyzeduration' and 'probesize' options
> 
> These are the relevant lines, everything else is just a consequence.
> Consider increasing verbosity.
> 
> Carl Eugen
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org<mailto:ffmpeg-user at ffmpeg.org>
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email 
> ffmpeg-user-request at ffmpeg.org<mailto:ffmpeg-user-request at ffmpeg.org> with subject "unsubscribe".
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email 
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list