Re: mplayer doesn't update the size of a growing file
The Wanderer <[email protected]>
| Newsgroups | gmane.comp.video.mplayer.user |
|---|---|
| Organization | This space intentionally left blank. |
| Message-ID | <[email protected]> |
On 2018-09-02 at 19:37, arthurpeabody wrote: > When I listen to a stream I capture it with streamripper and listen > to the captured file with mplayer. mplayer never updates the size of > the file. When I change the position, if it's past the size of the > file when I started mplayer, mplayer quits. I'm not sure this would work, but have you considered playing from a pipe rather than a file? That is, if your streamripper output file is /tmp/output.rip, try playing with something like: mplayer - < /tmp/output.rip The '-' is standard command-line syntax for "standard input". The '<' redirects standard input to come from the specified file. In theory, this should prevent MPlayer from knowing how big the input file is, and make it possible to keep playing (or seeking) past the original end of the file. I've tested this by concatenating a second MPEG file onto the end of the first one after starting playback, and it seems to work as expected (even though MPlayer _does_ seem to know how big the file is supposed to be, at least enough to display a percentage-complete progress bar when seeking). I can't guarantee that that will hold for an actual streamed file, though. (You could also do the same thing with 'cat /tmp/output.rip | mplayer -', but that would get you dinged for "senseless use of cat".) -- 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 _______________________________________________ MPlayer-users mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEJCOqsZEc2qVC44pUBKk1jTQoMmsFAlubxDYACgkQBKk1jTQo MmuOKg/9FWvU1pT1yKBB2VMeR65SKTTXXRNhm6pNsaKl0lqD+tRlYK8GbgH44AJP YvuMN0BqmeRRRX+37zz1xNhYT+1VJuCRVXxTG4SYxPYNxNeBlEy2JOhILiuuDbWD PKKctXEEQZrd2VlUIAGNnixwgKq20TISh4VJnc70xVnz19F1zfXcPo1qNcWInw8B 5vrjJadb13jojAjDyU7UxfgvX0vozOlEY5xJgAJPmahUlLqzPK7XeCDAR9ti5eq7 z/l4lN1DZSY3HbsW7pXDvo4qeYTY+Rkcjox/EX6zszGOYWs7Q+Fn/rxa+9xecapk ynp1/tjk4+w8AzhG53t8ZkYBH+np7tEWYfiUYrIFdcMNWr5zyJusUkssXLws/0Vg ewqmiyeYZidRfSMHq2WRVGJXmIPmIDGuMXHI7hbbw/pzXOSE8y6OrlAojKh2HGd7 BClzdLLWOXjJi67bGnQDMljdC9cxilp+1sNk61Nxp8wUu3sZHbGHR1/pgCJs+7lQ IWdQr5FNSHTWD1UwTP+N0PuLl8evT1pmUCuzyLXNaPDi6lnAbvcbS1Ud5HEo2IDP ijDoXt0xIL/bcXvjh+O3EEjv6s4zWfjT0w709RHofgNPpEaB4kROZ34uYRm0TwDR fl1fkrq5x0scSL42091aJpI8LR2nmRpa8YF7PpfyLaLgcCn40ks= =fsq6 -----END PGP SIGNATURE-----