Troubles to write on a NAS
Troubles to write on a NAS
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
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
Re: Troubles to write on a NAS
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.
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.
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""
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?
Re: Troubles to write on a NAS
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.
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.
Re: Troubles to write on a NAS
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?
Then, in the "set %s_source% variable to" section of the command executor set it to your output.
Basically I mean something like this:
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.
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"
Basically I mean something like this:
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""
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.
Re: Troubles to write on a NAS
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?

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?
Re: Troubles to write on a NAS
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.
Re: Troubles to write on a NAS
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
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
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
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
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
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?
Re: Troubles to write on a NAS
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.
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.

Re: Troubles to write on a NAS
Thank you very much for your answers!
I realise that i'm completely out of knowledge.
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!
I realise that i'm completely out of knowledge.

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!
Re: Troubles to write on a NAS
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
When i try to deliver a media on the nas. Theres is an error saying the my credentials are wrong