You are not logged in.

#1 2006-10-12 18:54:26

Ibex
Member
Registered: 2006-03-02
Posts: 127

gpg + mplayer + on-the-fly

I was wondering how I can play gpg-encrypted files with mplayer without to decrypt them to a temp file first. I encrypted the movie with gpg -e movie.mpg so now I have a movie.mpg.gpg.

I was thinking about contructions like:
gpg -d movie.mpg.gpg > mplayer
mplayer - < `gpg -d mplayer.mpg.gpg`

But nothing seems to work.

Sombody else who have an idea?

Offline

#2 2006-10-12 20:19:56

paranoos
Member
From: thornhill.on.ca
Registered: 2004-07-22
Posts: 442

Re: gpg + mplayer + on-the-fly

you're using file redirection when what you want is a pipe.

gpg -d movie.mpg.gpg | mplayer -

should work. (note, i don't know how gpg works, i'm assuming you do)

Offline

#3 2006-10-13 09:13:22

Ibex
Member
Registered: 2006-03-02
Posts: 127

Re: gpg + mplayer + on-the-fly

Hmmm, the problem now is that mplayer starts instantly.

First, I should enter the password for decoding the encrypted movie, and áfter I entered it, mplayer should start reading from the input.

Is there a way to let mplayer wait till I entered my password and pressed Enter?

Offline

#4 2006-10-13 09:20:16

Sigi
Member
From: Thurgau, Switzerland
Registered: 2005-09-22
Posts: 1,121

Re: gpg + mplayer + on-the-fly

I really don't have a clue but maybe something like this would work:

echo "password" | gpg -d movie.mpg.gpg | mplayer -

Dammit, haven't been here in a while. Still rocking Arch. smile

Offline

Board footer

Powered by FluxBB