<div dir="ltr"><div>I recently added the H264 option. The regular copy "-c:v copy" was already present before and I got rid of them, because the video wasn't playing in the HTML5 or JW player. It required the special encoding.</div>
<div><br></div><div>As I said before audio copy didn't really make any difference when it worked. It's just the h264 which is required and I have to use it.</div><div><br></div><div>"-2 -strict"  were options from ffmpeg documentation when I was a noob, and never got rid of them.</div>
<div><br></div><div>Regards,</div><div>~Vijay.</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 4, 2014 at 6:42 PM, Steve Boyer <span dir="ltr"><<a href="mailto:steveboyer85@gmail.com" target="_blank">steveboyer85@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>On Wed, Jun 4, 2014 at 5:32 AM, Vijay Kanta <span dir="ltr"><<a href="mailto:viju.kantah@gmail.com" target="_blank">viju.kantah@gmail.com</a>></span> wrote:<br>
</div><div class="gmail_extra"><div class="gmail_quote"><div>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div dir="ltr">Hey guys,<br><br>I found out it's the H264 encoding that is really screwing up the cpu cycles, and not the audio. @carl, moving it down didn't help, it still says invalid command.<br>


<br>I found out that h264 encoding takes up 20 minutes with music and srt combined for a 2 min random video clip.<br></div></blockquote><div><br></div><div></div></div><div>That isn't surprising. That is why (and entirely my fault for not making it clearer) I suggested copying the audio stream as well as copying the the video stream (by using -c:v copy) as it already is in an MP4 compatible format. I've never messed around with subtitles, part of the reason I was asking for a sample mp3, mp4, and srt. What is the purpose of the -2 and -strict options? Try removing those and see if you have any better luck. If those don't work and are still unwilling to provide a sample, start with omitting the subtitle portions to make sure that the streams are being copied correctly, and build up from there.<span class="HOEnZb"><font color="#888888"><br>


<br>Steve<br> </font></span></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div><div><div class="gmail_extra">
<br><div class="gmail_quote">On Sat, May 31, 2014 at 1:24 PM, Carl Eugen Hoyos <span dir="ltr"><<a href="mailto:cehoyos@ag.or.at" target="_blank">cehoyos@ag.or.at</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div>Vijay Kanta <viju.kantah@...> writes:<br>
<br>
> ffmpeg -i music/qT0pdDhKxFDnfJHq2.mp3 -c:a copy<br>
> -i video/HKp1ZpHbANT4dmGRC.mp4 -vcodec libx264<br>
> -crf 23 -vf subtitles=subtitles/1718379803.srt<br>
> -preset ultrafast -strict -2<br>
> film/HKp1ZpHbANT4dmGRC.mp4<br>
<br>
</div>Move "-c:a copy" behind the last input file.<br>
<br>
But please note that compared to H264 encoding,<br>
audio encoding should always be fast, so the<br>
speed difference between audio copying and<br>
audio reencoding should be less than using<br>
different x264 presets.<br>
<div><div><br>
Carl Eugen<br>
<br>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
</div></div></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br></blockquote></div></div><br></div></div>
<br>_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br></blockquote></div><br></div>