Delay at start of video playback
The Wanderer <[email protected]> Sun, 01 Sep 2024 16:23:21 -0400
| Newsgroups | gmane.comp.video.mplayer.devel |
|---|---|
| Organization | This space intentionally left blank. |
| Message-ID | <[email protected]> |
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--===============8539693957046528368==
Content-Type: multipart/signed; micalg=pgp-sha512;
protocol="application/pgp-signature";
boundary="JS1MREIfatnWtHR2wlX4013LbdGn618n2"
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--JS1MREIfatnWtHR2wlX4013LbdGn618n2
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
With my just-built copy of MPlayer with current FFmpeg, when I play a
file that has a video stream (all the ones I've tried so far, at least),
it hangs for an extended period - with heavy CPU utilization - before it
brings up the video window. So far as I've measured, the total delay
appears to be on the order of 20 seconds. Once the video window appears,
things seem to work normally; CPU utilization goes down, playback is
normal, and I can seek around in the file without apparent issues.
With one such file, I appended '-v -v -v -v -v -v' to the command line,
and got in part the following output:
=3D=3D=3D=3D=3D=3D=3D=3D8<=3D=3D=3D=3D=3D=3D=3D=3D
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b746d80620]All info found
mp_seek(0x55b77974d5b0, 0, 65536)
mp_seek(0x55b77974d5b0, 0, 65536)
mp_seek(0x55b77974d5b0, 0, 65536)
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b746d80620]stream 0: start_time:
duration: 348.222875
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b746d80620]stream 1: start_time:
duration: 348.29932
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b746d80620]format: start_time:
duration: 348.29932 (estimate from stream)
bitrate=3D398 kb/s
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b746d80620]After
avformat_find_stream_info() pos: 117417 bytes read:134623 seeks:0 frames:=
12
=3D=3D> Found video stream: 0
=3D=3D=3D=3D=3D=3D=3D=3D8<=3D=3D=3D=3D=3D=3D=3D=3D
When the hang occurs, the final visible message is that third mp_seek.
The following three messages appear one at a time, seconds apart, over
the delay period; the ones after that appear to come at a more normal
rate, without visible delays. Those three appear to come from
ffmpeg/libavformat/demux.c:estimate_timings(); that suggests that the
issue may be in that function, or possibly in a callsite for the same,
but the recent changes to that file (per 'git log' in the internal
FFmpeg checkout) do not seem to show anything that looks suspicious to
me.
I am not currently sure how to start investigating further, aside from
possibly trying to bisect (which I could do, but don't have the time for
this afternoon).
This is fairly significantly impairing to convenient use of MPlayer, but
does not block me from using it entirely.
--=20
The Wanderer
The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man. -- George Bernard Shaw
--JS1MREIfatnWtHR2wlX4013LbdGn618n2
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEJCOqsZEc2qVC44pUBKk1jTQoMmsFAmbUzTkACgkQBKk1jTQo
MmstbRAAq46jSW0f09+25WTcL1wCqc/si8QTruTDvASSSYe3gaJkXLeHWCaI5hwX
SnVR92RBnG4qba4FTS5xC3yo2ADnM2ZV4tzIHyuqXFjPaX+GPkJvUeM7ynWqAUkc
MIAUU3DeMchTW9QhLTe+FsTXU9ei1h5RJp+l7k7fR5X45nnQD4NIcpBtEYavxgEx
5EZ9Sv0dMGE9NE0WULsVzXRdPlyqZyBGO1mS0WDkMV8Yejqd9Q19LPZxS7lhYTac
PKa9sGu1cuHRgeeajMVk+UVssHauwSfAslUOHEhgAw2EIQ/7KQipPHT8zpgpDO8Q
uFYkgaJaIGYvquf+GTC/7EDbtagNncvu44diSjVRYrFoVUr8O65RXIVhWokVmHOW
IxpIvN9cMLygMKm7H2bsulQdvW6Q7IaY6O1Ar3s8U8YWAwtRJAUM405agPMLxJU5
nHV0CT4S0Eq/mrDl6dalDYn9bUP14jDrx8mib/Qvg7LkDs4QHMu+D6QVXGSJ/+WB
pH1ic9kPK5SpFJkK+R35fn0h5Q434onDnayTmzVziG6hs1UamchAphqrkxjSglmU
Bodg9+7Qkd3QVa8VPXx4WxzKAwYPegB77TKOgBvZLvZrBEnkWVrb3omCstdUW6rE
SXakOpZmQoGwzF/5yOdRBs1q/gdw25PxEeN35RH1yR42VrCJnbA=
=zMK9
-----END PGP SIGNATURE-----
--JS1MREIfatnWtHR2wlX4013LbdGn618n2--
--===============8539693957046528368==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
MPlayer-dev-eng mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
--===============8539693957046528368==--