Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Ask Lemmy
  3. Is there a way to encrypt or password-protect part of a video?

Is there a way to encrypt or password-protect part of a video?

Scheduled Pinned Locked Moved Ask Lemmy
asklemmy
27 Posts 12 Posters 108 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F This user is from outside of this forum
    F This user is from outside of this forum
    [email protected]
    wrote on last edited by [email protected]
    #1

    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

    P 6 A L D 8 Replies Last reply
    2
    • F [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

      P This user is from outside of this forum
      P This user is from outside of this forum
      [email protected]
      wrote on last edited by
      #2

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

      F 1 Reply Last reply
      2
      • F [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

        6 This user is from outside of this forum
        6 This user is from outside of this forum
        [email protected]
        wrote on last edited by
        #3

        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.

        F 1 Reply Last reply
        4
        • F [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

          A This user is from outside of this forum
          A This user is from outside of this forum
          [email protected]
          wrote on last edited by
          #4

          Just part?

          F 1 Reply Last reply
          1
          • F [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

            L This user is from outside of this forum
            L This user is from outside of this forum
            [email protected]
            wrote on last edited by
            #5

            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.

            F 1 Reply Last reply
            1
            • F [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

              D This user is from outside of this forum
              D This user is from outside of this forum
              [email protected]
              wrote on last edited by
              #6

              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.

              F 1 Reply Last reply
              4
              • F [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

                toes@ani.socialT This user is from outside of this forum
                toes@ani.socialT This user is from outside of this forum
                [email protected]
                wrote on last edited by
                #7

                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.

                quadraturesurfer@lemmy.worldQ 1 Reply Last reply
                1
                • L [email protected]

                  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.

                  F This user is from outside of this forum
                  F This user is from outside of this forum
                  [email protected]
                  wrote on last edited by
                  #8

                  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

                  1 Reply Last reply
                  0
                  • A [email protected]

                    Just part?

                    F This user is from outside of this forum
                    F This user is from outside of this forum
                    [email protected]
                    wrote on last edited by
                    #9

                    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

                    1 Reply Last reply
                    0
                    • 6 [email protected]

                      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.

                      F This user is from outside of this forum
                      F This user is from outside of this forum
                      [email protected]
                      wrote on last edited by
                      #10

                      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

                      C 1 Reply Last reply
                      0
                      • D [email protected]

                        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.

                        F This user is from outside of this forum
                        F This user is from outside of this forum
                        [email protected]
                        wrote on last edited by
                        #11

                        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

                        D 1 Reply Last reply
                        0
                        • F [email protected]

                          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

                          D This user is from outside of this forum
                          D This user is from outside of this forum
                          [email protected]
                          wrote on last edited by [email protected]
                          #12

                          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.

                          F 1 Reply Last reply
                          1
                          • D [email protected]

                            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.

                            F This user is from outside of this forum
                            F This user is from outside of this forum
                            [email protected]
                            wrote on last edited by
                            #13

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

                            D 1 Reply Last reply
                            0
                            • toes@ani.socialT [email protected]

                              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.

                              quadraturesurfer@lemmy.worldQ This user is from outside of this forum
                              quadraturesurfer@lemmy.worldQ This user is from outside of this forum
                              [email protected]
                              wrote on last edited by
                              #14

                              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.

                              1 Reply Last reply
                              2
                              • F [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

                                H This user is from outside of this forum
                                H This user is from outside of this forum
                                [email protected]
                                wrote on last edited by
                                #15

                                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.

                                F 1 Reply Last reply
                                2
                                • F [email protected]

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

                                  D This user is from outside of this forum
                                  D This user is from outside of this forum
                                  [email protected]
                                  wrote on last edited by
                                  #16

                                  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.

                                  F 1 Reply Last reply
                                  1
                                  • D [email protected]

                                    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.

                                    F This user is from outside of this forum
                                    F This user is from outside of this forum
                                    [email protected]
                                    wrote on last edited by
                                    #17

                                    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.

                                    L 1 Reply Last reply
                                    0
                                    • H [email protected]

                                      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.

                                      F This user is from outside of this forum
                                      F This user is from outside of this forum
                                      [email protected]
                                      wrote on last edited by
                                      #18

                                      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

                                      H 1 Reply Last reply
                                      0
                                      • F [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

                                        crackhappy@lemmy.worldC This user is from outside of this forum
                                        crackhappy@lemmy.worldC This user is from outside of this forum
                                        [email protected]
                                        wrote on last edited by
                                        #19

                                        No. You have to chop it up.

                                        F 1 Reply Last reply
                                        1
                                        • F [email protected]

                                          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

                                          H This user is from outside of this forum
                                          H This user is from outside of this forum
                                          [email protected]
                                          wrote on last edited by [email protected]
                                          #20

                                          I know you want one file, but sometime the "workaround" is the way to go. At least, that is how I would solve the issue.

                                          I'm not really sure what your end goal is,
                                          I imagine you have a website with a 15min preview and a screen at the end end to say "enter access code now".
                                          If the code is entered you point to a second video and set to start at the 15min marker.

                                          F 1 Reply Last reply
                                          1
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups