FORUMS: list search recent posts

using FFmpeg API for H264 frame capture

COW Forums : FFmpeg

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
coco serujil
using FFmpeg API for H264 frame capture
on Nov 7, 2010 at 4:36:58 pm

I would like to use FFmpeg to grab still frames from video files. i'm only interested in H264 encoded videos, and maybe one another codec later.
how is it possible to use the ffmpeg code in my project, so that i'll be able to do this?

thanks,
c.s.


Return to posts index

Amir Rhi
Re: using FFmpeg API for H264 frame capture
on Nov 8, 2010 at 6:19:05 am

Hi
Your question is my question also and i look forw the answer. even i tried to extract i-frames by ffmpeg directly( not in another program) and i could not . just i found that if you like to convert all frames to i-frame, the command would be:
ffmpeg -i -vcodec mpeg2video -qscale 1 -qmin 1 -intra -an output.m2v


Return to posts index

Michael Rampe
Re: using FFmpeg API for H264 frame capture
on Nov 9, 2010 at 11:20:17 am

[coco serujil] "I would like to use FFmpeg to grab still frames from video files. i'm only interested in H264 encoded videos"

This works for me.

ffmpeg -vframes 1 -ss 10 -i default.mp4 -f image2 -vcodec mjpeg frame%d.jpg

"-vframes 1" means only render one frame.
"-ss 10" means pull the frame at 10 seconds.
This was tested with H.264 footage.

Michael


Return to posts index


coco serujil
Re: using FFmpeg API for H264 frame capture
on Nov 10, 2010 at 6:29:45 am

Actually, i'm not trying to use regular FFmpeg to do so, but to compile it so that it will include only a few codecs (H.264 and a few more).
I want to do this in order to lower the final size of FFmpeg's binary.

Can anyone help me?


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]