FFASTrans does not create these files. I am referring to source files that have been incorrectly created by other programs, which we are trying to transcode into XDCAM.
Currently FFAStrans transcodes these files without reporting an error but the resulting audio is out of sync and "choppy" these files first must be processed by ffmpeg to correct the audio. Would it be possible to detect these types of files and run the ffmpeg fix as a processor?
Have you tried running these files without the "A/V Media"-decoder node?
If you could share with me some file(s) that initiates the issue it would be easier for me to investigate the possibility to pick up these anomalies.
I hooked the Folder watcher directly to the XDCAM encoder. The audio sounds correct (not choppy) but still has synchronization issues with the video. The video appears to be dropping frames. The source files are clearly incorrect. I have not found a transcoder that can deal with them properly.
[mp4 @ 0x7fa91a020600] Malformed AAC bitstream detected: use the audio bitstream filter 'aac_adtstoasc' to fix it ('-bsf:a aac_adtstoasc' option with ffmpeg)
av_interleaved_write_frame(): Operation not permitted
Hi Mark and thank you for sharing the problem file
I've been looking it and the video seem to have has variable frame rate balancing at around 24.98 fps. There are also some bad PTS but that may just be due to the variable fps?. "Fixing" the video using using the bitstream filter in ffmpeg cause the framerate to drop to around 24.93. So you will still have a problem with some encoders. However, I've been able to get good decoding and encoding using the "A/V Media"-decoder in intelligent mode. The audio and video is in sync and not choppy using and XDCAM 35 mbit, 50i fps mxf profile. At least not what I can see or hear. I have checked the file using Premiere 9 looking at frame by frame and carefully looking at sync.
Anyway, I will take a look at how I can further improve picking up failed conversions and your issue will be very helpfull in this regard!