Hi I have a issue with mapping the audio tracks. In my case I want to
1. copy video from "%~n1.mkv" --> video 0 (copy video)
2. copy audio from "audio1.mka" (it has only one audio track) -->audio 0 (clean copy audio)
3. run "-filter_complex-deesser" on the "audio1.mka" --> audio 1 (deesser audio)
So I want the 1 audio track (or zero from ffmpeg logic) to be clean copy "audio1.mka" and the 2nd audio track (1 from ffmpeg logic) with the deesser
When I run my code the clean track is 2nd and the deeser is 1st, I want to switch them. I hope this makes sense.
Please help I can't figure this out, I tried everything ^^
Thank you
Code:ffmpeg ^ -i "%~n1.mkv" -i "audio1.mka" ^ -map 0:v:0 -c:v copy -map 1:a:0 -c:a copy -filter_complex "[1:a]deesser=i=1:f=0" -codec:a ac3 -b:a 160k -ar 44100 -sn -dn ^ "%~p1%~n1_mp4.mkv"
+ Reply to Thread
Results 1 to 10 of 10
-
-
Try this:
Code:ffmpeg ^ -i "%~n1.mkv" -i "audio1.mka" ^ -map 0:v:0 -c:v copy -map 1:a:0 -c:a copy -map 1:a:1 -filter_complex "[1:a]deesser=i=1:f=0" -codec:a ac3 -b:a 160k -ar 44100 -sn -dn ^ "%~p1%~n1_mp4.mkv"
-
Thanky you for your reply. There is an error "Stream map ´1:a:1´ matches no streams."
-
Okay I'm not sure if this is what you meant
Code:ffmpeg ^ -i "%~n1.mkv" -i "audio1.mka" ^ -map 0:v:0 -c:v copy -map 1:a:0 -c:a copy -map 1:a:0 -filter_complex "[1:a]deesser=i=1:f=0" -codec:a ac3 -b:a 160k -ar 44100 -sn -dn ^ "%~p1%~n1_mp4.mkv"
1. deeser
2. clean
3. clean -
Ok, then try this:
Code:ffmpeg ^ -i "%~n1.mkv" -i "audio1.mka" ^ -map 0:v:0 -c:v copy -map 1:a:0 -c:a copy -filter_complex "[1:a]deesser=i=1:f=0[a]" -map "[a]" -codec:a ac3 -b:a 160k -ar 44100 -sn -dn ^ "%~p1%~n1_mp4.mkv"
-
Thank you that worked
This was really driving me crazy ^^
Do I have to close the thread or marked it as solved? Or just leave it as it is? -
Okay new issue ^^
How do I say: copy video, and make this to ger:audio and map as 1st audio track
Code:-af "pan=stereo|c0=c2+0.6*c0+0.6*c4+c3|c1=c2+0.6*c1+0.6*c5+c3" -map 0:v:0 -c:v copy -map 0:a:m:language:ger -codec:a ac3 -b:a 160k -ar 44100
Code:-lavfi "[0]channelsplit=channel_layout=5.1[FL][FR][FC][LFE][SL][SR];[FL][FR][FC][LFE][SL][SR][1][1]amerge=8,channelmap=0|1|7|3|4|5:5.1,pan=stereo|c0=c2+0.6*c0+0.6*c4+c3|c1=c2+0.6*c1+0.6*c5+c3" -c:a ac3 -b:a 160k -ar 44100 -q:a 4 -y
Last edited by geextah_2; 22nd Mar 2024 at 18:01.
Similar Threads
-
Audio format problem with ffmpeg
By Boxcart in forum Capturing and VCRReplies: 0Last Post: 5th May 2023, 15:31 -
ffmpeg stream mapping, codecs, and filters
By johnnyquid in forum Video ConversionReplies: 2Last Post: 1st Nov 2022, 18:53 -
problems with mapping of livestream with ffmpeg
By Caidking in forum Video Streaming DownloadingReplies: 2Last Post: 15th Jul 2022, 16:29 -
ffmpeg mapping subtitles
By sambat in forum Video ConversionReplies: 4Last Post: 12th Jul 2022, 08:56 -
Audio channel mapping for BluRay audio to FLAC using eac3to
By calvinpn in forum AudioReplies: 3Last Post: 31st Jan 2020, 05:49