Two mono audio streams to one stereo audio stream

Questions and answers on how to get the most out of FFAStrans
admin
Site Admin
Posts: 1680
Joined: Sat Feb 08, 2014 10:39 pm

Re: Two mono audio streams to one stereo audio stream

Post by admin »

Both method I described works perfectly when I'm testing. Either you create two command executors that move each file or you concatenate the two commands just like you would do in dos like my last example.

Currently ffastrans does not react on folders alone. What is the user scenario?

-steinar
vijm1972
Posts: 128
Joined: Fri Apr 24, 2015 7:35 am

Re: Two mono audio streams to one stereo audio stream

Post by vijm1972 »

We have received source files in folders, as per below example.

Folder Name:
Test

File Name:
Test_StL.wav
Test_StR.wav

Wanted to process those files using folders. We have more than 800 folders which we need to process using same workflow. That's why we are trying to automate it as much as possible.

Will try the moving option again and let you know.

Thanks,
Vijay
vijm1972
Posts: 128
Joined: Fri Apr 24, 2015 7:35 am

Re: Two mono audio streams to one stereo audio stream

Post by vijm1972 »

I am able to move the files now, error in %s_my_user_var%_StL.wav, also wanted to know if I can move both the source files to one folder with source file name?

Thanks,
Vijay
admin
Site Admin
Posts: 1680
Joined: Sat Feb 08, 2014 10:39 pm

Re: Two mono audio streams to one stereo audio stream

Post by admin »

Yes you can move both source filed to one folder with the source name. With the "Command executor"-node you can do pretty much whatever you want but you need some basic knowledge on running dos commands and on how to use variables in FFAStrans.

You can "monitor" folders by monitoring files with the "Recurse"-option checked. So lets say you monitor "d:\media"...
Use %s_original_path~n% to retrieve the folder name(s) of the original file. Replacing n with 1 gives you the folder name that holds the files. F.ex.if you pick up the file "d:\media\something\strange\SUPERCOOL\Test_StL.wav", using %s_original_path~1% would return "SUPERCOOL". With the same logic, %s_original_path~2% would return "strange".

You can create folders in the "Comman executor"-node by using the md (makedir) command. This is dos, has nothing to do with FFAStrans but you utilize the variables in FFAStrans to dynamically construct your command line.

Hope this helps :-)

-steinar
vijm1972
Posts: 128
Joined: Fri Apr 24, 2015 7:35 am

Re: Two mono audio streams to one stereo audio stream

Post by vijm1972 »

Hi Steinar,

Please suggest on below error.

Mono_To_Stereo|2017/04/11 16:00:54|2017/04/11 16:01:58|\\tnc1\IDS_ITUNES\TERN\Mono_To_Stereo\Inbox\TE00001124_01_0001_A0_HD_HD_D_PV02_A_DEU.StL.wav|Process exited with error code: 1 (The system cannot find the file specified.)|0

Files processed successfully but source files can't move to completed folder. If source files are not there how come output file processed?
I attached logs of both the files (Error file and sucessfully processed file)
WorkflowError.rar
(7.15 KiB) Downloaded 545 times

Thanks,
Vijay
admin
Site Admin
Posts: 1680
Joined: Sat Feb 08, 2014 10:39 pm

Re: Two mono audio streams to one stereo audio stream

Post by admin »

Your file naming is not consistent.

What you process:
\\tnc1\IDS_ITUNES\TERN\Mono_To_Stereo\Inbox\TE00001124_01_0001_A0_HD_HD_D_PV02_A_DEU.StL.wav
\\tnc1\IDS_ITUNES\TERN\Mono_To_Stereo\Inbox\TE00001124_01_0001_A0_HD_HD_D_PV02_A_DEU.StR.wav

What you try to move:
\\tnc1\IDS_ITUNES\TERN\Mono_To_Stereo\Inbox\TE00001124_01_0001_A0_HD_HD_D_PV02_A_DEU_StL.wav
\\tnc1\IDS_ITUNES\TERN\Mono_To_Stereo\Inbox\TE00001124_01_0001_A0_HD_HD_D_PV02_A_DEU_StR.wav


-steinar
vijm1972
Posts: 128
Joined: Fri Apr 24, 2015 7:35 am

Re: Two mono audio streams to one stereo audio stream

Post by vijm1972 »

Thanks for your support.
vijm1972
Posts: 128
Joined: Fri Apr 24, 2015 7:35 am

Re: Two mono audio streams to one stereo audio stream

Post by vijm1972 »

Hi Steinar,

I am receiving below message while processing jobs on 0.8.0.2 version.

Message1.JPG
Message1.JPG (17.21 KiB) Viewed 14696 times
Once I click on OK, job start processing.

Please find attached workflow I am using, after completion of jobs I am getting two notification in status monitor window. Please find below screenshot for your reference.

20170321143743.rar
(1.48 KiB) Downloaded 558 times
Please suggest if there is any changes require in workflow.

Status Monitor.JPG
Status Monitor.JPG (34.16 KiB) Viewed 14696 times
Can you please check and suggest.

Regards,
Vijay
admin
Site Admin
Posts: 1680
Joined: Sat Feb 08, 2014 10:39 pm

Re: Two mono audio streams to one stereo audio stream

Post by admin »

Oh that's a bad one! :oops:
I've updated to 0.8.0.3. Please upgrade.

Thanks for reporting! :-)

-steinar
paulgriffiths
Posts: 1
Joined: Thu Nov 29, 2018 10:52 am

Re: Two mono audio streams to one stereo audio stream

Post by paulgriffiths »

admin wrote: Tue Apr 04, 2017 9:29 pm You can construct a new name by f.ex. setting %s_my_user_var% to $trimr("%s_original_name%", 2). %s_my_user_var% is now set to "Test". *_L" is stripped away.

On the destination folder node check the "Drop original name" option and insert your variable %s_my_user_var% in the "Prefix" field. Now your output should be "Test.wav" if you input file was "Test_L.wav".

-steinar
Hi, I can't get this to work in v0.9.3, the custom ffmpeg doesn't get populated with a path to the file so errors with no video or audio. If I try and make a directory named after the user variable using the command executor this errors with error 1 so again the path is not being passed over. Any ideas?

thanks,

Paul
Post Reply