Page 1 of 1

Problems with mp4 files

Posted: Fri Nov 11, 2022 3:52 pm
by xabierpayet
i have several mp4 files and if i attempt to rewind 1 second any video, the video ever play from the same point, it´s normal? if i rewind the video 10 seconds, the video make the 10 seconds step correctly

pos=GetAttribute(#VIDEO,1,#ATTRPOSITION)
pos=pos+1000
SeekVideo(1, pos)

Re: Problems with mp4 files

Posted: Wed Nov 16, 2022 6:15 pm
by airsoftsoftwair
That's normal. Fine-tuned seeking is a very difficult task with lots of codecs. Maybe newer versions of FFmpeg are more precise here but avcodec.hwp uses a 10+ years old version of FFmpeg and seeking has always been somewhat experimental with it. There'll also often be some artefacts for a short time after seeking a stream.