Page 4 of 7

Re: Merge Audio and Video Files

Posted: Fri Sep 13, 2019 2:37 pm
by emcodem
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.

Re: Merge Audio and Video Files

Posted: Fri Sep 13, 2019 3:26 pm
by emcodem
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 347 times

Re: Merge Audio and Video Files

Posted: Fri Sep 13, 2019 3:32 pm
by momocampo
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

Re: Merge Audio and Video Files

Posted: Fri Sep 13, 2019 3:33 pm
by abul
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

Re: Merge Audio and Video Files

Posted: Fri Sep 13, 2019 3:37 pm
by abul
Thank you, Ill have a look at this and try work it out, really appreciate it

Re: Merge Audio and Video Files

Posted: Mon Sep 16, 2019 8:25 am
by abul
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

Re: Merge Audio and Video Files

Posted: Mon Sep 16, 2019 11:27 am
by emcodem
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:)

Re: Merge Audio and Video Files

Posted: Mon Sep 16, 2019 1:06 pm
by abul
Same output,

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

Re: Merge Audio and Video Files

Posted: Mon Sep 16, 2019 1:46 pm
by emcodem
Sorry, there was a mistake in my wf, this should do it
Workflow_For_Adul_2.xml
(23.39 KiB) Downloaded 394 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 :)

Re: Merge Audio and Video Files

Posted: Mon Sep 16, 2019 1:52 pm
by abul
Thanks alot