LINUX.ORG.RU

ffmpeg завершает работу

 


0

1

Записываю rtsp поток (протокол tcp) с камеры Tp-link TC70 через wifi. ffmpeg, запущенный из командной строки, через некоторое время завершает работу с сообщением «no more output streams to write to, finishing». Проблем с сетью нет. Может, кто сталкивался с такой проблемой?


Ответ на: комментарий от monkdt

да, запускаю на RPi4 (ROS x64). Искал по форуму, что-то с этим свящанное, но не нашел. А не помните в чем там была проблема? На одном англоязычном форуме нашел, что проблема решилась подбором интервала key frame, но в камере нет таких настроек.

edcn
() автор топика
Ответ на: комментарий от hizel

……..

[segment @ 0x559fe07af0] stream:1 start_pts_time:14401 pts:16208044 pts_time:16208 dts:16208044 dts_time:16208 -> pts:1807059 pts_time:1807.06 dts:1807059 dts_time:1807.06 [segment @ 0x559fe07af0] stream:0 start_pts_time:14401 pts:16208052 pts_time:16208.1 dts:16208052 dts_time:16208.1 -> pts:1807067 pts_time:1807.07 dts:1807067 dts_time:1807.07 [matroska @ 0x559fe26130] Writing block of size 256 with pts 1807028, dts 1807028, duration 32 at relative offset 195398 in cluster at offset 216606305. TrackNumber 2, keyframe 1

No more output streams to write to, finishing.

[segment @ 0x559fe07af0] stream:1 start_pts_time:14401 pts:16208081 pts_time:16208.1 dts:16208081 dts_time:16208.1 -> pts:1807096 pts_time:1807.1 dts:1807096 dts_time:1807.1 [matroska @ 0x559fe26130] Writing block of size 256 with pts 1807059, dts 1807059, duration 32 at relative offset 195661 in cluster at offset 216606305. TrackNumber 2, keyframe 1 [matroska @ 0x559fe26130] Writing block of size 5147 with pts 1807067, dts 1807067, duration 67 at relative offset 195924 in cluster at offset 216606305. TrackNumber 1, keyframe 0 [segment @ 0x559fe07af0] stream:1 start_pts_time:14401 pts:16208108 pts_time:16208.1 dts:16208108 dts_time:16208.1 -> pts:1807123 pts_time:1807.12 dts:1807123 dts_time:1807.12 [segment @ 0x559fe07af0] stream:1 start_pts_time:14401 pts:16208141 pts_time:16208.1 dts:16208141 dts_time:16208.1 -> pts:1807156 pts_time:1807.16 dts:1807156 dts_time:1807.16 [segment @ 0x559fe07af0] stream:1 start_pts_time:14401 pts:16208172 pts_time:16208.2 dts:16208172 dts_time:16208.2 -> pts:1807187 pts_time:1807.19 dts:1807187 dts_time:1807.19 [segment @ 0x559fe07af0] stream:1 start_pts_time:14401 pts:16208206 pts_time:16208.2 dts:16208206 dts_time:16208.2 -> pts:1807221 pts_time:1807.22 dts:1807221 dts_time:1807.22 [segment @ 0x559fe07af0] stream:1 start_pts_time:14401 pts:16208236 pts_time:16208.2 dts:16208236 dts_time:16208.2 -> pts:1807251 pts_time:1807.25 dts:1807251 dts_time:1807.25 [segment @ 0x559fe07af0] stream:1 start_pts_time:14401 pts:16208272 pts_time:16208.3 dts:16208272 dts_time:16208.3 -> pts:1807287 pts_time:1807.29 dts:1807287 dts_time:1807.29 [segment @ 0x559fe07af0] stream:1 start_pts_time:14401 pts:16208280 pts_time:16208.3 dts:16208280 dts_time:16208.3 -> pts:1807295 pts_time:1807.3 dts:1807295 dts_time:1807.3 [segment @ 0x559fe07af0] stream:1 start_pts_time:14401 pts:16208338 pts_time:16208.3 dts:16208338 dts_time:16208.3 -> pts:1807353 pts_time:1807.35 dts:1807353 dts_time:1807.35 [segment @ 0x559fe07af0] stream:1 start_pts_time:14401 pts:16208350 pts_time:16208.4 dts:16208350 dts_time:16208.4 -> pts:1807365 pts_time:1807.37 dts:1807365 dts_time:1807.37 [segment @ 0x559fe07af0] stream:1 start_pts_time:14401 pts:16208403 pts_time:16208.4 dts:16208403 dts_time:16208.4 -> pts:1807418 pts_time:1807.42 dts:1807418 dts_time:1807.42 [segment @ 0x559fe07af0] stream:1 start_pts_time:14401 pts:16208431 pts_time:16208.4 dts:16208431 dts_time:16208.4 -> pts:1807446 pts_time:1807.45 dts:1807446 dts_time:1807.45 [segment @ 0x559fe07af0] stream:1 start_pts_time:14401 pts:16209491 pts_time:16209.5 dts:16209491 dts_time:16209.5 -> pts:1808506 pts_time:1808.51 dts:1808506 dts_time:1808.51 [segment @ 0x559fe07af0] stream:1 start_pts_time:14401 pts:16209515 pts_time:16209.5 dts:16209515 dts_time:16209.5 ->

