BUnipendix / PyCriUsm

a python script to decrypt and demux Honkai: Star Rail cutscene video
96 stars 11 forks source link

Problem with output video DTS and PTS #12

Open iBobbyTS opened 5 months ago

iBobbyTS commented 5 months ago

Only 3 frames from the output video can be played, here's a output message of ffmpeg, is there an overflow on DTS and PTS -9170736216176061440?

ffmpeg -i CS_Chap01_Act150_m.ivf -c copy CS_Chap01_Act150_m.webm
Input #0, ivf, from '/Users/ibobby/GitHub/PyCriUsm/output/CS_Chap01_Act150_m.ivf':
  Duration: 00:00:39.13, start: 0.000000, bitrate: 8003 kb/s
  Stream #0:0: Video: vp9 (Profile 0) (VP90 / 0x30395056), yuv420p(tv, smpte170m/unknown/unknown), 2560x1440, 30 tbr, 30 tbn
Output #0, webm, to '/Users/ibobby/GitHub/PyCriUsm/output/CS_Chap01_Act150_m.webm':
  Metadata:
    encoder         : Lavf60.16.100
  Stream #0:0: Video: vp9 (Profile 0) (VP90 / 0x30395056), yuv420p(tv, smpte170m/unknown/unknown), 2560x1440, q=2-31, 30 tbr, 1k tbn
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
Truncating packet of size 469827712 to 39049055
[ivf @ 0x7fabcea04680] Packet corrupt (stream = 0, dts = NOPTS).
[in#0/ivf @ 0x7fabcea043c0] corrupt input packet in stream 0
DTS -9170736216176061440, next:33333 st:0 invalid dropping
PTS -9170736216176061440, next:33333 invalid dropping st:0
[out#0/webm @ 0x7fabbd704540] video:38232kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
size=      98kB time=00:00:00.03 bitrate=24150.0kbits/s speed=0.577x
BUnipendix commented 5 months ago

11