2023-08-28, 03:08 AM
(2023-08-08, 10:17 PM)TheDreadPirate Wrote: Handbrake doesn't have a "copy" function.
I think this can be achieved with ffmpeg.
Quote:ffmpeg -i my_movie.mkv -c:v copy -c:a copy -c:s copy my_movie.mp4
I know this is old...but...
Code:
ffmpeg -i my_movie.mkv -map 0 -c copy my_movie.mp4
Use the -map option to map everything from the input file, otherwise you only get the first matching stream. So the codec declaration will only convert/copy the first matching stream that matches whatever you've said to convert or copy. One video, one audio, one subtitle. Some things aren't automatically mapped (certain metadata, attachments). The -map 0 option will pull over everything from that file. The -c copy just says that everything is a straight copy. If you have anything out of spec in the original file, it may throw errors.
Jellyfin 10.9.11 LSIO Docker | Ubuntu 24.04 LTS | i7-13700K | Arc A380 6 GB | 64 GB RAM | 79 TB Storage