<div dir="ltr"><div>Good day.</div><div><br></div><div>I have been trying to implement a video segmenter in objective-c for an application on iPhone. I see that the ffmpeg has all the things I need such as encoders when used in a terminal of a pc. </div>
<div><br></div><div style>I have already ported the ffmpeg codes to be used in iOS. I would like to ask if you can give me tips on how can I trace the encoding and segmentation process in the ffmpeg code so I can mimic this process in iOS.</div>
<div style><br></div><div style>the command I use to encode and segment my file using mac terminal is:</div><div style><br></div><div style><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">ffmpeg -i <video-file> -vcodec libx264 -acodec libfaac -r 29.97 -profile:v baseline -b:v 2048k -maxrate 2048k -minrate 2048k -bufsize 2048k -force_key_frames 'expr:gte(t,n_forced*1)' -map 0 -flags -global_header -f segment -segment_list index.m3u8 -segment_time 1 -segment_format mpeg_ts -segment_list_type m3u8 segment%05d.ts</span> </div>
<div style><br></div><div style>or</div><div style><br></div><div style><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">ffmpeg -i </span><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><video-file></span><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:14px;line-height:14px"> </span><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"> </span><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">-c copy -bsf h264_mp4toannexb </span><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">-r 29.97 -profile:v baseline -b:v 2048k -maxrate 2048k -minrate 2048k -bufsize 2048k -force_key_frames 'expr:gte(t,n_forced*1)' -map 0 -flags -global_header -f segment -segment_list index.m3u8 -segment_time 1 -segment_format mpeg_ts -segment_list_type m3u8 segment%05d.ts</span><br>
</div><div><b style="font-family:garamond,serif"><font size="4" color="#999999"><br></font></b></div><div><b style="font-family:garamond,serif"><font size="4" color="#999999">Krissa G. Carbon</font></b><div><div dir="ltr">
<blockquote style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><font face="comic sans ms, sans-serif"><font color="#ffcc33">think</font>. <font color="#33cc00">create</font>. <font color="#ff6600">inspire</font>.<br>
</font></blockquote></div></div>
</div></div>