When I convert it, the interleave duration becomes 40ms (1 frame), and somehow the host app that airs this file, reports the file is 1 frame longer than 1 minute.
The only way I can solve this is preprocess the file in Resolve, making the duration 1 frame shorter. Then after ffastrans processing, it becomes 1m0s video and 59.965ms audio, which is accepted as correct.
Can I solve this by adjusting the interleave duration of the DVCPRO encoder? Is it possible with FFAStrans?
Here's the ffmpeg command executed by ffastrans:
Code: Select all
-f lavfi -i "aevalsrc=0" -f lavfi -i "color=color=black:size=720x576" -shortest -map_metadata -1 -map 0:0 -filter_complex "[0:1]pan=1|c0=c0,aresample=osr=192000:osf=s32,alimiter=1:1:0.875:0.1:level=0,aresample=ochl=1[a1],[0:1]pan=1|c0=c1,aresample=osr=192000:osf=s32,alimiter=1:1:0.875:0.1:level=0,aresample=ochl=1[a2],[a1][a2]amerge=2,apad[astr1]" -map "[astr1]" -c:a:0 pcm_s16le -ar:a:0 48000 -vf "sidedata=delete,metadata=delete,setrange=tv,crop=w=in_w:h=540:x=0:y=18,colorspace=fast=1:ispace=smpte170m:itrc=smpte170m:iprimaries=bt470bg:all=bt601-6-625,bwdif=mode=1:parity=1,scale=w=720:h=576:flags=lanczos,framerate=50,tinterlace=mode=5,scale=interl=1,format=yuv420p,setfield=bff,setsar=r=1.06666666666667:max=16" -timecode 00:00:00:00 -vtag dvsd -c:v dvvideo -r 25 -top 0 -field_order bb -pix_fmt yuv420p -b:v 25000000 -minrate 25000000 -maxrate 25000000 -color_primaries bt470bg -color_trc smpte170m -colorspace bt470bg -color_range tv -chroma_sample_location topleft -signal_standard 1 -f avi -max_muxing_queue_size 700 -map_metadata -1 -metadata "creation_time=now" -y
and the info of the wrong length:Format : AVI
Format/Info : Audio Video Interleave
Commercial name : DV
File size : 221 MiB
Duration : 1 min 0 s
Overall bit rate mode : Constant
Overall bit rate : 30.9 Mb/s
Recorded date : 2024-08-12T14:13:26+03:00
Writing application : Adobe Photoshop 23.2 (20220118.orig.521 930aa48) (Windows)
Video
ID : 0
Format : DV
Codec ID : dvsd
Codec ID/Hint : Sony
Duration : 1 min 0 s
Bit rate mode : Constant
Bit rate : 24.4 Mb/s
Width : 720 pixels
Height : 576 pixels
Display aspect ratio : 4:3
Frame rate mode : Constant
Frame rate : 25.000 FPS
Standard : PAL
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Interlaced
Scan order : Bottom Field First
Compression mode : Lossy
Bits/(Pixel*Frame) : 2.357
Time code of first frame : 00:00:00:00 / 00:00:00:00
Time code source : Adobe tc_A / Adobe tc_O
Stream size : 206 MiB (93%)
Audio
ID : 1
Format : PCM
Format settings : Little / Signed
Codec ID : 1
Duration : 1 min 0 s
Bit rate mode : Constant
Bit rate : 1 536 kb/s
Channel(s) : 2 channels
Sampling rate : 48.0 kHz
Bit depth : 16 bits
Stream size : 11.0 MiB (5%)
Alignment : Aligned on interleaves
Interleave, duration : 1000 ms (25.00 video frames)
Interleave, preload duration : 1000 ms
And this is audio info of the "correct" file:Format : AVI
Format/Info : Audio Video Interleave
Commercial name : DV
File size : 217 MiB
Duration : 1 min 0 s
Overall bit rate mode : Constant
Overall bit rate : 30.3 Mb/s
Writing application : Lavf60.17.100
Video
ID : 0
Format : DV
Codec ID : dvsd
Codec ID/Hint : Sony
Duration : 1 min 0 s
Bit rate mode : Constant
Bit rate : 24.4 Mb/s
Width : 720 pixels
Height : 576 pixels
Display aspect ratio : 4:3
Frame rate mode : Constant
Frame rate : 25.000 FPS
Standard : PAL
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Interlaced
Scan order : Bottom Field First
Compression mode : Lossy
Bits/(Pixel*Frame) : 2.357
Time code of first frame : 00:00:00:00
Time code source : ISMP
Stream size : 206 MiB (95%)
Audio
ID : 1
Format : PCM
Format settings : Little / Signed
Codec ID : 1
Duration : 1 min 0 s
Bit rate mode : Constant
Bit rate : 1 536 kb/s
Channel(s) : 2 channels
Sampling rate : 48.0 kHz
Bit depth : 16 bits
Stream size : 11.0 MiB (5%)
Alignment : Aligned on interleaves
Interleave, duration : 40 ms (1.00 video frame)
Audio
ID : 1
Format : PCM
Format settings : Little / Signed
Codec ID : 1
Duration : 59 s 965 ms
Bit rate mode : Constant
Bit rate : 1 536 kb/s
Channel(s) : 2 channels
Sampling rate : 48.0 kHz
Bit depth : 16 bits
Stream size : 11.0 MiB (5%)
Alignment : Aligned on interleaves
Interleave, duration : 40 ms (1.00 video frame)