<div>Hi, I'm currently working on converting h.264 elementary stream (file with postfiix .264) to transport stream (file with postfix .ts). I have finished the conversion successfully using ffmpeg command line "<em>ffmpeg -i in.264 -an -vcodec copy -f mpegts out.ts</em>".</div>
<div> </div><div>Now I want to implement this conversion using my own C++ code, by calling ffmpeg's libraries. I have downloaded precompiled ffmpeg libraries (libavcodec, libavformat etc). My input h.264 is prerecorded file, not live stream, and so as my output .ts file. So my question is which functions in the library should I call to implement the conversion? I'm still new for ffmpeg, so please forgive me about the naive questions.</div>
<div> </div><div>Thanks very much.</div>