[FFmpeg-user] Problems dumping H264 stream from Axis camera

Michael Niedermayer michaelni at gmx.at
Sun Aug 26 00:15:39 CEST 2012


On Thu, Aug 23, 2012 at 02:50:48PM +0200, paulj at fastmail.es wrote:
> Hi all:
> 
> 	I'm trying to dump the H264 stream from an Axis M-1011 camera to disk. I used to 
> have a ffmpeg binary compiled from around a year ago, and this command line used to work:
> 
> 
> 	ffmpeg -t 00:00:30 -f rtsp -i rtsp://root:root@192.168.1.129:554/axis-
> media/media.amp?streamprofile=Quality?tcp -vcodec copy -acodec copy axis.mp4
> 
> 
> 	However, yesterday I downloaded the newest git source and compiled it, and with the 
> new binary I get this error:
> 
> 
> [paulo at webserver ~]$ ffmpeg -t 00:00:30 -rtsp_transport tcp -i 
> rtsp://root:root@192.168.1.129:554/axis-media/media.amp?streamprofile=Quality?tcp -
> vcodec copy -acodec copy axis.mp4
> ffmpeg version N-43821-gf92f493 Copyright (c) 2000-2012 the FFmpeg developers
>   built on Aug 23 2012 12:47:11 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
>   libavutil      51. 70.100 / 51. 70.100
>   libavcodec     54. 54.100 / 54. 54.100
>   libavformat    54. 25.104 / 54. 25.104
>   libavdevice    54.  2.100 / 54.  2.100
>   libavfilter     3. 13.100 /  3. 13.100
>   libswscale      2.  1.101 /  2.  1.101
>   libswresample   0. 15.100 /  0. 15.100
>   libpostproc    52.  0.100 / 52.  0.100
> [rtsp @ 0xa9445c0] Estimating duration from bitrate, this may be inaccurate
> Input #0, rtsp, from 'rtsp://root:root@192.168.1.129:554/axis-
> media/media.amp?streamprofile=Quality?tcp':
>   Metadata:
>     title           : Media Presentation
>   Duration: N/A, start: 0.099878, bitrate: N/A
>     Stream #0:0: Video: h264 (Baseline), yuvj420p, 640x480 [SAR 1:1 DAR 4:3], 30 tbr, 90k 
> tbn, 180k tbc
> -t is not an input option, keeping it for the next output; consider fixing your command line.
> Output #0, mp4, to 'axis.mp4':
>   Metadata:
>     title           : Media Presentation
>     encoder         : Lavf54.25.104
>     Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuvj420p, 640x480 [SAR 1:1 DAR 4:3], 
> q=2-31, 90k tbn, 90k tbc
> Stream mapping:
>   Stream #0:0 -> #0:0 (copy)
> Press [q] to stop, [?] for help

> [mp4 @ 0xaa897a0] pts (0) < dts (1) in stream 0
> av_interleaved_write_frame(): Invalid argument

whats the output with -fdebug ts -debug_ts
?

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I have often repented speaking, but never of holding my tongue.
-- Xenocrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20120826/3282f48d/attachment.asc>


More information about the ffmpeg-user mailing list