[Libav-user] Convert .264 to .ts using ffmpeg library

Xia Li summerlismile at gmail.com
Mon Jul 2 02:19:30 CEST 2012


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 "*ffmpeg -i in.264
-an -vcodec copy -f mpegts out.ts*".

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.

Thanks very much.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20120701/3f9b69df/attachment.html>


More information about the Libav-user mailing list