<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><div>I prefer to turn it to C++, to avoid all the hassle.</div><div><br></div><div>Regards. </div><div><br><div><hr id="stopSpelling">From: 249165510@qq.com<br>To: libav-user@ffmpeg.org<br>Date: Sun, 6 Dec 2015 10:05:10 +0800<br>Subject: [Libav-user] 回复:  How to Demux mp4 to video/audio stream and Remuxthem back to mp4 using API?<br><br>Thank you very much,  I have download the example but not notice that.<br><div><div>Another problem is : <br>is it possible to build the file in Visual C++ 2010 ? It doesn't support c99,  code like :<br><pre style="font-family:YaHei Consolas Hybrid;font-size:15;color:black;background:white;">(AVRational){1, enc_ctx->sample_rate}
AVPacket packet = { .data = NULL, .size = 0 };
av_err2str(ret)
</pre>is not support in VC2010. I found c99-c89 tools can do that, but don't know how to make VC2010 invoke the tool to preprocess the source file. Maybe it need MinGW(etc.) to do that,  but I'm just using the FFmpeg, not build it all from the source, don't wanna make it so complicated.<br><br>Best Regards.<br></div><div><br></div><div style="font-size:12px;font-family:Arial Narrow;padding:2px 0 2px 0;">------------------ 原始邮件 ------------------</div><div style="font-size:12px;background:#efefef;padding:8px;"><div><b>发件人:</b> "Mohamed Moanis";<mohamed_moanis@outlook.com>;</div><div><b>发送时间:</b> 2015年12月6日(星期天) 凌晨3:32</div><div><b>收件人:</b> "This list is about using libavcodec, libavformat, libavutil, libavdeviceand libavfilter."<libav-user@ffmpeg.org>; <wbr></div><div></div><div><b>主题:</b> Re: [Libav-user] How to Demux mp4 to video/audio stream and Remuxthem back to mp4 using API?</div></div><div><br></div>

<style><!--
--></style>
<div dir="ltr"><div>>From: 249165510@qq.com<br>>To: libav-user@ffmpeg.org<br>>Date: Thu, 3 Dec 2015 23:32:36 +0800<br>>Subject: [Libav-user] How to Demux mp4 to video/audio stream and Remux them  back to mp4 using API?<br>><br>>Hi, I'm newbie to FFmpeg, could anyone tell how to demux a mp4 file to:<br>>video stream:  .h264<br>>audio stream: .aac<br>>then remux them back using C/C++ API, not the command tools.<br>><br>>equivalent to command:<br>>ffmpeg -i media\input.mp4 -vn -f aac media\output.aac<br>>ffmpeg -i media\input.mp4 -an media\video_only.mp4<br>>ffmpeg -i media\video_only.mp4 -i media\audio_only.aac  media\restore.mp4<br>><br>>Thanks a lot!</div><div><br></div><div><br></div><div>this <a href="https://ffmpeg.org/doxygen/2.8/transcoding_8c-example.html" target="_blank">example </a> from the ffmpeg site do exactly what you want with an additional filtering stage.</div><div><br></div><div>Regards.</div>                                    </div></div><br>_______________________________________________
Libav-user mailing list
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user</div></div>                                     </div></body>
</html>