Re: Possible to get full track path in slave mode?
Alec Bennett <[email protected]>
| Newsgroups | gmane.comp.video.mplayer.user |
|---|---|
| Message-ID | <CACB9+z3yDepfAL2SLisCD9NHZ5bAY_wxZOoOya5czKG3-bJL1A@mail.gmail.com> |
If there was some way to get mplayer to display the text it shows at the start of playback, I could process that. As it is, my workaround has been to launch a thread in my script that constantly monitors stdout from mplayer for the intro message shown at the start of each track, but that's of course messy. Here's sample output when it starts playing in -quiet mode, with the text I need in bold: *Playing /media/wrybread/test/test.mp3* Audio only file format detected. Load subtitles in /media/wrybread/test/ ========================================================================== Opening audio decoder: [mpg123] MPEG 1.0/2.0/2.5 layers I, II, III AUDIO: 44100 Hz, 2 ch, s16le, 192.0 kbit/13.61% (ratio: 24000->176400) Selected audio codec: [mpg123] afm: mpg123 (MPEG 1.0/2.0/2.5 layers I, II, III) ========================================================================== AO: [pulse] 44100Hz 2ch s16le (2 bytes per sample) Video: no video Starting playback... On Thu, Mar 28, 2019 at 8:21 PM Alec Bennett <[email protected]> wrote: > Looking over the docs for slave mode: > > http://www.mplayerhq.hu/DOCS/tech/slave.txt > > I see "get_file_name", which returns the basename of the currently playing > track, but I don't see a way to get the complete path of the currently > playing track. > > Is there some clever way to get the complete path? > > > _______________________________________________ MPlayer-users mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users