mpv-player / mpv

🎥 Command line video player
https://mpv.io
Other
28.66k stars 2.93k forks source link

EDL file - audio loses sync when image in between two videos #6766

Open WayneSherman opened 5 years ago

WayneSherman commented 5 years ago

mpv version and platform

mpv-x86_64-20190616-git-6aecd10.7z Windows 10 IoT Enterprise ver 1809

Reproduction steps

Create edl file as follows:

# mpv EDL v0
buckbunny-1920x1080@30-audio-10sec.mp4
RGB_grad.png,length=5
sintel-1920x1080@30-audio-10sec.mp4

Launch mpv as follows:

start "mpv" mpv.exe --geometry=512x256+0+0 --no-keepaspect --no-border --ontop --loop-playlist edl://playlist.edl

Expected behavior

buckbunny video plays with audio for 10 sec RGB_grad.png image plays with no audio for 5 sec sintel video plays with audio for 10 sec

Actual behavior

buckbunny video plays with audio for 10 sec (ok) RGB_grad.png image plays with sintel audio for 5 sec (not ok) sintel video plays with audio for 5 sec and no audio for 5 sec (not ok)

Log file

mpv_log2.txt

ghost commented 5 years ago

This is hard to fix, because it triggers the timestamp reset logic, which basically razes the playback state, and leads to the behavior you see. On the other hand, it's needed for real timestamp resets e.g. for ts playback. Might investigate a way to fix this later.