[FFmpeg-user] Axis camera mysteriously breaks overnight - pts has no value

MikeBloise mike at recognin.com
Thu Jun 13 15:46:51 CEST 2013


So this Axis network IP camera was working great for a full day, and FFMPEG
was bringing in segments, no problem.  Then at 3:00AM FFMPEG stopped
recording segments and started giving this error.  Checking the logs, a
Windows Update was applied right at that time and the PC restarted.

However, another Axis IP camera also using rtsp continues to be accessible
to FFMPEG from that same machine using the same FFMPEG binary.

So I restarted the PC and the camera, no change.  I re-set the camera to
defaults and also rolled back the windows updates and restarted everything,
no change.

Maybe the most interesting point; the stream works fine in the Axis web
interface and also the VLC media player.  I've changed the size and quality
settings and the stream continues to succeed in VLC, but continues to fail
in FFMPEG.

I'll do whatever research and try whatever steps it takes to resolve this;
I'm stuck.  Any suggestions or insight would be appreciated.  Below is the
output.

Thanks,

Mike


ffmpeg.exe -i "rtsp://root:xxxx@10.43.0.101:554/axis-media/media.amp?v
ideocodec=h264" -c copy -map 0 -f segment -segment_time 5 -segment_format
mp4 "D
:\Video_%08d.mp4" -loglevel debug
ffmpeg version N-52523-g0fb64da Copyright (c) 2000-2013 the FFmpeg
developers
  built on Apr 28 2013 00:01:23 with gcc 4.7.3 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls
--enab
le-iconv --enable-libass --enable-libbluray --enable-libcaca
--enable-libfreetyp
e --enable-libgsm --enable-libilbc --enable-libmp3lame
--enable-libopencore-amrn
b --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus
--enable-libr
tmp --enable-libschroedinger --enable-libsoxr --enable-libspeex
--enable-libtheo
ra --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc
--enable-li
bvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid
--ena
ble-zlib
  libavutil      52. 27.101 / 52. 27.101
  libavcodec     55.  6.100 / 55.  6.100
  libavformat    55.  3.100 / 55.  3.100
  libavdevice    55.  0.100 / 55.  0.100
  libavfilter     3. 61.100 /  3. 61.100
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
Splitting the commandline.
Reading option '-i' ... matched as input file with argument
'rtsp://root:xxxx@10
.43.0.101:554/axis-media/media.amp?videocodec=h264'.
Reading option '-c' ... matched as option 'c' (codec name) with argument
'copy'.

Reading option '-map' ... matched as option 'map' (set input stream mapping)
wit
h argument '0'.
Reading option '-f' ... matched as option 'f' (force format) with argument
'segm
ent'.
Reading option '-segment_time' ... matched as AVOption 'segment_time' with
argum
ent '5'.
Reading option '-segment_format' ... matched as AVOption 'segment_format'
with a
rgument 'mp4'.
Reading option 'D:\Video_%08d.mp4' ... matched as output file.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging
level)
with argument 'debug'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input file
rtsp://root:xxxx@10.43.0.101:554/axis-med
ia/media.amp?videocodec=h264.
Successfully parsed a group of options.
Opening an input file:
rtsp://root:xxxx@10.43.0.101:554/axis-media/media.amp?vid
eocodec=h264.
[rtsp @ 003597e0] SDP:
v=0
o=- 1109213227202486 1109213227202486 IN IP4 10.43.0.101
s=Media Presentation
e=NONE
b=AS:50000
t=0 0
a=control:rtsp://10.43.0.101:554/axis-media/media.amp?videocodec=h264
a=range:npt=0.000000-
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
b=AS:50000
a=framerate:30.0
a=transform:1,0,0;0,1,0;0,0,1
a=control:rtsp://10.43.0.101:554/axis-media/media.amp/trackID=1?videocodec=h264
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1; profile-level-id=4D4029;
sprop-parameter-sets=Z0
1AKZpmAoAy2AtQEBAQXpw=,aO48gA==

[rtsp @ 003597e0] video codec set to: h264
[NULL @ 02272780] RTP Packetization Mode: 1
[NULL @ 02272780] RTP Profile IDC: 4d Profile IOP: 40 Level: 29
[NULL @ 02272780] Extradata set to 0035a840 (size: 29)!
[rtsp @ 003597e0] hello state=0
[h264 @ 02272780] no picture
[h264 @ 02272780] RTP: missed 60 packets
[rtsp @ 003597e0] All info found
rfps: 29.416667 0.015534
    Last message repeated 1 times
rfps: 29.500000 0.011492
    Last message repeated 1 times
rfps: 29.583333 0.008059
    Last message repeated 1 times
rfps: 29.666667 0.005234
    Last message repeated 1 times
rfps: 29.750000 0.003017
rfps: 29.833333 0.001409
rfps: 29.916667 0.000410
rfps: 30.000000 0.000019
    Last message repeated 1 times
rfps: 30.083333 0.000236
    Last message repeated 1 times
rfps: 30.166667 0.001062
    Last message repeated 1 times
rfps: 30.250000 0.002496
    Last message repeated 1 times
rfps: 30.333333 0.004539
    Last message repeated 1 times
rfps: 30.416667 0.007191
    Last message repeated 1 times
rfps: 30.500000 0.010450
    Last message repeated 1 times
rfps: 30.583333 0.014319
    Last message repeated 1 times
rfps: 30.666667 0.018795
rfps: 59.416667 0.016197
    Last message repeated 1 times
rfps: 59.500000 0.012069
rfps: 59.583333 0.008549
rfps: 59.666667 0.005637
rfps: 59.750000 0.003334
rfps: 59.833333 0.001639
rfps: 59.916667 0.000553
rfps: 60.000000 0.000075
    Last message repeated 1 times
rfps: 29.970030 0.000089
rfps: 59.940060 0.000357
Input #0, rtsp, from
'rtsp://root:xxxx@10.43.0.101:554/axis-media/media.amp?vide
ocodec=h264':
  Metadata:
    title           : Media Presentation
  Duration: N/A, start: 0.033833, bitrate: N/A
    Stream #0:0, 23, 1/90000: Video: h264 (Main), yuv420p, 1280x800 [SAR 1:1
DAR
 8:5], 1/180000, 30 tbr, 90k tbn, 180k tbc
Successfully opened the file.
Parsing a group of options: output file D:\Video_%08d.mp4.
Applying option c (codec name) with argument copy.
Applying option map (set input stream mapping) with argument 0.
Applying option f (force format) with argument segment.
Successfully parsed a group of options.
Opening an output file: D:\Video_%08d.mp4.
Successfully opened the file.
[segment @ 0035cfa0] Selected stream id:0 type:video
Output #0, segment, to 'D:\Video_%08d.mp4':
  Metadata:
    title           : Media Presentation
    encoder         : Lavf55.3.100
    Stream #0:0, 0, 1/90000: Video: h264, yuv420p, 1280x800 [SAR 1:1 DAR
8:5], 1
/90000, q=2-31, 90k tbn, 90k tbc
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[segment @ 0035cfa0] segment:'D:\Video_00000000.mp4' starts with packet
stream:0
pts:NOPTS pts_time:NOPTS frame:0
[mp4 @ 0490b700] pts has no value
[segment @ 0035cfa0] pts (0) < dts (1) in stream 0
av_interleaved_write_frame(): Invalid argument



--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Axis-camera-mysteriously-breaks-overnight-pts-has-no-value-tp4659549.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.


More information about the ffmpeg-user mailing list