APPEND AUDIO TRACK
APPEND AUDIO TRACK
Hi guys,
I need to create a new file with audio tracks added to it.
For example i have a PRORES file with 2 languages (4channels) and i need to create a new prores file with another language added...
a 6 channels audio file as result.
i tested some scripts but it will always replace the audio tracks!
HELP!
I need to create a new file with audio tracks added to it.
For example i have a PRORES file with 2 languages (4channels) and i need to create a new prores file with another language added...
a 6 channels audio file as result.
i tested some scripts but it will always replace the audio tracks!
HELP!
Re: APPEND AUDIO TRACK
Hello,
It seems quite easy to do. You have to create en custom ffmepg with a special map.
Something like that :
ffmpeg -i <sourceVideoFile> -i <sourceAudioFile1> -map 0 -map 1 -c copy <outputfile>
It will add the audio into the first file.
Beware, you have to check the map of the different files (do you have mono channel? or stereo etc)
Please tell us how are your audio stream ?
Cheers.
Benjamin
It seems quite easy to do. You have to create en custom ffmepg with a special map.
Something like that :
ffmpeg -i <sourceVideoFile> -i <sourceAudioFile1> -map 0 -map 1 -c copy <outputfile>
It will add the audio into the first file.
Beware, you have to check the map of the different files (do you have mono channel? or stereo etc)
Please tell us how are your audio stream ?
Cheers.
Benjamin
Re: APPEND AUDIO TRACK
All mono channles…
The other problem is that I cannot create a simple multistream audio using channel mapper.
For 6ch it creates only a 5.1 one stream file! but it's wrong!
The other problem is that I cannot create a simple multistream audio using channel mapper.
For 6ch it creates only a 5.1 one stream file! but it's wrong!
Re: APPEND AUDIO TRACK
But you wrote you want stereo streams each 2 channels no?
Re: APPEND AUDIO TRACK
Hello,
Ok, your audio file that you want to add, does have 1 stream with 2 channels or 2 streams with each 1 mono channel?
I ask because if you have a stereo file with 1 stream with 2 channels, you should convert into 2 monos. Why ? Because otherwise you will have inside you final file v+a1+a2+a3+a4+a5(2channels) > not good
Better if will be v+a1+a2+a3+a4+a5+a6
So you need to convert the stereo into monos :
ffmpeg -i stereo.wav -map_channel 0.0.0 left.wav -map_channel 0.0.1 right.wav
Then, you can now assemble :
ffmpeg -i <sourceVideoFile> -i left.wav -i right.wav -map 0 -map 0:1 -map 0:2 -map 0:3 -map 0:4 -map 1:0 -map 2:0 -c copy <outputfile>
It could be ok but you need to integrate that in FFastrans.
Hope that help.
Cheers.
Benjamin
Ok, your audio file that you want to add, does have 1 stream with 2 channels or 2 streams with each 1 mono channel?
I ask because if you have a stereo file with 1 stream with 2 channels, you should convert into 2 monos. Why ? Because otherwise you will have inside you final file v+a1+a2+a3+a4+a5(2channels) > not good
Better if will be v+a1+a2+a3+a4+a5+a6
So you need to convert the stereo into monos :
ffmpeg -i stereo.wav -map_channel 0.0.0 left.wav -map_channel 0.0.1 right.wav
Then, you can now assemble :
ffmpeg -i <sourceVideoFile> -i left.wav -i right.wav -map 0 -map 0:1 -map 0:2 -map 0:3 -map 0:4 -map 1:0 -map 2:0 -c copy <outputfile>
It could be ok but you need to integrate that in FFastrans.
Hope that help.
Cheers.
Benjamin
Re: APPEND AUDIO TRACK
Hey,
there are many options how to do that, e.g. using the pan filter (in this example, i only take 2 channels out of the firt input file but you will get the idea):
To be honest, there are so many resources on the internet about how to use avisynth or ffmpeg to do such stuff... the default way to get ffmpeg help would be to use their mailing list:
https://ffmpeg.org/mailman/listinfo/ffmpeg-user
Alternatively they provide very good answers on superuser:
https://superuser.com/
cheers,
emcodem
there are many options how to do that, e.g. using the pan filter (in this example, i only take 2 channels out of the firt input file but you will get the idea):
Code: Select all
ffmpeg -i D:\10s.mov -i D:\out.wav -map 0 -map -0:a -filter_complex "[0:a]pan=mono|c0=c0[a0];[0:a]pan=mono|c0=c1[a1]" -map "[a0]" -map "[a1]" -filter_complex "[1:a]pan=mono|c0=c0[a2];[1:a]pan=mono|c0=c1[a3]" -map "[a2]" -map "[a3]" -ar 48000 -c:v prores d:\out.mov
https://ffmpeg.org/mailman/listinfo/ffmpeg-user
Alternatively they provide very good answers on superuser:
https://superuser.com/
cheers,
emcodem
emcodem, wrapping since 2009 you got the rhyme?
Re: APPEND AUDIO TRACK
Thanks to all,
I will continue testing!
I will continue testing!
Re: APPEND AUDIO TRACK
Hi guys, thank you for your support... we are using FFASTRANS very well and all my job is going to automation.
What i need to know... is how to specify audio and video in FFASTRANS. If i submit two files, the batch process them one by one.
This could be a very important thing to do... the merge tracks!
I have tested all your codes and works very well... but i have to manually insert the name and path of the audio file.
Is possible to automate it inside FFASTRANS?
Thankssss
What i need to know... is how to specify audio and video in FFASTRANS. If i submit two files, the batch process them one by one.
This could be a very important thing to do... the merge tracks!
I have tested all your codes and works very well... but i have to manually insert the name and path of the audio file.
Is possible to automate it inside FFASTRANS?
Thankssss
Re: APPEND AUDIO TRACK
Hey backlight!
It could be helpful if you export and upload your current worfklow...
cheers,
emcodem
It could be helpful if you export and upload your current worfklow...
cheers,
emcodem
emcodem, wrapping since 2009 you got the rhyme?