Re: [FFmpeg-devel] Would a crypto file be acceptable?

2022-12-29 Thread Michael Niedermayer
On Thu, Dec 29, 2022 at 03:51:24PM +0100, Mark Gaiser wrote: > On Wed, Dec 28, 2022 at 10:02 PM Michael Niedermayer > wrote: > > > Hi > > > > On Tue, Dec 27, 2022 at 11:46:38PM +0100, Mark Gaiser wrote: > > > On Tue, Dec 27, 2022 at 10:40 PM Michael Niedermayer < > > mich...@niedermayer.cc> > >

Re: [FFmpeg-devel] Would a crypto file be acceptable?

2022-12-29 Thread Mark Gaiser
On Wed, Dec 28, 2022 at 10:02 PM Michael Niedermayer wrote: > Hi > > On Tue, Dec 27, 2022 at 11:46:38PM +0100, Mark Gaiser wrote: > > On Tue, Dec 27, 2022 at 10:40 PM Michael Niedermayer < > mich...@niedermayer.cc> > > wrote: > > > > > On Wed, Dec 21, 2022 at 04:44:59PM +0100, Mark Gaiser wrote:

Re: [FFmpeg-devel] Would a crypto file be acceptable?

2022-12-29 Thread Ronald S. Bultje
Hi, On Wed, Dec 28, 2022 at 11:14 AM Mark Gaiser wrote: > On Wed, Dec 28, 2022 at 3:27 PM Ronald S. Bultje > wrote: > > > Hi Mark, > > > > On Tue, Dec 27, 2022 at 5:47 PM Mark Gaiser wrote: > > > > > The tricky part here is for anyone using this scheme to play this file. > > > Right now i'm

Re: [FFmpeg-devel] Would a crypto file be acceptable?

2022-12-28 Thread Michael Niedermayer
Hi On Tue, Dec 27, 2022 at 11:46:38PM +0100, Mark Gaiser wrote: > On Tue, Dec 27, 2022 at 10:40 PM Michael Niedermayer > wrote: > > > On Wed, Dec 21, 2022 at 04:44:59PM +0100, Mark Gaiser wrote: > > > Hi, > > > > > > The ffmpeg crypto protocol handler [1] allows one to play encrypted > > media.

Re: [FFmpeg-devel] Would a crypto file be acceptable?

2022-12-28 Thread Mark Gaiser
On Wed, Dec 28, 2022 at 5:30 PM Nicolas George wrote: > Mark Gaiser (12022-12-28): > > > Ok, that made me laugh :) > > I did not write that. And that feels rude. > > > Please correct me as I'm probably wrong. > > But where did anyone say that there was a working alternative solution > that > >

Re: [FFmpeg-devel] Would a crypto file be acceptable?

2022-12-28 Thread Nicolas George
Mark Gaiser (12022-12-28): > > Ok, that made me laugh :) I did not write that. And that feels rude. > Please correct me as I'm probably wrong. > But where did anyone say that there was a working alternative solution that > did not require customizing how ffmpeg is used? > Like disabling safe.

Re: [FFmpeg-devel] Would a crypto file be acceptable?

2022-12-28 Thread Mark Gaiser
On Wed, Dec 28, 2022 at 5:22 PM Nicolas George wrote: > Mark Gaiser (12022-12-28): > > There's definitely multiple things going on but it's not what you > summarize. > > You forgot the bit where “MU” told you your proposal was mostly > redundant, too limited and ad-hoc and would have security

Re: [FFmpeg-devel] Would a crypto file be acceptable?

2022-12-28 Thread Nicolas George
Mark Gaiser (12022-12-28): > There's definitely multiple things going on but it's not what you summarize. You forgot the bit where “MU” told you your proposal was mostly redundant, too limited and ad-hoc and would have security implications if more generic, and “DEV” conveniently ignored it. --

Re: [FFmpeg-devel] Would a crypto file be acceptable?

2022-12-28 Thread Mark Gaiser
On Wed, Dec 28, 2022 at 3:27 PM Ronald S. Bultje wrote: > Hi Mark, > > On Tue, Dec 27, 2022 at 5:47 PM Mark Gaiser wrote: > > > The tricky part here is for anyone using this scheme to play this file. > > Right now i'm doing this with a command line like: > > ffplay crypto://encrypted_file

