[FFmpeg-user] Converting to h.265, keeping all audio streams

Lou lou at lrcd.com
Wed Jan 7 00:25:39 CET 2015

On Tue, 06 Jan 2015 22:44:11 +0100
cvb at kruemel.org wrote:

> Hi, I'm testing converting my h.264 movies to h.265 using ffmpeg (2.5.2 
> 64-bit static):


> ffmpeg -i "${TARGET}" -c:a copy -c:v libx265 -preset slow -x265-params 
> crf=24 -strict experimental "${TARGET}.mp4"

You should always include the complete console output too.

> I had hoped that this would transcode the video stream, keeping all 
> audio streams. But only one audio stream is kept, the others are 
> deleted:

See http://ffmpeg.org/ffmpeg.html#Stream-selection

Then http://ffmpeg.org/ffmpeg.html#Advanced-options (particularly the
first example)

More information about the ffmpeg-user mailing list