[FFmpeg-user] how can I set limit_filesize or recording_time for the specific output dynamically?
刘 岐
lingjiujianke at gmail.com
Wed Oct 16 07:23:42 CEST 2013
在 2013-10-16,上午10:14,Huang Soho <soho123.2012 at gmail.com> 写道:
>
>
>
>
>
> Hey,
>
> Please try it , it can work when i used my camera
>
>
> [root at CM ~]# ffmpeg -f video4linux2 -s 1280x720 -i /dev/video0 -preset ultrafast -force_key_frames 3,6,9,12,15,18,21,24 -vcodec libx264 -vprofile baseline -vlevel 1.0 -s 640x480 -b:v 800k -r 15 -pix_fmt yuv420p -map 0:0 -f segment -segment_format mpegts -segment_time 3 -segment_list a.m3u8 -segment_list_flags live -map 0 -flags -global_header video-%d.ts
>
>
> hi,
>
> ffmpeg does not get Key frame information when ffmpeg do streamcopy, right?
Right
>
> because the check is FALSE always:
> "pkt->flags & AV_PKT_FLAG_KEY ",
>
> I do not know where is the code will set the pkt->flags to enable AV_PKT_FLAG_KEY when ffmpeg do streamcopy.
> if ffmpeg does not do transcode, then ffmpeg does not know the content of each video frame, right?
Right
> then ffmpeg how to know which video frame is Key frame?
if you want to set the keyframe into the AVFrame, maybe you must transcode:-), I'm not sure, Please ask in maillist. And CC Carl
Because I'm not always right.
Steven
More information about the ffmpeg-user
mailing list