<div dir="ltr">On Thu, May 29, 2014 at 8:04 AM, Vijay Kanta <span dir="ltr"><<a href="mailto:viju.kantah@gmail.com" target="_blank">viju.kantah@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000"><div><div class="h5">
    <div>On 05/28/2014 06:15 PM, Steve Boyer
      wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">
        <div>
          <div class="gmail_extra">
            <div class="gmail_quote">On Wed, May 28, 2014 at 3:34 AM,
              Vijay Kanta <span dir="ltr"><<a href="mailto:viju.kantah@gmail.com" target="_blank">viju.kantah@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>
                  <div>On 05/28/2014 05:17 AM, Carl Eugen
                    Hoyos wrote:<br>
                    <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      Vijay Kanta <a href="mailto:viju.kantah@..." target="_blank"><viju.kantah@...></a> writes:<br>
                      <br>
                      <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                        Can it be quicker and less resource<br>
                        hungry by altering the following command?<br>
                        <br>
                        :~$ /usr/local/bin/ffmpeg -i /link/to/music.mp3<br>
                        -i /link/to/video.mp4 -vcodec libx264 -crf 23<br>
                        -vf subtitles=/link/to/subtitles.srt -strict -2<br>
                        /link/to/muxed.mp4<br>
                      </blockquote>
                      This is missing console output but at least<br>
                      -preset ultrafast (and friends) come to<br>
                      mind.
                        <br>
                    </blockquote>
                  </div>
                </div>
              </blockquote>
              <div><br>
              </div>
              <div>This command will (if I understand correctly)
                transcode your audio. Using "-c:a copy" will copy the
                audio.mp3 into the muxed.mp4 container. Same thing with
                "-c:v copy" as the video.mp4 is (obviously) already in
                an MP4 container, it should be a trivial matter to mux
                the two streams into a single MP4.<br>
              </div>
              <div> </div>
              <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                <div>
                  <div>
                    <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      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>
                    </blockquote>
                  </div>
                </div>
                Sorry, what do you mean by missing console output? This
                command does output to the shell.<br>
              </blockquote>
              <div><br>
              </div>
              <div>It would help us even more if you could provide what
                your console outputs when the command runs.<br>
              </div>
              <div> </div>
              <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                Regards,<br>
                ~Vijay.
                <div>
                  <div><br>
                  </div>
                </div>
              </blockquote>
              <div>Steve<br>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
Libav-user mailing list
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a>
</pre>
    </blockquote></div></div>
    Hey, it doesn't work or I couldn't do it properly. Here's the
    command and output.<br>
    <br>
    FFMPEG-COMMAND: /usr/local/bin/ffmpeg -i music/qT0pdDhKxFDnfJHq2.mp3
    -c:a copy -i video/HKp1ZpHbANT4dmGRC.mp4 -vcodec libx264 -crf 23 -vf
    subtitles=subtitles/1718379803.srt -preset ultrafast -strict -2
    film/HKp1ZpHbANT4dmGRC.mp4<br>
    ffmpeg version 2.1.1 Copyright (c) 2000-2013 the FFmpeg developers<br>
      built on Dec 15 2013 14:17:24 with gcc 4.4.5 (Ubuntu/Linaro
    4.4.4-14ubuntu5)<br>
      configuration: --enable-libass --enable-shared --enable-libx264
    --enable-gpl<br>
      libavutil      52. 48.101 / 52. 48.101<br>
      libavcodec     55. 39.101 / 55. 39.101<br>
      libavformat    55. 19.104 / 55. 19.104<br>
      libavdevice    55.  5.100 / 55.  5.100<br>
      libavfilter     3. 90.100 /  3. 90.100<br>
      libswscale      2.  5.101 /  2.  5.101<br>
      libswresample   0. 17.104 /  0. 17.104<br>
      libpostproc    52.  3.100 / 52.  3.100<br>
    Input #0, mp3, from 'music/qT0pdDhKxFDnfJHq2.mp3':<br>
      Metadata:<br>
        title           : Legendary<br>
        artist          : Oval<br>
        album           : Ringtone EP<br>
        track           : 1<br>
      Duration: 00:00:50.86, start: 0.000000, bitrate: 128 kb/s<br>
        Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s<br>
    Unknown decoder 'copy'<br>
    </div></blockquote><div><br></div><div>Vijay, Can you send me the input files so I can help come up with a fix? I am away from my home computer where I have a variety of mp4s and mp3s to test with. To me, this SHOULDN'T fail, so I am curious to see this myself.<br>

<br>Steve<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000">
    Regards,<br>
    ~Vijay.<br>
    <br>
  </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></div>