Troubles to write on a NAS

Questions and answers on how to get the most out of FFAStrans
_Ilan
Posts: 14
Joined: Sat Mar 22, 2025 4:18 pm

Troubles to write on a NAS

Post by _Ilan »

Hello,

I'm having difficulties to right on a NAS from a command executor block that calls FFMPEG.
It works well when i use the ffmpeg command from my own CLI.

I've tried to make sure that ffastrans service is allowed to right on my NAS but normally everything connected has all rights.
I'm not sure if the service is allowed but it is ticked as "open a session as local system account"

this is the error i have: (full split log in attachment)
Error opening output \\\\172.23.99.49\\Stockage Froid\\OUT\\testGjain2.mxf: Invalid argument\r\n

Do you have any idea on what it could be?

Thanks
_Ilan
Attachments
20250326-1228-2102-516b-29a9fe35867f~1-0-0.json
(24.8 KiB) Downloaded 11 times
emcodem
Posts: 1855
Joined: Wed Sep 19, 2018 8:11 am

Re: Troubles to write on a NAS

Post by emcodem »

You are right, the command itself looks fine. Well ok the audio mapping looks a bit strange if you want to produce xdcamhd mxf but at least it should run and encode something.

If you are not sure that you got write access to the storage, simplify the workflow and e.g. just use a deliver processor only and submit a local file directly to it.

When you say it works on CLI, can you confirm that the exact command works? e.g.

Code: Select all

C:\Windows\system32\cmd.exe /C ""\\localhost\c$\FFAStrans1.4.1\processors\FFMpeg\x64\ffmpeg.exe" -i D:\Gjain.mp4 -vf scale=1920:1080:force_original_aspect_ratio=1,pad=1920:1080:(ow-iw)/2:(oh-ih)/2,setsar=1 -c:v mpeg2video -top 0 -b:v 50M -pix_fmt yuv422p -r 50 -acodec pcm_s24le -ar 48000 -filter:a loudnorm=i=-23 -f mxf "\\172.23.99.49\Stockage Froid\OUT\testGjain2.mxf""
Just asking because you got all these messages about non found keyframes in the source file which indicates a defect or read issues on the source.
Plus, for such experiments or worfklow building in general, use the webinterface for convenient access to job logs.
emcodem, wrapping since 2009 you got the rhyme?
_Ilan
Posts: 14
Joined: Sat Mar 22, 2025 4:18 pm

Re: Troubles to write on a NAS

Post by _Ilan »

Hi ,

Yes my command is not totally fine but at least it encode my medias. I'm tied with really short deadline. Trying to do my best according to my skill level XD

i confirm that the exact command is working on CLI.

"If you are not sure that you got write access to the storage, simplify the workflow and e.g. just use a deliver processor only and submit a local file directly to it."
This is what i was not sure about. How to use a delivery block after a ffmpeg in a command executor. So i'm forcing it in the command but it's not that convenient.
User avatar
FranceBB
Posts: 275
Joined: Sat Jun 25, 2016 3:43 pm
Contact:

Re: Troubles to write on a NAS

Post by FranceBB »

Given that you're trying to create an XDCAM-50 file, is there any particular reason why you're not using the built-in XDCAM encoder?
_Ilan wrote: Wed Mar 26, 2025 12:40 pm How to use a delivery block after a ffmpeg in a command executor.
When you're outputting the file in FFMpeg, don't write to destination, write here:

Code: Select all

"%s_job_work%\%s_original_name%_encoded.mxf"
Then, in the "set %s_source% variable to" section of the command executor set it to your output.

Basically I mean something like this:
Screenshot from 2025-03-26 13-14-50.png
Screenshot from 2025-03-26 13-14-50.png (25.63 KiB) Viewed 449 times

Code: Select all

%comspec% /C ""%s_ffmpegx64%" -i "%s_source%" -vf scale=1920:1080:force_original_aspect_ratio=1,pad=1920:1080:(ow-iw)/2:(oh-ih)/2,setsar=1 -c:v mpeg2video -top 0 -b:v 50M -pix_fmt yuv422p -r 50 -acodec pcm_s24le -ar 48000 -filter:a loudnorm=i=-23 -f mxf -y "%s_job_work%\%s_original_name%_encoded.mxf""
From there you can use the delivery node.
Still, I very much suggest you the use of the built-in XDCAM encoder instead, not only it's developed in a way that it always produces compliant outputs , but an encoding node is much more than a command line executor, it goes through the filter_builder which creates the appropriate filterchain for every given input to produce the appropriate output before feeding the encoder. For instance, it takes care of things like chroma sampling, chroma location, matrix/transfer/primaries conversion, upscale/downscale, frame rate conversion and much much much more.
_Ilan
Posts: 14
Joined: Sat Mar 22, 2025 4:18 pm

