Hey sorry for being a first-poster but I don't know anything about FFmpeg.
What I have is a file that contains 5 audio streams that I want to replace. Doing this in Subler it works perfectly; I just open the file, delete the audio streams and insert my own ones, Subler automatically keeps the rest of the file (e.g. meta data) and I can export. Unfortunately I couldn't achieve this behavior with FFmpeg yet. What I tried is
But then I get a video file with 2 (instead of 5) audio streams, it just drops the other ones that I did not replace. Also, the meta data gets lost on the way and I can't play the track as an audio file anymore (only video players will open it then), which is something that was possible with the original file before.Code:ffmpeg -i file1.mp4 -i audio.mp4 -vcodec copy -acodec copy -map 0:0 -map 1:0 -map_metadata 0 next2.mp4
Any ideas?
Thanks a lot
Alex
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 1 of 1
Thread
Similar Threads
-
Problem with replacing FFmpeg DLLs in eac3to with newer versions.
By eddman in forum Newbie / General discussionsReplies: 0Last Post: 26th Feb 2015, 13:24 -
Replacing only a portion of video with new, audio remains the same?
By gastrof in forum Newbie / General discussionsReplies: 1Last Post: 22nd Sep 2013, 19:55 -
What is the ffmpeg command to merge two mono audio streams into one stereo?
By Iced Coffee in forum Video ConversionReplies: 1Last Post: 10th Feb 2013, 23:54 -
Ffmpeg meta data fails to write UTF-8 and screws up files?
By burzum793 in forum AudioReplies: 0Last Post: 22nd Nov 2012, 06:36 -
VDub & AviSynth: Errors with ffmpeg and VBR audio streams
By klischee in forum Software PlayingReplies: 8Last Post: 20th Aug 2011, 20:13