[FFmpeg-trac] #1734(avformat:open): Problems dumping H264 stream from an Axis camera
FFmpeg
trac at avcodec.org
Wed Sep 26 13:54:30 CEST 2012
#1734: Problems dumping H264 stream from an Axis camera
------------------------------------+------------------------------------
Reporter: PaulJBis | Owner:
Type: defect | Status: open
Priority: important | Component: avformat
Version: git-master | Resolution:
Keywords: regression | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
------------------------------------+------------------------------------
Comment (by PaulJBis):
Sorry, still doesn't work.
{{{
[paulo at webserver ffmpeg]$ ./ffmpeg -v 9 -loglevel 99 -rtsp_transport tcp
-i rtsp://root:root@192.168.1.131:554/axis-
media/media.amp?streamprofile=Media?tcp -vcodec copy -acodec copy -t 4
../axis.mp4
ffmpeg version N-44782-g4552e9b Copyright (c) 2000-2012 the FFmpeg
developers
built on Sep 26 2012 13:38:40 with gcc 4.1.2 (GCC) 20080704 (Red Hat
4.1.2-50)
configuration: --enable-encoder=libx264 --enable-libx264 --enable-
runtime-cpudetect --enable-libmp3lame --enable-gpl --extra-
cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib
libavutil 51. 73.101 / 51. 73.101
libavcodec 54. 59.100 / 54. 59.100
libavformat 54. 28.101 / 54. 28.101
libavdevice 54. 2.101 / 54. 2.101
libavfilter 3. 17.100 / 3. 17.100
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
[rtsp @ 0xadb45e0] SDP:
v=0
o=- 1288182448719924 1288182448719924 IN IP4 192.168.1.131
s=Media Presentation
e=NONE
c=IN IP4 0.0.0.0
b=AS:50000
t=0 0
a=control:rtsp://192.168.1.131:554/axis-
media/media.amp?streamprofile=Media?tcp
a=range:npt=0.000000-
m=video 0 RTP/AVP 96
b=AS:50000
a=framerate:25.0
a=transform:1,0,0;0,1,0;0,0,1
a=control:rtsp://192.168.1.131:554/axis-
media/media.amp/trackID=1?streamprofile=Media?tcp
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1; profile-level-id=420029; sprop-parameter-
sets=Z0IAKeNQFAe2AtwEBAaQeJEV,aM48gA==
[rtsp @ 0xadb45e0] video codec set to: h264
[NULL @ 0xadbc7c0] RTP Packetization Mode: 1
[NULL @ 0xadbc7c0] RTP Profile IDC: 42 Profile IOP: 0 Level: 29
[NULL @ 0xadbc7c0] Extradata set to 0xadbcc40 (size: 30)!
[rtsp @ 0xadb45e0] hello state=0
[rtsp @ 0xadb45e0] All info found
rfps: 29.500000 0.016604
rfps: 29.583333 0.012686
rfps: 29.666667 0.009376
rfps: 29.750000 0.006676
rfps: 29.833333 0.004584
Last message repeated 1 times
rfps: 29.916667 0.003101
Last message repeated 1 times
rfps: 30.000000 0.002227
rfps: 30.083333 0.001961
rfps: 30.166667 0.002305
Last message repeated 1 times
rfps: 30.250000 0.003257
Last message repeated 1 times
rfps: 30.333333 0.004818
Last message repeated 1 times
rfps: 30.416667 0.006988
rfps: 30.500000 0.009767
rfps: 30.583333 0.013155
rfps: 59.666667 0.018335
rfps: 59.750000 0.015064
rfps: 59.833333 0.012403
rfps: 59.916667 0.010350
Last message repeated 1 times
rfps: 60.000000 0.008906
rfps: 29.970030 0.002471
Last message repeated 1 times
rfps: 59.940060 0.009883
Last message repeated 1 times
[rtsp @ 0xadb45e0] Estimating duration from bitrate, this may be
inaccurate
Input #0, rtsp, from 'rtsp://root:root@192.168.1.131:554/axis-
media/media.amp?streamprofile=Media?tcp':
Metadata:
title : Media Presentation
Duration: N/A, start: 0.099900, bitrate: N/A
Stream #0:0, 28, 1/90000: Video: h264 (Baseline), yuvj420p, 640x480
[SAR 1:1 DAR 4:3], 1/180000, 30.08 tbr, 90k tbn, 180k tbc
Output #0, mp4, to '../axis.mp4':
Metadata:
title : Media Presentation
encoder : Lavf54.28.101
Stream #0:0, 0, 1/90000: Video: h264 ([33][0][0][0] / 0x0021),
yuvj420p, 640x480 [SAR 1:1 DAR 4:3], 1/90000, q=2-31, 90k tbn, 90k tbc
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[mp4 @ 0xaefaaa0] pts (0) < dts (1) in stream 0
av_interleaved_write_frame(): Invalid argument
}}}
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1734#comment:4>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list