[Libav-user] The problem with video recording (when using segmentation)

Руслан Шарипов ufaweb at gmail.com
Fri May 11 10:00:17 CEST 2012


Hello.

I'm having trouble using avconv. My problem - is recording video with
IP-cameras (used j2000-ip).

Record directly from the camera impossible, because it is restriction
on 3 RTSP session (first to relay live video, second for
administrative staff, the third - reserve). Software is used to relay
live video - erlyvideo http://erlyvideo.org.

Recording is performed as follows:

========

recorder at cctv:~/records/records$ avconv -i
rtmp://cctv.lo.ufanet.ru/live/demo2 -vcodec copy -an -sn -map 0 -f
segment -segment_format mp4 -segment_time 60 -y 'stream-%03d.mp4'
avconv version 0.8.1-5:0.8.1-4, Copyright (c) 2000-2011 the Libav developers

 built on Mar 30 2012 14:37:42 with gcc 4.6.3

HandShake: client signature does not match!

Metadata:

 height                576.00

remote_addr:

 sdp_session           {sdp_session,0,

            {sdp_o,"admin","3904","3905",inet4,"10.1.12.7"},

            "NVT",

            {inet4,"10.1.12.7"},

            {0,0},

            [{"range","npt=now-"},

             {"control","rtsp://10.1.12.7/snl/live/1/1/"}]}

 width                 704.00

[flv @ 0x19e68c0] Estimating duration from bitrate, this may be inaccurate

Input #0, flv, from 'rtmp://cctv.lo.ufanet.ru/live/demo2':

 Duration: N/A, start: 0.000000, bitrate: N/A

   Stream #0.0: Video: h264 (Baseline), yuv420p, 704x576, 200 tbr, 1k
tbn, 2k tbc

Output #0, segment, to 'stream-%03d.mp4':

 Metadata:

   encoder         : Lavf53.21.0

   Stream #0.0: Video: libx264, yuv420p, 704x576, q=2-31, 1k tbn, 1k tbc

Stream mapping:

 Stream #0:0 -> #0:0 (copy)

Press ctrl-c to stop encoding

^Cframe=11178 fps= 32 q=-1.0 Lsize=      -0kB time=394.69 bitrate=
-0.0kbits/s

video:24201kB audio:0kB global headers:0kB muxing overhead -100.000089%

Received signal 2: terminating.

========

Segmentation is necessary to store small pieces of time, it simplifies
access to the video archive later.

But unfortunately the record does not work as expected. The first
segment able to play successfully in Flash (PC, Linux, Mac) and
QuickTime (iOS), but subsequent segments are played back only in
Flash, QuickTime simply displays a black screen.

An example of RTMP input stream: rtmp://cctv.lo.ufanet.ru/live/demo2
Sample entries: http://cctv.lo.ufanet.ru/cctv/

Tell me, what could be the reason why that is received by the segments
(except first) do not play QuickTime (both iOS, and on Mac OS X)?

Thanks.

-- 
С уважением, Шарипов Руслан.
Руководитель отдела разработки и сопровождения программного
обеспечения ОАО "Уфанет".

Контактная информация:
google+: http://gplus.to/ruslan
jid: serafim at jabber.ufanet.ru
wave: ufaweb at googlewave.com
skype: ufaweb
phone: +7(917)4775460
vkontakte: http://vkontakte.ru/ufaweb
myspace: http://www.myspace.com/ufaweb
facebook: http://facebook.com/sharipov
linkedin: http://www.linkedin.com/in/ufaweb
twitter: http://twitter.com/ufaweb


More information about the Libav-user mailing list