Ahoj, nahravam stream z kamery pomoci prikazu
avconv -rtsp_transport tcp -i rtsp://kamera1 -c:v h264 -b:v 1000k -map 0 -f segment -segment_time 3600 -segment_wrap 96 -segment_format mkv "out_%02d.mkv"
Vytvari se soubory out_00.mkv, out_01.mkv, ... kazdou hodinu, pricemz predpokladam, ze po 96 hodinach (4 dny) se nahravani vrati k prvnimu souboru a vse pojede odznova. Do teto chvile vse funguje OK, soubory obsahuji hodinu zaznamu a lze je bez problemu prehrat.
Po 96 hodinach sice zacne nahravat na zacatek, ale kazdou minutu to skoci na dalsi soubor. Soubory potom obsahuji pouze par sekund zaznamu.
Vystup z avconv je:
Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead.
[matroska @ 0x25f0a60] Codec for stream 0 does not use global headers but container format requires global headers
Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead.
[matroska @ 0x2b32700] Codec for stream 0 does not use global headers but container format requires global headers
Nevite, cim to je?