[FFmpeg-user] How to copy all of 5 audio streams to mp4 file

Ulf Zibis Ulf.Zibis at gmx.de
Sun Feb 24 02:19:20 EET 2019

Am 23.02.19 um 22:05 schrieb Moritz Barsnick:
> On Fri, Feb 22, 2019 at 10:22:05 -0800, Hans Carlson wrote:
>> You might want to take a look at vgtmpeg:
>>    http://godromo.com/gmt/vgtmpeg
> Interesting stuff.
Indeed. I'm wondering, why vgtmpeg is not listed here:

> It seems it's an open issue regarding subtitles:
> https://github.com/vigata/vgtmpeg/issues/
Good catch, I have commented.

>> I haven't looked at it in quite a while because it was always out-of-date 
>> with respect the ffmpeg source.  It appears it's been updated to the 4.0 
>> branch now, but that was last year, so it's still quite out-of-date.
> It's almost dead-easy extracting a changeset from those sources and
> applying it on top of ffmpeg master HEAD. I haven't tried compiing yet
> though. Since it's open source, I could just as well provide that
> patchset as a fork/branch on Github. ;-)

Would you be capable to create such a patch? I really would appreciate
this. Additionally you need to add libdvdread-vgtmpeg
<http://github.com/concalma/libdvdread-vgtmpeg> for the new |dvdurl|

Now I've managed to name the subtitles manually. Additionally the
subtitle streams did not appear in the "correct" order, so I had to
remap them.

$ vgtmpeg -probesize 9223372036854775807 -analyzeduration 60000000 -i
dvd:///dev/sr1 -map 0:v -map 0:a -vf crop=720:552 -c:s copy -map 0:s:1
-metadata:s:s:0 language=eng -map 0:s:2 -metadata:s:s:1 language=ger
-map 0:s:3 -metadata:s:s:2 language=fra -map 0:s:12 -metadata:s:s:3
language=ita -map 0:s:4 -metadata:s:s:4 language=spa -map 0:s:5
-metadata:s:s:5 language=dut -map 0:s:0 -metadata:s:s:6 language=swe
-map 0:s:6 -metadata:s:s:7 language=fin -map 0:s:7 -metadata:s:s:8
language=nor -map 0:s:8 -metadata:s:s:9 language=dan -map 0:s:9
-metadata:s:s:10 language=por -map 0:s:10 -metadata:s:s:11 language=gre
-map 0:s:11 -metadata:s:s:12 language=heb -movflags +faststart VLuN.mp4
-map 0:d -f ffmetadata dvd_nav_packet


More information about the ffmpeg-user mailing list