14
submitted 1 day ago* (last edited 18 hours ago) by [email protected] to c/[email protected]

Updating the situation:

I'd like to do the following: for the first 15 minutes, I want to play the video normally and then either not show the rest or display a frozen image instead.

I occasionally encounter corrupted videos that only show certain parts and not the entire content.

I was wondering if I could replicate such a situation based on my selection. However, I would also like the option to view the entire video normally if I choose to do so through an alternative method

top 18 comments
sorted by: hot top new old
[-] [email protected] 1 points 23 minutes ago

No. You have to chop it up.

[-] [email protected] 25 points 1 day ago

No because it wouldn't be a video anymore. You would need to create your own file format and application to read that thing.

Also why? It seems like a very limited use case and I don't know any scenario where I would need that. No one encrypts videos except for those (idiots) who distribute movies in the theaters or on Blu-ray.

[-] [email protected] 2 points 18 hours ago

I'd like to do the following: for the first 15 minutes, I want to play the video normally and then either not show the rest or display a frozen image instead.

I occasionally encounter corrupted videos that only show certain parts and not the entire content.

I was wondering if I could replicate such a situation based on my selection. However, I would also like the option to view the entire video normally if I choose to do so through an alternative method

[-] [email protected] 2 points 16 hours ago

Have 2 files? The encrypted full version, and the 15min version with a frozen image tacked on at the end of the video for X amount of time.

[-] [email protected] 1 points 3 hours ago

I was thinking having the same 1 file can only play the first 15 min through a usual player as well as playable in full with another configured way

[-] [email protected] 14 points 1 day ago

There's not video format I know that has embedded encryption, total or partial. Neither I know any video players that would expect the user to introduce a password mid video.

So it's doable but you would probably need to do it all yourself.

Easiest way would really divide the video into multiple parts, the ones you want encrypted and the ones you do not. Then encrypt the files in general and call for decryption before attempting to play the encrypted parts with some external ui element.

[-] [email protected] 1 points 18 hours ago

I'd like to do the following: for the first 15 minutes, I want to play the video normally and then either not show the rest or display a frozen image instead.

I occasionally encounter corrupted videos that only show certain parts and not the entire content.

I was wondering if I could replicate such a situation based on my selection. However, I would also like the option to view the entire video normally if I choose to do so through an alternative method

[-] [email protected] 4 points 18 hours ago* (last edited 18 hours ago)

What you see is due to file corruption. The bits are not readable.

What you need can be done. You need a script that takes the video and purposely encrypt part of the data. Here you need to know the file format so you know what tou can encrypt.

The it's just a matter to run the script to encrypt and decrypt your video as needed.

Depending of the amount of security you require take into consideration that knowing that part of the video was purposely encrypted it's easy. Decryption of that part would depend on the strength of your algorithm and your key.

You should also take into account that depending on how the video is compressed (most videos are compressed, raw video takes too much space) you may not be able to cut with much precision the point in witch you want the video to stop being legible, depending of the type of compression it may have a few seconds of video each type which share the same data.

[-] [email protected] 1 points 17 hours ago

low security is ok, how can I go about it? any software or anything else I need to know

[-] [email protected] 2 points 16 hours ago

I suppose it's simple enough for a python script. I don't know about video formats but I don't think it would be really hard.

[-] [email protected] 1 points 3 hours ago

Thank you again.

I’m afraid I have no knowledge of Python or any scripting languages.

I hope this is just a beginner's brainstorming session, and that someone can guide me as if I were five years old.

[-] [email protected] 4 points 19 hours ago

Back in the day, you could do that in a flash presentation. (Sorta)

But without using something more powerful like that I wouldn't expect it to be possible.

[-] [email protected] 2 points 16 hours ago

You could use Ruffle since its an emulator for Flash:

https://en.m.wikipedia.org/wiki/Ruffle_(software)

https://github.com/ruffle-rs/ruffle

Websites like HomestarRunner use this so you can still experience the site as it was intended.

[-] [email protected] 17 points 1 day ago

Yeah with your own player and format you could do whatever you want

[-] [email protected] 9 points 1 day ago

This is a very broad question, the answer to which will almost definitely be "yes, but", so knowing what you are trying to achieve would be helpful.

[-] [email protected] 2 points 18 hours ago

I'd like to do the following: for the first 15 minutes, I want to play the video normally and then either not show the rest or display a frozen image instead.

I occasionally encounter corrupted videos that only show certain parts and not the entire content.

I was wondering if I could replicate such a situation based on my selection. However, I would also like the option to view the entire video normally if I choose to do so through an alternative method

[-] [email protected] 5 points 1 day ago
[-] [email protected] 1 points 18 hours ago

I'd like to do the following: for the first 15 minutes, I want to play the video normally and then either not show the rest or display a frozen image instead.

I occasionally encounter corrupted videos that only show certain parts and not the entire content.

I was wondering if I could replicate such a situation based on my selection. However, I would also like the option to view the entire video normally if I choose to do so through an alternative method

this post was submitted on 29 May 2025
14 points (81.8% liked)

Ask Lemmy

31896 readers
1819 users here now

A Fediverse community for open-ended, thought provoking questions


Rules: (interactive)


1) Be nice and; have funDoxxing, trolling, sealioning, racism, and toxicity are not welcomed in AskLemmy. Remember what your mother said: if you can't say something nice, don't say anything at all. In addition, the site-wide Lemmy.world terms of service also apply here. Please familiarize yourself with them


2) All posts must end with a '?'This is sort of like Jeopardy. Please phrase all post titles in the form of a proper question ending with ?


3) No spamPlease do not flood the community with nonsense. Actual suspected spammers will be banned on site. No astroturfing.


4) NSFW is okay, within reasonJust remember to tag posts with either a content warning or a [NSFW] tag. Overtly sexual posts are not allowed, please direct them to either [email protected] or [email protected]. NSFW comments should be restricted to posts tagged [NSFW].


5) This is not a support community.
It is not a place for 'how do I?', type questions. If you have any questions regarding the site itself or would like to report a community, please direct them to Lemmy.world Support or email [email protected]. For other questions check our partnered communities list, or use the search function.


6) No US Politics.
Please don't post about current US Politics. If you need to do this, try [email protected] or [email protected]


Reminder: The terms of service apply here too.

Partnered Communities:

Tech Support

No Stupid Questions

You Should Know

Reddit

Jokes

Ask Ouija


Logo design credit goes to: tubbadu


founded 2 years ago
MODERATORS