I want to combine the following two commands into one command, if possible.
Audio from audio.mp4 on top of the video from video.mp4, output to temp.mp4
ffmpeg -i video.mp4 -i audio.mp4 -map 0:v:0 -map 1:a:0 -shortest -s hd1080 -r 24 temp.mp4
Hardcode subtitles from subtitles.ass into temp.mp4, and output to final.mp4
ffmpeg -i temp.mp4 -vf "ass=subtitles.ass" final.mp4
So, is there a way to hardcode the subtitles while I am also remapping the streams from the two video sources? Any attempts I have tried have just resulted in a video with no subtitles. Essentially, I want to avoid the double render.
I've figured out all my ffmpeg problems so far, but this one has me stumped.
Thanks!
System Info: Windows 7
ffmpeg info:
ffmpeg version N-54277-gff130d7 Copyright (c) 2000-2013 the FFmpeg developers built on Jun 30 2013 01:25:12 with gcc 4.7.3 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetyp e --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --ena ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-l ibopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libsp eex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo- amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs -- enable-libxvid --enable-zlib libavutil 52. 37.101 / 52. 37.101 libavcodec 55. 17.100 / 55. 17.100 libavformat 55. 10.100 / 55. 10.100 libavdevice 55. 2.100 / 55. 2.100 libavfilter 3. 77.101 / 3. 77.101 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100
-vf "ass=subtitles.ass"
to the first command?ffmpeg
.