[MPlayer-users] SIGCONT causes fast-forward effect
Kevin DeKorte
kdekorte at gmail.com
Sun Dec 7 23:02:33 CET 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Pete Nesbitt wrote:
> On Sun, 07 Dec 2008 11:29:41 -0800
> Pete Nesbitt <pete at linux1.ca> wrote:
>> <snip>
>> I have it
>> functioning at the cli but when I start the player (with the same cmd)
>> from within the script, a write to the fifo file just hangs and does
>> not return. This happens writting to it via script or at cli. Strange.
>>
>> I'm using this in both cli and script, with $TRACK being the path to
>> the flac audio file.
>>
>> mplayer -slave -input file=/data/cm_temp/mplayer_cmds_fifo -quiet
>> ${TRACK} &> /dev/null
>>
>> echo pause > /data/cm_temp/mplayer_cmds_fifo
>>
>> Anyway, I really like the FIFO idea, and will work on finding why the
>> script-started mplayer is not letting anything write to the fifo.
>>
>
> I fixed the hanging/non-return issue, I can tail the fifo file and it is
> being written but not being picked up by mplayer.
>
> It does not seem to matter what I send mplayers stdout/err to (null or
> the pipe).
>
> So a little progress anyway. Could the backgrounded while-loop that
> mplayer runs in be involved? It does not seem likely, player should
> still see the pipe/file.
>
> This is the guts of the loop, I need to send output somewhere to get
> control back when I bg it, so I think the 'done' line need to stay as
> is.
>
> while ....
> do
> ...
> ${MPLAYER} -slave -input file=/data/cm_temp/mplayer_cmds_fifo \
> -quiet ${TRACK} &> /dev/null
> ...
> done < ${PLAY_LIST} &> /dev/null &
>
> -Pete
Try adding -nocache to the mplayer command and see if that helps with
mplayer finding the end of file better.
Kevin
- --
Get my public GnuPG key from
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7D0BD5D1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iEYEARECAAYFAkk8R/gACgkQ6w2kMH0L1dF1mgCeM84m/w5X2wkr9dVvS+DD6FTz
rKwAnjEtgs04nSqhwBz47Zt7dnKSxPAS
=AgJa
-----END PGP SIGNATURE-----
More information about the MPlayer-users
mailing list