Closed ghost closed 3 years ago
It's definitely possible and in my plans for vpyInput, but if @msg7086 will be faster, I'll cherry-pick that solution.
@DJATOM Nice to hear that ! Are there any plans for AVS ?
Implemented in my repo, AVS didn't yet cherry-picked from Yuuki-Asuna mod. You can get my mod with seeking on vpy here.
@DJATOM Amazing. That was fast. Tested OK. The frames are being seeked and counted properly !
Picked DJATOM's commit and also added avs seeking in f9c3b280. I haven't had any time to test, but I guess I eventually will do.
@DJATOM @msg7086 Thank you both of you!
Currently, the only build that I got that has both AVS and VPY is a test build made (yesterday) by @Patman86, and I tested it thoroughly. I have of course tested VPY in @DJATOM 's build. All my tests showed success, fortunately.
Hi @msg7086
When using --seek nnn with an avs or vpy direct input source, the x265 encoder will actually seem to begin encoding at the frame nnn, and will encode the proper number of frames specified with --frames, but the resulting video will actually start at frame 0 of the source, and not frame nnn.
Example (with AVS, and with VPY it's the same result).
Command line:
x265.exe --crf 24 --output-depth 10 --seek 200 --frames 980 --output Chunk2_out.hevc "Timecode sample - 25fps.avs"
Output Info of the encoding process:
As you see the frames that appear to be processed are 200 to 1179, and that's what's expected OK.
Encoded output video It is expected to start at source frame 200. The encoded video does NOT start at frame 200 of source video. It starts at frame 0. (I have used a video showing timecodes in order to have accurate readings)
Question: Is that any way this could work correctly ? Or is it an absolute limitation ?