Page 1 of 1

Audio not converting

Posted: Mon Dec 09, 2024 5:18 pm
by andrezagato
Hello,

I've been facing some issues with this specific type of files. The users send a tv show to some platform that uses AI to do audio translation. The file that they send back always stops during conversion. I have tried a lot of things and they always stop.
Here is the one thing I found weird in Media Info, and here is the log
20241209-1301-4232-51ff-1fc69b4b9047.json
(150.47 KiB) Downloaded 335 times
In this workflow I was applying the normalization, but even removing everything. The job stops at the same place.

Can you guys maybe give me a light ?

Re: Audio not converting

Posted: Mon Dec 09, 2024 6:31 pm
by emcodem
Well, thats a really short last frame :D
In your log, i don't see that it did actually encode or deliver anything, maybe i am blind tough.

As this is not reproduceable independently of source file, we'll need some file sample from you to investigate.
But even without such a sample i guess i can tell that the issue is caused by some speciality of the source file. As aac "frame duration" is fixed to 1024 samples, it is just natural that the last frame will alwas be special. So with aac, the audio is either longer or shorter than the video but it will most likely never match the video duration (independent of the input file).
However, it is the first time that i see a negative frame duration (does not mean much, i am specialized in production encoding not delivery).

As a workaround:
My guess is that it works for you if you encode to mxf first, no matter which codec, because mxf automatically forces exact same audio and video duration. I would try this first just to get it working once. Moving on i would play with different "pre rewrappings", maybe rewrap to mov but choose audio codec pcm_s24le.
Example commandline, not sure if this works:

Code: Select all

"%s_ffmpeg%" -i "%s_source%" -c:v copy -c:a pcm_s24le "%s_job_work%\%s_original_name%.mov"
And set cmd processor to set s_source variable to

Code: Select all

%s_job_work%\%s_original_name%.mov

without quotes

After that, analyze the loudness and encode (or do this after analyzing but before encoding, as you prefer)

Re: Audio not converting

Posted: Mon Dec 09, 2024 7:07 pm
by andrezagato
Thanks emcodem! I will try these options!
The job failed at the encoding node, it never went to the deliver node.
I could deliver as a MXF, if that solves it. I'll just change to that deliver node!

I'll let you know how it goes!

Re: Audio not converting

Posted: Tue Dec 10, 2024 6:31 pm
by emcodem
Just to let you know, as we didnt find the needed hints for what was going wrong in your job json,
Steinar added also some more logging for the next version. Not helpful for you but just fyi

Re: Audio not converting

Posted: Wed Dec 11, 2024 3:28 pm
by andrezagato
Hey guys! I tried the command executor way and using all different types of MXF, everything fails.
I tried decoding A/V and see if could bypass the audio, I was thinking of a way to split audio and video, and mix them together, to see if that could help out, but dind't find a way of doing that. But it will probably fail also...

Re: Audio not converting

Posted: Wed Dec 11, 2024 7:33 pm
by emcodem
Is there a way for you to provide a source file sample?

Re: Audio not converting

Posted: Fri Dec 13, 2024 11:23 am
by emcodem
Unfortunately even using that file i cannot reproduce any issue, even when using the workflow you sent.
You sure the issue happens with this very file too?

Can you run a decoding check with ffmpeg on one file that does not work for you?

Code: Select all

C:\ffastrans\Processors\ffmpeg\x64\ffmpeg.exe -i C:\Users\emcodem\Downloads\pt_AFP__20241202__36NX6EE__v3__MP41920x1080__RetrospectivaMundoOsFatosQueMarcaramO2Seme_translated.mp4  -f null -
Also, as we see exiftool errors in your workflow aboe, can you check if exiftool works when used manually?

Code: Select all

C:\temp\ffastrans1407\Processors\ffmpeg\exiftool.exe C:\Users\Gam3r1\Downloads\pt_AFP__20241202__36NX6EE__v3__MP41920x1080__RetrospectivaMundoOsFatosQueMarcaramO2Seme_translated.mp4

Re: Audio not converting

Posted: Fri Dec 13, 2024 4:34 pm
by andrezagato
Hey emcodem,

Still nothing.
Here are some logs of the attempts, using the exact same file I sent you.

Re: Audio not converting

Posted: Fri Dec 13, 2024 5:03 pm
by emcodem
OK the issue must be completely different than i thought. What fails is a normal exiftool analysis but as it works on my installations (tried different ffastrans versions), it should not be about a source file issue nor a software issue.

Can you try if this commandline works on MANVOLUMES?

C:\FFAStrans\processors\ffmpeg\exiftool.exe -ee \\172.168.100.20\Transfer\ENTRADA\VTS_HUB\pt_Migrant_Workers_Explains_Dotcom_Final_translated.mp4 -api largefilesupport=1 -json -charset filename=UTF8