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

cvb at kruemel.org cvb at kruemel.org
Wed Jan 7 07:09:59 CET 2015

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

Sorry, I don't get the question. Does that sound a stupid idea? Is that 
something ffmpeg wasn't designed for?

I was mainly looking to test (video) quality in comparison die h.264. 
And should it be similar (to me), I might start think about converting 
the movies here to save space.

>> 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.

Really? For encoding almost 2 hourse of movie, that's going to be quite 
an amount of data...!

>> 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)

Thanks, so I'll need another -map 0, right?

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

Cheers, Chris

More information about the ffmpeg-user mailing list