Merge Audio and Video Files

Questions and answers on how to get the most out of FFAStrans
emcodem
Posts: 445
Joined: Wed Sep 19, 2018 8:11 am

Re: Merge Audio and Video Files

Post by emcodem » Fri Sep 13, 2019 2:37 pm

Abdul, can you tell me one thing:
in case there are 2 audios, what is the filename of first and second audio file? are you able to tell from filename which one is first and second?
Please give 2 or 3 examples of pairs of audio filenames :-)
I'll prepare a small workflow that should help you getting started.

emcodem
Posts: 445
Joined: Wed Sep 19, 2018 8:11 am

Re: Merge Audio and Video Files

Post by emcodem » Fri Sep 13, 2019 3:26 pm

As i am running out of time, i'll give you something that could help.
This workflow is designed specially for you, Abdul. Currently it only works if m2v and wav are in the same folder.
Check it out.

What you definitely should do is to try to learn a little about ffastrans workflows in my workflows examples thread (search it on the forum).
All this currently does ist watch for the m2v file and get out the number of matching wav files and their names.
At the end this workflow splits up into 2 paths: 1 audio and 2 audios. It is best for start that you do not merge back to 1 path again, as this will only be very confusing for you.
Workflow_For_Adul.xml
(19.57 KiB) Downloaded 24 times

momocampo
Posts: 387
Joined: Thu Jun 08, 2017 12:36 pm
Location: France-Paris

Re: Merge Audio and Video Files

Post by momocampo » Fri Sep 13, 2019 3:32 pm

emcodem wrote:
Fri Sep 13, 2019 2:26 pm
momocampo wrote:
Fri Sep 13, 2019 1:57 pm
Is it something like :
/(.+)_P2High/
Just perfect, that should be enough! Congratulations!!
Youpiiiiiiiiiiiiiii :o :o :o :o :o

abul
Posts: 54
Joined: Wed Sep 11, 2019 12:45 pm

Re: Merge Audio and Video Files

Post by abul » Fri Sep 13, 2019 3:33 pm

Hi Sorry for the delay, was a a seminar
This is how the files with multiple audio are

Video:
world_drama_Test1Highc4502772015465248964185.m2v

food_show_mixingHighc4502772015465248964185.m2v

Audio:
world_drama_Test1High01c450277201807785423654895.wav
world_drama_Test1High00c450277201807785423654897.wav

food_show_mixingHighc4502772017852148452159.wav
food_show_mixingHighc4502772017412874237862.wav

I cannot tell which is first or not but the number seem to show.



also i realized i made a mistake earlier not all say P2High, P2 was part two of the video, :C i did not notice it on these files. so anything after High is nonsense string not P2High

abul
Posts: 54
Joined: Wed Sep 11, 2019 12:45 pm

Re: Merge Audio and Video Files

Post by abul » Fri Sep 13, 2019 3:37 pm

Thank you, Ill have a look at this and try work it out, really appreciate it

abul
Posts: 54
Joined: Wed Sep 11, 2019 12:45 pm

Re: Merge Audio and Video Files

Post by abul » Mon Sep 16, 2019 8:25 am

Hi Emcodem,

I've been playing around with the workflow you have provided, do you know the reason why it does not output correctly. the output i get looks like the too attachment i have provided.


Abul
Attachments
twoaudios.txt
(49 Bytes) Downloaded 23 times
oneaudio.txt
(10 Bytes) Downloaded 17 times

emcodem
Posts: 445
Joined: Wed Sep 19, 2018 8:11 am

Re: Merge Audio and Video Files

Post by emcodem » Mon Sep 16, 2019 11:27 am

Hey!
please try with files having P2High in their name.
this can easily be changed but i would like you to get it working before you change anything:)

abul
Posts: 54
Joined: Wed Sep 11, 2019 12:45 pm

Re: Merge Audio and Video Files

Post by abul » Mon Sep 16, 2019 1:06 pm

Same output,

First file name is correct and 2nd audio file just says 'v'

emcodem
Posts: 445
Joined: Wed Sep 19, 2018 8:11 am

Re: Merge Audio and Video Files

Post by emcodem » Mon Sep 16, 2019 1:46 pm

Sorry, there was a mistake in my wf, this should do it
Workflow_For_Adul_2.xml
(23.39 KiB) Downloaded 40 times
changed name detection from P2High to just High, but i expect you to figure this sruff out and hopefully change some stuff on ur own :)

abul
Posts: 54
Joined: Wed Sep 11, 2019 12:45 pm

Re: Merge Audio and Video Files

Post by abul » Mon Sep 16, 2019 1:52 pm

Thanks alot

Post Reply