[FFmpeg-user] transcode/convert /copy
Ron Barnes
rbarnes at njdevils.net
Mon Mar 4 13:42:29 EET 2019
Thank you!
-----Original Message-----
From: ffmpeg-user <ffmpeg-user-bounces at ffmpeg.org> On Behalf Of Gyan
Sent: Sunday, March 3, 2019 11:41 PM
To: ffmpeg-user at ffmpeg.org
Subject: Re: [FFmpeg-user] transcode/convert /copy
On 04-03-2019 03:32 AM, Ron Barnes wrote:
> Hello all,
>
> I am transcoding a movie to h.265 and converting the 1st audio stream to MP3. My question is this, is there a way to convert the 1st audio stream to MP3 AND THEN copy the exact same audio stream as it was originally encoded?
> My goal is to have two copies, one of them as original and one of them as MP3.
>
> Please see my script below..
>
>
> ffmpeg -i "INPUT.mkv" -c:v libx265 -analyzeduration 6000M -probesize
> 6000M -preset medium -map 0 -c:s copy -c:a:0 libmp3lame -b:a:0 128k
> -reserve_index_space 2500k -crf 23 -pix_fmt yuv420p -color_primaries
> bt2020 -color_trc smpte2084 -colorspace bt2020nc -color_range tv -ac 2
> -metadata title="SOMETHING" OUTPUT.mkv
>
Use
ffmpeg -analyzeduration 6000M -probesize 6000M -i "INPUT.mkv" -map 0:v -map 0:a:0 -map 0:a -map 0:s? -map 0:d?
-c:v libx265 -preset medium -crf 23 -pix_fmt yuv420p -color_primaries bt2020 -color_trc smpte2084 -colorspace bt2020nc -color_range tv
-ac:a:0 2 -c:a copy -c:a:0 libmp3lame -b:a:0 128k -c:s copy -reserve_index_space 2500k -metadata title="SOMETHING" OUTPUT.mkv
Gyan
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
More information about the ffmpeg-user
mailing list