Re: [FFmpeg-devel] Would a crypto file be acceptable?

2022-12-28 Thread Ronald S. Bultje
Hi Mark, On Tue, Dec 27, 2022 at 5:47 PM Mark Gaiser wrote: > The tricky part here is for anyone using this scheme to play this file. > Right now i'm doing this with a command line like: > ffplay crypto://encrypted_file -decryption_key $AES_KEY -decryption_iv > $AES_IV > > For brevity's sake,

Re: [FFmpeg-devel] Would a crypto file be acceptable?

2022-12-27 Thread Mark Gaiser
On Tue, Dec 27, 2022 at 10:40 PM Michael Niedermayer wrote: > On Wed, Dec 21, 2022 at 04:44:59PM +0100, Mark Gaiser wrote: > > Hi, > > > > The ffmpeg crypto protocol handler [1] allows one to play encrypted > media. > > > > The great thing here is that it allows playback of any media format that

Re: [FFmpeg-devel] Would a crypto file be acceptable?

2022-12-27 Thread Michael Niedermayer
On Wed, Dec 21, 2022 at 04:44:59PM +0100, Mark Gaiser wrote: > Hi, > > The ffmpeg crypto protocol handler [1] allows one to play encrypted media. > > The great thing here is that it allows playback of any media format that > ffmpeg supports! > Have a container format like mkv as an encrypted

Re: [FFmpeg-devel] Would a crypto file be acceptable?

2022-12-27 Thread Mark Gaiser
On Mon, Dec 26, 2022 at 12:18 PM Tomas Härdin wrote: > mån 2022-12-26 klockan 12:00 +0100 skrev Nicolas George: > > Tomas Härdin (12022-12-26): > > > That we want to avoid having keys in the command line is not > > > unreasonable. A -keyfile argument for crypto: might be appropriate. > > > > You

Re: [FFmpeg-devel] Would a crypto file be acceptable?

2022-12-26 Thread Nicolas George
Tomas Härdin (12022-12-26): > Right. And trying to smuggle in command line options via a file feels > made for exploitation.. This is why my proposal years ago was rejected by Reimar. And this is why concat requires -safe to accept options. To be fair, limiting the case to cryptographic keys

Re: [FFmpeg-devel] Would a crypto file be acceptable?

2022-12-26 Thread Tomas Härdin
mån 2022-12-26 klockan 12:00 +0100 skrev Nicolas George: > Tomas Härdin (12022-12-26): > > That we want to avoid having keys in the command line is not > > unreasonable. A -keyfile argument for crypto: might be appropriate. > > You are confusing two threads, the issue of credentials visible in >

Re: [FFmpeg-devel] Would a crypto file be acceptable?

2022-12-26 Thread Nicolas George
Tomas Härdin (12022-12-26): > That we want to avoid having keys in the command line is not > unreasonable. A -keyfile argument for crypto: might be appropriate. You are confusing two threads, the issue of credentials visible in the command line is for another proposal. This here is about giving

Re: [FFmpeg-devel] Would a crypto file be acceptable?

2022-12-26 Thread Tomas Härdin
fre 2022-12-23 klockan 17:31 +0100 skrev Mark Gaiser: > On Fri, Dec 23, 2022 at 12:05 PM Tomas Härdin wrote: > > > ons 2022-12-21 klockan 16:44 +0100 skrev Mark Gaiser: > > > Hi, > > > > > > The ffmpeg crypto protocol handler [1] allows one to play > > > encrypted > > > media. > > > > > > The

Re: [FFmpeg-devel] Would a crypto file be acceptable?

2022-12-23 Thread Gregor Riepl
I can't find a single thing about this in the ffmpeg documentation. How is this called, where can I read more about it and - most importantly - does it work out of the box? No, it does not. This was a suggestion that sounds like a better option than a custom metadata descriptor file that is

Re: [FFmpeg-devel] Would a crypto file be acceptable?

2022-12-23 Thread Nicolas George
Mark Gaiser (12022-12-23): > They actually point to N files. Could also be just 1. Wow, what an interesing and crucial distinction for the discussion. Goodbye. -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-devel mailing

Re: [FFmpeg-devel] Would a crypto file be acceptable?

