[FFmpeg-user] How to find the last working GIT version?

paulj at fastmail.es paulj at fastmail.es
Wed Sep 12 22:16:14 CEST 2012


> 
> > On 12/09/2012 9:03 AM, Carl Eugen Hoyos wrote:
> > > git log -p 3e1cf49 shows you the change in commit 3e1cf49
> > > (a version that you know is bad) and all prior commits, the
> > > first commit before 3e1cf49 is 2107009 that as you know is a
> > > good version, so you only have to revert the one line from
> > > commit 3e1cf49 but none of the (several ten-thousand)
> > > earlier commits.
> > >
> > > I hope this clears it up, if not, try to remove
> > > "&& has_decode_delay_been_guessed(st)" from
> > > compute_pkt_fields() in libavformat/utils.c
> > >
> > 
> > Ok, just to confirm - I've built latest head with that removed and it 
> > works fine, so that is the problem spot there.
> > 
> 
> 
> 	I can confirm that it also solves the bug I found, the one where dumping
> an H264 
> stream from an Axis camera gave an "mp4 @ 0xaa897a0] pts (0) < dts (1) in
> stream 0
> av_interleaved_write_frame(): Invalid argument" error. I just updated to
> the last git version (I 
> think...), removed that part, and it worked:
> 
> 


	Oops, sorry. The output I posted wasn't from the latest version (this is what happens 
for not knowing how to use git). However, now I've updated to the latest version (for real) and 
I can confirm that the same thing happens: it doesn't work, but if I remove the above part of 
the code, it starts working.
	Below is the output (of the version with the modified code). Do you guys need me to 
open a ticket and add there all the information related to this bug?



[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 6 ../axis.mp4
ffmpeg version N-44400-g2de8877 Copyright (c) 2000-2012 the FFmpeg developers
  built on Sep 12 2012 22:07:41 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. 72.100 / 51. 72.100
  libavcodec     54. 55.100 / 54. 55.100
  libavformat    54. 26.101 / 54. 26.101
  libavdevice    54.  2.100 / 54.  2.100
  libavfilter     3. 16.103 /  3. 16.103
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[rtsp @ 0xacac5e0] SDP:
v=0
o=- 1288188682311012 1288188682311012 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?tc
p
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1; profile-level-id=420029; 
sprop-parameter-sets=Z0IAKeNQFAe2AtwEBAaQeJEV,aM48gA==

[rtsp @ 0xacac5e0] video codec set to: h264
[NULL @ 0xacb47c0] RTP Packetization Mode: 1
[NULL @ 0xacb47c0] RTP Profile IDC: 42 Profile IOP: 0 Level: 29
[NULL @ 0xacb47c0] Extradata set to 0xacb4c40 (size: 30)!
[rtsp @ 0xacac5e0] hello state=0
[rtsp @ 0xacac5e0] All info found
rfps: 29.666667 0.014085
    Last message repeated 1 times
rfps: 29.750000 0.008001
    Last message repeated 1 times
rfps: 29.833333 0.003804
    Last message repeated 1 times
rfps: 29.916667 0.001493
    Last message repeated 1 times
rfps: 30.000000 0.001069
rfps: 30.083333 0.002531
    Last message repeated 1 times
rfps: 30.166667 0.005879
    Last message repeated 1 times
rfps: 30.250000 0.011113
    Last message repeated 1 times
rfps: 30.333333 0.018234
rfps: 59.666667 0.015217
    Last message repeated 1 times
rfps: 59.750000 0.009652
    Last message repeated 1 times
rfps: 59.833333 0.005973
    Last message repeated 1 times
rfps: 59.916667 0.004181
rfps: 60.000000 0.004275
rfps: 29.970030 0.001004
rfps: 59.940060 0.004017
[rtsp @ 0xacac5e0] 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.100078, bitrate: N/A
    Stream #0:0, 22, 1/90000: Video: h264 (Baseline), yuvj420p, 640x480 [SAR 1:1 DAR 4:3], 
1/180000, 29.97 tbr, 90k tbn, 180k tbc
Output #0, mp4, to '../axis.mp4':
  Metadata:
    title           : Media Presentation
    encoder         : Lavf54.26.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
frame=   33 fps=0.0 q=-1.0 size=    2689kB time=00:00:01.90 bitrate=11587.8kbits
frame=   44 fps= 43 q=-1.0 size=    3581kB time=00:00:02.33 bitrate=12545.4kbits
frame=   56 fps= 36 q=-1.0 size=    4561kB time=00:00:03.07 bitrate=12169.4kbits
frame=   68 fps= 33 q=-1.0 size=    5531kB time=00:00:03.53 bitrate=12803.5kbits
frame=   80 fps= 31 q=-1.0 size=    6504kB time=00:00:04.10 bitrate=12985.7kbits
frame=   92 fps= 30 q=-1.0 size=    7487kB time=00:00:04.50 bitrate=13605.6kbits
frame=  104 fps= 29 q=-1.0 size=    8457kB time=00:00:05.04 bitrate=13746.6kbits
frame=  117 fps= 28 q=-1.0 size=    9508kB time=00:00:05.57 bitrate=13978.9kbits
No more output streams to write to, finishing.
frame=  127 fps= 27 q=-1.0 Lsize=   10331kB time=00:00:05.97 bitrate=14170.7kbits/s    
video:10329kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.021822%



                                  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