………….

TrackNumber 2, keyframe 1 [matroska @ 0x559fe26130] Writing block of size 256 with pts 1808466, dts 1808466, duration 32 at relative offset 11320 in cluster at offset 216807390. TrackNumber 2, keyframe 1 [matroska @ 0x559fe26130] Writing block of size 256 with pts 1808506, dts 1808506, duration 32 at relative offset 11583 in cluster at offset 216807390. TrackNumber 2, keyframe 1 [matroska @ 0x559fe26130] Writing block of size 256 with pts 1808530, dts 1808530, duration 32 at relative offset 11846 in cluster at offset 216807390. TrackNumber 2, keyframe 1 [matroska @ 0x559fe26130] Writing block of size 256 with pts 1808563, dts 1808563, duration 32 at relative offset 12109 in cluster at offset 216807390. TrackNumber 2, keyframe 1 [matroska @ 0x559fe26130] Writing block of size 256 with pts 1808613, dts 1808613, duration 32 at relative offset 12372 in cluster at offset 216807390. TrackNumber 2, keyframe 1 [matroska @ 0x559fe26130] Writing block of size 256 with pts 1808660, dts 1808660, duration 32 at relative offset 12635 in cluster at offset 216807390. TrackNumber 2, keyframe 1 [matroska @ 0x559fe26130] Writing block of size 256 with pts 1808683, dts 1808683, duration 32 at relative offset 12898 in cluster at offset 216807390. TrackNumber 2, keyframe 1 [matroska @ 0x559fe26130] Writing block of size 256 with pts 1808700, dts 1808700, duration 32 at relative offset 13161 in cluster at offset 216807390. TrackNumber 2, keyframe 1 [matroska @ 0x559fe26130] end duration = 1808732 [matroska @ 0x559fe26130] stream 0 end duration = 1807134 [matroska @ 0x559fe26130] stream 1 end duration = 1808732 [segment @ 0x559fe07af0] segment:‘output4.mkv’ count:4 ended [AVIOContext @ 0x559fe26e70] Statistics: 2 seeks, 829 writeouts frame=242123 fps= 15 q=-1.0 Lsize=N/A time=04:30:09.68 bitrate=N/A speed= 1x
video:1480324kB audio:126328kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown Input file #0 (rtsp://login:pass@192.168.0.107/stream1): Input stream #0:0 (video): 242123 packets read (1515851879 bytes); Input stream #0:1 (audio): 505313 packets read (129360128 bytes); Total: 747436 packets (1645212007 bytes) demuxed Output file #0 (output%d.mkv): Output stream #0:0 (video): 242123 packets muxed (1515851879 bytes); Output stream #0:1 (audio): 505313 packets muxed (129360128 bytes); Total: 747436 packets (1645212007 bytes) muxed 0 frames successfully decoded, 0 decoding errors

edcn
() автор топика