2022-12-23 Thread Mark Gaiser
On Fri, Dec 23, 2022 at 5:34 PM Nicolas George wrote: > Mark Gaiser (12022-12-23): > > Then M3U as a format is business logic too. > > HLS and MPD are business logic too. > > At least, based on your comment, they would fall into that same category. > > > > The difference between those formats

Re: [FFmpeg-devel] Would a crypto file be acceptable?

2022-12-23 Thread Nicolas George
Mark Gaiser (12022-12-23): > Then M3U as a format is business logic too. > HLS and MPD are business logic too. > At least, based on your comment, they would fall into that same category. > > The difference between those formats and my suggestion? First difference: they point to several files,

Re: [FFmpeg-devel] Would a crypto file be acceptable?

2022-12-23 Thread Mark Gaiser
On Fri, Dec 23, 2022 at 12:05 PM Tomas Härdin wrote: > ons 2022-12-21 klockan 16:44 +0100 skrev Mark Gaiser: > > Hi, > > > > The ffmpeg crypto protocol handler [1] allows one to play encrypted > > media. > > > > The great thing here is that it allows playback of any media format > > that > >

Re: [FFmpeg-devel] Would a crypto file be acceptable?

2022-12-23 Thread Tomas Härdin
ons 2022-12-21 klockan 16:44 +0100 skrev Mark Gaiser: > Hi, > > The ffmpeg crypto protocol handler [1] allows one to play encrypted > media. > > The great thing here is that it allows playback of any media format > that > ffmpeg supports! > Have a container format like mkv as an encrypted blob,

Re: [FFmpeg-devel] Would a crypto file be acceptable?

2022-12-22 Thread Mark Gaiser
On Thu, Dec 22, 2022 at 8:15 PM Gregor Riepl wrote: > > The result should be no need to provide "crypto://". The ffmpeg file > format > > detection should detect that ".crypto" should be handled by the crypto > > plugin. > > Instead of a custom descriptor file format that is only used for this >

Re: [FFmpeg-devel] Would a crypto file be acceptable?

2022-12-22 Thread Gregor Riepl
The result should be no need to provide "crypto://". The ffmpeg file format detection should detect that ".crypto" should be handled by the crypto plugin. Instead of a custom descriptor file format that is only used for this particular special case, you could also define a custom URI, such as:

Re: [FFmpeg-devel] Would a crypto file be acceptable?

2022-12-22 Thread Hendrik Leppkes
On Thu, Dec 22, 2022 at 4:53 PM Mark Gaiser wrote: > > On Thu, Dec 22, 2022 at 11:40 AM Nicolas George wrote: > > > Mark Gaiser (12022-12-21): > > > While this works just fine, it's limited in use because the cryptography > > > details have to be passed on the command line. Applications that

Re: [FFmpeg-devel] Would a crypto file be acceptable?

2022-12-22 Thread Mark Gaiser
On Thu, Dec 22, 2022 at 11:40 AM Nicolas George wrote: > Mark Gaiser (12022-12-21): > > While this works just fine, it's limited in use because the cryptography > > details have to be passed on the command line. Applications that might > well > > support much of ffmpeg functionality can't easily

Re: [FFmpeg-devel] Would a crypto file be acceptable?

2022-12-22 Thread Nicolas George
Mark Gaiser (12022-12-21): > While this works just fine, it's limited in use because the cryptography > details have to be passed on the command line. Applications that might well > support much of ffmpeg functionality can't easily hook into the crypto > functionality. Take KODI for example, it

Re: [FFmpeg-devel] Would a crypto file be acceptable?

2022-12-21 Thread Mark Gaiser
On Wed, Dec 21, 2022 at 4:44 PM Mark Gaiser wrote: > Hi, > > The ffmpeg crypto protocol handler [1] allows one to play encrypted media. > > The great thing here is that it allows playback of any media format that > ffmpeg supports! > Have a container format like mkv as an encrypted blob, no

[FFmpeg-devel] Would a crypto file be acceptable?

2022-12-21 Thread Mark Gaiser
Hi, The ffmpeg crypto protocol handler [1] allows one to play encrypted media. The great thing here is that it allows playback of any media format that ffmpeg supports! Have a container format like mkv as an encrypted blob, no problem for the crypto plugin! I'm explicitly mentioning mkv (though