Aegisub / Aegisub

Cross-platform advanced subtitle editor
http://devel.aegisub.org/
Other
3.11k stars 332 forks source link

Inconsistent video preview on one frame #376

Closed Misaka13514 closed 22 hours ago

Misaka13514 commented 5 days ago

Version: Win32&Win64 v3.2.2, wangqr/Aegisub v3.3.3 (Aegisub on linux cannot reproduce this issue)

Step to reproduce:

  1. Download Aegisub on Windows
  2. Download https://drive.apeiria.net/Aegisub/video.mp4 (Google Drive) SHA256: ACB7F7567197213690DF0F6A28585E81E1C770A4E791FE209AA1749F5FA82BD4
  3. Open Aegisub, Menu - Video - Open video open video.mp4
  4. Use arrow key or scroll on the timeline, checkout frame 150
  5. If you look from frame 145 or earlier to frame 150, you'll see cat ears.
  6. If you look from frame 155 or later to frame 150, you'll see Japanese text.
  7. They have the same time and frame info displayed in Aegisub.
  8. In other software (ffmpeg/AviSynth), frame 150 is always the cat ears. ffmpeg -i video.mp4 -vf "select='eq(n\,150)+eq(n\,151)'" -vsync vfr frames_%03d.png
MediaInfo ```txt General Complete name : video.mp4 Format : MPEG-4 Format profile : Base Media Codec ID : isom (isom/iso2/avc1/mp41) File size : 92.5 MiB Duration : 4 min 30 s Overall bit rate : 2 873 kb/s Frame rate : 23.976 FPS Writing application : Lavf61.1.100 Video ID : 1 Format : AVC Format/Info : Advanced Video Codec Format profile : High@L4 Format settings : CABAC / 3 Ref Frames Format settings, CABAC : Yes Format settings, Reference frames : 3 frames Codec ID : avc1 Codec ID/Info : Advanced Video Coding Duration : 4 min 29 s Bit rate : 2 739 kb/s Width : 1 920 pixels Height : 1 080 pixels Display aspect ratio : 16:9 Frame rate mode : Variable Frame rate : 23.976 (24000/1001) FPS Minimum frame rate : 23.974 FPS Maximum frame rate : 23.981 FPS Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Bits/(Pixel*Frame) : 0.055 Stream size : 88.2 MiB (95%) Color range : Limited Color primaries : BT.709 Transfer characteristics : BT.709 Matrix coefficients : BT.709 Codec configuration box : avcC Audio ID : 2 Format : AAC LC Format/Info : Advanced Audio Codec Low Complexity Codec ID : mp4a-40-2 Duration : 4 min 30 s Bit rate mode : Constant Bit rate : 128 kb/s Channel(s) : 2 channels Channel layout : L R Sampling rate : 44.1 kHz Frame rate : 43.066 FPS (1024 SPF) Compression mode : Lossy Stream size : 4.12 MiB (4%) Title : ISO Media file produced by Google Inc. Language : English Default : Yes Alternate group : 1 ```
FFprobe info of frame 150-151 ```txt [FRAME] media_type=video stream_index=0 key_frame=0 pts=559309 pts_time=6.214544 pkt_dts=559309 pkt_dts_time=6.214544 best_effort_timestamp=559309 best_effort_timestamp_time=6.214544 duration=3753 duration_time=0.041700 pkt_pos=1673489 pkt_size=115 width=1920 height=1080 crop_top=0 crop_bottom=0 crop_left=0 crop_right=0 pix_fmt=yuv420p sample_aspect_ratio=1:1 pict_type=P interlaced_frame=0 top_field_first=0 repeat_pict=0 color_range=tv color_space=bt709 color_primaries=bt709 color_transfer=bt709 chroma_location=left [/FRAME] [FRAME] media_type=video stream_index=0 key_frame=1 pts=563063 pts_time=6.256256 pkt_dts=563063 pkt_dts_time=6.256256 best_effort_timestamp=563063 best_effort_timestamp_time=6.256256 duration=3753 duration_time=0.041700 pkt_pos=1674359 pkt_size=22110 width=1920 height=1080 crop_top=0 crop_bottom=0 crop_left=0 crop_right=0 pix_fmt=yuv420p sample_aspect_ratio=1:1 pict_type=I interlaced_frame=0 top_field_first=0 repeat_pict=0 color_range=tv color_space=bt709 color_primaries=bt709 color_transfer=bt709 chroma_location=left [SIDE_DATA] side_data_type=H.26[45] User Data Unregistered SEI message [/SIDE_DATA] [/FRAME] ```
Misaka13514 commented 22 hours ago

Re-encoding the video by ffmpeg solved the issue, I guess there is some encoding issue with the video itself