Re: Troubles to write on a NAS

Post by _Ilan »

Hi :),

Thanks for the advices!

I'm not using the built-in XDCAM because i have to encode into 50p and this preset is not available.
I'm surely understanding the blocks wrongly. I tried the fps converter but wasn't working as expected.

also, is it possible to treat the media one after this other and not simultaneously with a command executor?
_Ilan
Posts: 14
Joined: Sat Mar 22, 2025 4:18 pm

Re: Troubles to write on a NAS

Post by _Ilan »

About the audio part of my command, the idea is to normalise my medias (i can receive any type, i have no indication uprfont) according to ebu r128. I understood that "loudnorm" was able to apply a kind of preset of every settings.
emcodem
Posts: 1855
Joined: Wed Sep 19, 2018 8:11 am

Re: Troubles to write on a NAS

Post by emcodem »

Please try only deliver node for sorting out potential authentification issues, no encode nothing else, just deliver. If it works let us know, if not you know that there is some permission issue which you solve before going on tinkering with the workflow e.g. start by uninstall the service and test delivery atgain
_Ilan wrote: Wed Mar 26, 2025 1:59 pm About the audio part of my command, the idea is to normalise my medias (i can receive any type, i have no indication uprfont) according to ebu r128. I understood that "loudnorm" was able to apply a kind of preset of every settings.
For applying R128 you must know the audio configuration of the input, there is no other way. Also, as R128 is calculated as a mean value from the whole program, you must analyze it first in order to get out how much you have to raise/lower the level. There is literally no way to do that in a single pass as you attempt to do it. I search some example workflow for you in the forum and post it quickly. ffmpeg loudnorm filter will just mess up the audio but definitely not do r128 in one pass

The best thing you can do is to assume you always get stereo pairs and no mono or 5.1 content at all. Anything else requires to "know" the audio configuration of the source before you do the r128 analysis and normalisation. But even this requires a smart way to handle the channels and tracks, you really should try to work with the inbuilt Loudness Analyzer and apply the normalisation using some stock encoder node.

Here some example WF for R128:
viewtopic.php?p=8689#p8689
_Ilan wrote: Wed Mar 26, 2025 1:51 pm I'm not using the built-in XDCAM because i have to encode into 50p and this preset is not available.
Also there is no 50p XDCAM profile, the 50mbit would be far too less, you'd need 100Mbit mpeg2 to get xdcam like quality from 50p. The only known to me profiles that support 50p 1080 are AVC-I/XAVC. Thats why the inbuilt encoder does not support it.
I might be able to help you how to generate 50p with the inbuilt encoder node but first we need to settle the audio stuff and other questions. For the moment please use the inbuilt xdcam encoder instead of custom commandline and encode to 25p
_Ilan wrote: Wed Mar 26, 2025 1:51 pm also, is it possible to treat the media one after this other and not simultaneously with a command executor?
Sorry but didnt understand that question. Maybe the question is superseeded anyway because of what i said before?
emcodem, wrapping since 2009 you got the rhyme?
User avatar
FranceBB
Posts: 275
Joined: Sat Jun 25, 2016 3:43 pm
Contact:

Re: Troubles to write on a NAS

Post by FranceBB »

_Ilan wrote: Wed Mar 26, 2025 1:51 pm I'm not using the built-in XDCAM because i have to encode into 50p and this preset is not available.
Well, there's a very simple reason why it's not available: it doesn't exist xD
When you're encoding in HD so 1280x720 then you can go to 50p, however if you're encoding to FULL HD you can only go to 25i.
In attachment you can find a backup copy of the XDCAM Specifications provided by Sony.
XDCAM_Part1.pdf
(2.08 MiB) Downloaded 14 times
XDCAM_Part2.pdf
(1.89 MiB) Downloaded 13 times
XDCAM_Part3.pdf
(1.47 MiB) Downloaded 15 times
_Ilan wrote: Wed Mar 26, 2025 1:51 pm I tried the fps converter but wasn't working as expected.
Please note that - in order to use any Avisynth filter - you gotta add an A/V Decoder node first so that your source is indexed. :)
_Ilan
Posts: 14
Joined: Sat Mar 22, 2025 4:18 pm

Re: Troubles to write on a NAS

Post by _Ilan »

Thank you very much for your answers!

I realise that i'm completely out of knowledge. :lol:

I have to deliver 1920:1080 50p medias from a unknown variety of medias.
We wanted to do much more that we are capable of... In the end we might script it (I can't make the watchfolder working a realiable)

Going back to it!
_Ilan
Posts: 14
Joined: Sat Mar 22, 2025 4:18 pm

Re: Troubles to write on a NAS

Post by _Ilan »

There is indeed a problem with rights.
When i try to deliver a media on the nas. Theres is an error saying the my credentials are wrong
Post Reply