user1795: I'm trying to get ffmpeg to output separate audio and video files in 1 command.
Here are the 2 commands I have:
ffmpeg -ss 04:53 -i ./07.mkv -t 3 -c:v libx264 -crf 18 -filter:v "setpts=PTS-STARTPTS, crop=960:720, scale=480:360" -an -sws_flags lanczos -fflags +genpts 07-alexFlex.mp4
ffmpeg -ss 04:53 -i ./07.mkv -t 3 07-alexFlex.mp3

Is there a way to get it in 1 command? Ideally both the audio and video files would share the same name automatically without me changing it twice in both commands. Thanks.

user1871: Daisychain the commands, so
ffmpeg -ss 04:53 -i ./07.mkv -t 3 -c:v libx264 -crf 18 -filter:v "setpts=PTS-STARTPTS, crop=960:720, scale=480:360" -an -sws_flags lanczos -fflags +genpts 07-alexFlex.mp4 -ss 04:53 -i ./07.mkv -t 3 07-alexFlex.mp3 


1795: <p>I'm trying to get ffmpeg to output separate audio and video files in 1 command.</p>

<p>Here are the 2 commands I have:</p>

<pre><code>ffmpeg -ss 04:53 -i ./07.mkv -t 3 -c:v libx264 -crf 18 -filter:v "setpts=PTS-STARTPTS, crop=960:720, scale=480:360" -an -sws_flags lanczos -fflags +genpts 07-alexFlex.mp4
ffmpeg -ss 04:53 -i ./07.mkv -t 3 07-alexFlex.mp3
</code></pre>

<p>Is there a way to get it in 1 command? Ideally both the audio and video files would share the same name automatically without me changing it twice in both commands. Thanks.</p>
 1871: <p>Daisychain the commands, so</p>

<pre><code>ffmpeg -ss 04:53 -i ./07.mkv -t 3 -c:v libx264 -crf 18 -filter:v "setpts=PTS-STARTPTS, crop=960:720, scale=480:360" -an -sws_flags lanczos -fflags +genpts 07-alexFlex.mp4 -ss 04:53 -i ./07.mkv -t 3 07-alexFlex.mp3 
</code></pre>
