transcode/convert /copy

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

transcode/convert /copy

Ron Barnes
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


Thanks,

-Ron

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: transcode/convert /copy

James Girotti
I have had success mapping the stream again:

ffmpeg -i input.mkv -c:a:0 libmp3lame -map 0:a:0 -c:a copy output.mkv

Hope that helps,
-J
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: transcode/convert /copy

Gyan
In reply to this post by Ron Barnes


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
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: transcode/convert /copy

Ron Barnes
Thank you!

-----Original Message-----
From: ffmpeg-user <[hidden email]> On Behalf Of Gyan
Sent: Sunday, March 3, 2019 11:41 PM
To: [hidden email]
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
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email [hidden email] with subject "unsubscribe".

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: transcode/convert /copy

Ron Barnes
In reply to this post by James Girotti
Thank you!

-----Original Message-----
From: ffmpeg-user <[hidden email]> On Behalf Of James Girotti
Sent: Sunday, March 3, 2019 9:26 PM
To: FFmpeg user questions <[hidden email]>
Subject: Re: [FFmpeg-user] transcode/convert /copy

I have had success mapping the stream again:

ffmpeg -i input.mkv -c:a:0 libmp3lame -map 0:a:0 -c:a copy output.mkv

Hope that helps,
-J
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email [hidden email] with subject "unsubscribe".

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".