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

paulj at fastmail.es paulj at fastmail.es
Mon Sep 3 16:41:50 CEST 2012


> So if you build current git head, it doesn't work.  Then you revert
> 2107009e7d351ff83a87fda161cc5269d2752428 from head and it starts
> working?  That commit looks totally benign...odd.
> 
> I wonder if the "1.1e-05" is the problem:
> 
> demuxer -> ist_index:0 type:video next_dts:NOPTS next_dts_time:NOPTS
> next_pts:NOPTS
>  next_pts_time:NOPTS  pkt_pts:NOPTS pkt_pts_time:NOPTS pkt_dts:NOPTS
>  pkt_dts_time:NOPTS off:-99878
>  demuxer -> ist_index:0 type:video next_dts:11 next_dts_time:1.1e-05 next_pts:11
>  next_pts_time:1.1e-05  pkt_pts:0 pkt_pts_time:0 pkt_dts:NOPTS
> pkt_dts_time:NOPTS off:-
>  99878
>  [mp4 @ 0xaa9f360] pts (0) < dts (1) in stream 0
> 
> I wonder if the 1.1e-05 is "actually" 0 but something rounding up?
> 
> Also try with
> -analyzeduration 0
> -r


	Nope, it doesn't work either.


[paulo at webserver ffmpeg]$ ./ffmpeg -rtsp_transport tcp -i 
rtsp://root:root@192.168.1.129:554/axis-media/media.amp?streamprofile=Media?tcp 
-analyzeduration 0 -vcodec copy -acodec copy ../axis.mp4
ffmpeg version N-43928-g60924df Copyright (c) 2000-2012 the FFmpeg developers
  built on Sep  3 2012 16:33:43 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. 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.101 /  3. 13.101
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[rtsp @ 0x970c5c0] 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=Media?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.08 tbr, 
90k tbn, 180k tbc
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 @ 0x984dba0] pts (0) < dts (1) in stream 0
av_interleaved_write_frame(): Invalid argument



                                  Paulo.

-------------------------------------------
"Oh, don't worry kids. Most of you will
never fall in love. You'll just marry
for fear of dying alone."

                             The Simpsons.
-------------------------------------------



More information about the ffmpeg-user mailing list