View previous topic :: View next topic |
Author |
Message |
stefan11111 l33t

Joined: 29 Jan 2023 Posts: 954 Location: Romania
|
Posted: Sat Jul 22, 2023 8:55 am Post subject: muxing/demuxing with ffmpeg |
|
|
I would like to de-multiplex video, sound and subs from videos and add such tracks to other videos via multiplexing.
Multiplexing/de-multiplexing has to be lossless.
I used to do this with mkvtoolnix, however I wanted to remove ruby from my system.
Any ideas how to do that? _________________ My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev" |
|
Back to top |
|
 |
szatox Advocate

Joined: 27 Aug 2013 Posts: 3608
|
Posted: Sat Jul 22, 2023 9:23 am Post subject: |
|
|
Is this what you're looking for?
Code: | Stream copy
Stream copy is a mode selected by supplying the "copy" parameter to the -codec option. It makes ffmpeg omit the decoding and encoding step for the specified stream, so it does only demuxing and
muxing. It is useful for changing the container format or modifying container-level metadata. The diagram above will, in this case, simplify to this:
_______ ______________ ________
| | | | | |
| input | demuxer | encoded data | muxer | output |
| file | ---------> | packets | -------> | file |
|_______| |______________| |________|
Since there is no decoding or encoding, it is very fast and there is no quality loss. However, it might not work in some cases because of many factors. Applying filters is obviously also impossible,
since filters work on uncompressed data.
|
|
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|