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
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. FFMPEG encrypt & decrypt Video offline

FFMPEG encrypt & decrypt Video offline

Scheduled Pinned Locked Moved C / C++ / MFC
c++securitytoolsjsonquestion
5 Posts 2 Posters 4 Views 1 Watching
  • 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.
  • D Offline
    D Offline
    DARA ALAVI
    wrote on last edited by
    #1

    I want encrypt & decrypt Video file With FFMPEG oflfine mode in hard disk. I encrypt a Video File (mp4 Extention) by ffmpeg.exe Tools by this Command:

    ffmpeg -i SampleVideo_1280x720_1mb.mp4 -vcodec copy -acodec copy
    -encryption_scheme cenc-aes-ctr -encryption_key
    76a6c65c5ea762046bd749a2e632ccbb -encryption_kid
    a7e61c373e219033c21091fa607bf3b8 SampleVideo_1280x720_1mb_encrypted.mp4

    for decryption : i want decrypt and play video file (encrypted.mp4) in my player source c++ (ffmpeg base) and *now i dont wnat use decrypt file with command line with ffplay.exe *like this :

    ffplay SampleVideo_1280x720_1mb_encrypted.mp4 -decryption_key
    76a6c65c5ea762046bd749a2e632ccbb

    how i can do decrypt with Write programing code that use FFMPEG api? thanks in advance.

    V 1 Reply Last reply
    0
    • D DARA ALAVI

      I want encrypt & decrypt Video file With FFMPEG oflfine mode in hard disk. I encrypt a Video File (mp4 Extention) by ffmpeg.exe Tools by this Command:

      ffmpeg -i SampleVideo_1280x720_1mb.mp4 -vcodec copy -acodec copy
      -encryption_scheme cenc-aes-ctr -encryption_key
      76a6c65c5ea762046bd749a2e632ccbb -encryption_kid
      a7e61c373e219033c21091fa607bf3b8 SampleVideo_1280x720_1mb_encrypted.mp4

      for decryption : i want decrypt and play video file (encrypted.mp4) in my player source c++ (ffmpeg base) and *now i dont wnat use decrypt file with command line with ffplay.exe *like this :

      ffplay SampleVideo_1280x720_1mb_encrypted.mp4 -decryption_key
      76a6c65c5ea762046bd749a2e632ccbb

      how i can do decrypt with Write programing code that use FFMPEG api? thanks in advance.

      V Offline
      V Offline
      Victor Nijegorodov
      wrote on last edited by
      #2

      DARA ALAVI wrote:

      how i can do decrypt with Write programing code that use FFMPEG api?

      Read/learn the FFMPEG api documentation.

      D 1 Reply Last reply
      0
      • V Victor Nijegorodov

        DARA ALAVI wrote:

        how i can do decrypt with Write programing code that use FFMPEG api?

        Read/learn the FFMPEG api documentation.

        D Offline
        D Offline
        DARA ALAVI
        wrote on last edited by
        #3

        I searched a lot but did not find anything. There is no explanation on how to use it. :( I did not find a sample.. :(

        V 1 Reply Last reply
        0
        • D DARA ALAVI

          I searched a lot but did not find anything. There is no explanation on how to use it. :( I did not find a sample.. :(

          V Offline
          V Offline
          Victor Nijegorodov
          wrote on last edited by
          #4

          Then use the recommended way to decrypt with ffplay.exe

          D 1 Reply Last reply
          0
          • V Victor Nijegorodov

            Then use the recommended way to decrypt with ffplay.exe

            D Offline
            D Offline
            DARA ALAVI
            wrote on last edited by
            #5

            I do not need ffplay.exe because i downloaded FFMPEG dev and i have written my own player program Which is based on FFMPEG! with QT & C++. I dont want use ffplay.exe that exist static FFMPEG Folder. . I want decrypt and play Encrypted File in my player program Through Programing code. Now how to decrypt encrypted files using FFMPeg API with C++ Programing? thanks.

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


            • Login

            • Don't have an account? Register

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