mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-04 05:44:53 +00:00
[PR #1872] fix(timing): Fix --goptime producing compressed timestamps #2650
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/CCExtractor/ccextractor/pull/1872
State: closed
Merged: Yes
Summary
Fixes Test 163 where
--goptimeoption produced compressed timestamps (00:00:01-02) instead of actual GOP times (17:56:40-47).Root Cause
When using
--goptime, there was a conflict between:The sync detection code saw these as ~64,598-second "jumps" and kept resetting timing, causing the output timestamps to be corrupted.
Fixes Applied
Guard video PES timing in
general_loop.c- skipset_current_ptsandset_ftswhenuse_gop_as_pts == 1to prevent PES PTS from overwriting GOP-based timingDisable sync check in
ccextractor.cwhenuse_gop_as_pts == 1since GOP time and PES PTS are in different time bases and sync detection is meaningless in this modeTest Results
Sample:
c83f765c661595e1bfa4750756a54c006c6f2c697a436bc0726986f71f0706cd.tsBefore fix:
After fix:
Test Plan
--goptimenow produces correct GOP-based timestamps--goptime) still works correctly🤖 Generated with Claude Code