[FFmpeg-trac] #1859(FFprobe:open): feature request: making skip_stream work with ffprobe

FFmpeg trac at avcodec.org
Wed Oct 31 14:53:38 CET 2012


#1859: feature request: making skip_stream work with ffprobe
-------------------------------------+-----------------------------------
             Reporter:  vineet156    |                    Owner:
                 Type:  enhancement  |                   Status:  open
             Priority:  wish         |                Component:  FFprobe
              Version:  git-master   |               Resolution:
             Keywords:  skip_frame   |               Blocked By:
             Blocking:               |  Reproduced by developer:  1
Analyzed by developer:  0            |
-------------------------------------+-----------------------------------

Comment (by vineet156):

 I sent a reply 3 days itself but I received a auto generated reply "delay
 in mail delivery".
 Anyways, I am updating my reply from the website now. here it goes...
 =======================================================================

 May be there is a negligible time difference. But the reason behind using
 "skip_frame nokey" was to show only show "iskey:1" frames via select
 filter (if using ffmpeg)

 similarly, with ffprobe if "skip_frame nokey" should only generate those
 55 key frame's information in json

 So, somewhere it's not working as per the documentation

 Just to clarify, I was not looking at speed gain.
 All I am trying to do is extract info about each keyframe present in a
 source video.
 I thought using "skip_frame nokey" I'll get just the keyframe information
 in my output.

 Additionally, if I may add, what should be best method to extract the
 image from each keyframe from my source video?
 coz following command generate image for each video frame instead of just
 keyframes

 ffmpeg -skip_frame nokey -i 1280x720_Shinkarenko-Gonzalez.mp4 -f image2 -
 images/keyframes%03d.jpg

 {{{
 ffmpeg version 1.0.git Copyright (c) 2000-2012 the FFmpeg developers
   built on Oct 28 2012 09:10:45 with gcc 4.4.5 (Debian 4.4.5-8)
   configuration: --prefix=/usr/local --enable-libx264 --enable-libfaac
 --enable-gpl --enable-shared --enable-nonfree --enable-libvorbis --enable-
 libvpx --disable-ffserver --disable-doc --enable-bzlib --enable-zlib
   libavutil      52.  0.100 / 52.  0.100
   libavcodec     54. 69.100 / 54. 69.100
   libavformat    54. 34.100 / 54. 34.100
   libavdevice    54.  3.100 / 54.  3.100
   libavfilter     3. 20.105 /  3. 20.105
   libswscale      2.  1.101 /  2.  1.101
   libswresample   0. 16.100 /  0. 16.100
   libpostproc    52.  1.100 / 52.  1.100
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '1280x720_Shinkarenko-
 Gonzalez.mp4':
   Metadata:
     major_brand     : isom
     minor_version   : 512
     compatible_brands: isomiso2avc1mp41
     creation_time   : 1970-01-01 00:00:00
     encoder         : Lavf52.94.0
   Duration: 00:07:36.22, start: 0.000000, bitrate: 3470 kb/s
     Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p,
 1280x720 [SAR 1:1 DAR 16:9], 3298 kb/s, 29.97 fps, 29.97 tbr, 30k tbn,
 59.94 tbc
     Metadata:
       creation_time   : 1970-01-01 00:00:00
       handler_name    : VideoHandler
     Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo,
 s16, 165 kb/s
     Metadata:
       creation_time   : 1970-01-01 00:00:00
       handler_name    : SoundHandler
 Output #0, image2, to 'images/keyframes%03d.jpg':
   Metadata:
     major_brand     : isom
     minor_version   : 512
     compatible_brands: isomiso2avc1mp41
     encoder         : Lavf54.34.100
     Stream #0:0(und): Video: mjpeg, yuvj420p, 1280x720 [SAR 1:1 DAR 16:9],
 q=2-31, 200 kb/s, 90k tbn, 29.97 tbc
     Metadata:
       creation_time   : 1970-01-01 00:00:00
       handler_name    : VideoHandler
 Stream mapping:
   Stream #0:0 -> #0:0 (h264 -> mjpeg)
 Press [q] to stop, [?] for help
 [h264 @ 0xecf420] concealing 3600 DC, 3600 AC, 3600 MV errors in P frame
 [h264 @ 0xe8a5a0] concealing 3600 DC, 3600 AC, 3600 MV errors in P frame
 [h264 @ 0x1005400] concealing 3600 DC, 3600 AC, 3600 MV errors in P frame
 [h264 @ 0xf9de80] concealing 3600 DC, 3600 AC, 3600 MV errors in P frame
 [h264 @ 0xf36900] concealing 3600 DC, 3600 AC, 3600 MV errors in P frame
 [h264 @ 0xecf420] concealing 3600 DC, 3600 AC, 3600 MV errors in P frame
 [h264 @ 0xe8a5a0] concealing 3600 DC, 3600 AC, 3600 MV errors in P frame
 [h264 @ 0x1005400] concealing 3600 DC, 3600 AC, 3600 MV errors in P frame
 [h264 @ 0xf9de80] concealing 3600 DC, 3600 AC, 3600 MV errors in P frame
 .......
 .......
 .......
 }}}

 I hope you also saw the output.log attachement

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


More information about the FFmpeg-trac mailing list