[FFmpeg-trac] #730(undetermined:new): Generate timestamps for source (like do-timestamp=true in gstreamer)

FFmpeg trac at avcodec.org
Sat Dec 10 15:44:53 CET 2011


#730: Generate timestamps for source (like do-timestamp=true in gstreamer)
-------------------------------------+-------------------------------------
             Reporter:  hackeron     |                    Owner:
                 Type:  enhancement  |                   Status:  new
             Priority:  normal       |                Component:
              Version:  unspecified  |  undetermined
             Keywords:               |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by hackeron):

 OK

 $ URL="http://admin:@192.168.0.108/"; time ffmpeg -t 30 -f mjpeg -i
 ${URL}mjpeg.cgi -vcodec copy output.avi
 ffmpeg version 0.8.6, Copyright (c) 2000-2011 the FFmpeg developers
   built on Nov 17 2011 00:53:28 with gcc 4.2.1 (Apple Inc. build 5666)
 (dot 3)
   configuration: --prefix=/usr/local/Cellar/ffmpeg/0.8.6 --enable-shared
 --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables
 --cc=/usr/bin/gcc-4.2 --enable-libx264 --enable-libfaac --enable-
 libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-
 libxvid --disable-ffplay
   libavutil    51.  9. 1 / 51.  9. 1
   libavcodec   53.  7. 0 / 53.  7. 0
   libavformat  53.  4. 0 / 53.  4. 0
   libavdevice  53.  1. 1 / 53.  1. 1
   libavfilter   2. 23. 0 /  2. 23. 0
   libswscale    2.  0. 0 /  2.  0. 0
   libpostproc  51.  2. 0 / 51.  2. 0
 [mjpeg @ 0x7ff204007c00] max_analyze_duration 5000000 reached at 5000000
 [mjpeg @ 0x7ff204007c00] Estimating duration from bitrate, this may be
 inaccurate
 Input #0, mjpeg, from 'http://admin:@192.168.0.108/mjpeg.cgi':
   Duration: N/A, bitrate: N/A
     Stream #0.0: Video: mjpeg, yuvj422p, 640x480, 25 fps, 25 tbr, 1200k
 tbn, 25 tbc
 Output #0, avi, to 'output.avi':
   Metadata:
     ISFT            : Lavf53.4.0
     Stream #0.0: Video: mjpeg, yuvj422p, 640x480, q=2-31, 25 tbn, 25 tbc
 Stream mapping:
   Stream #0.0 -> #0.0
 Press [q] to stop, [?] for help
 frame=  750 fps= 24 q=-1.0 Lsize=   25547kB time=00:00:30.00
 bitrate=6976.1kbits/s
 video:25524kB audio:0kB global headers:0kB muxing overhead 0.092094%

 real    0m48.163s
 user    0m0.213s
 sys     0m0.620s

 Notice ffmpeg thinks it has 30 seconds of video - but in reality the video
 is 48 seconds in length.

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/730#comment:4>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list