Recherche avancée

Médias (1)

Mot : - Tags -/Christian Nold

Autres articles (87)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (7673)

  • Encrypting a video file with the 3DES algorithm

    14 mai 2022, par Roro98

    I am encrypting a video file using 3DES algorithm and ffmpeg library.In my program, I use two channels, each connected to its own instance of FFmpeg. Basically, I tried to read the images one by one from the input pipe, invert the color of each pixel with the 3DES algorithm, then write the modified images to the output pipe. The input video I'm using is mp4 type, but I have a segmantation problem Can someone help me ?

    


    #include &#xA;#include &#xA;#include &#xA;#include &#xA;#include &#xA;//#include "key.txt"&#xA;#define W 720&#xA;#define H 720&#xA;unsigned char frame[H][W][3] = {0}; &#xA;unsigned char frame0[H][W][3] = {0}; &#xA;FILE* out;&#xA;int LEFT[17][32], RIGHT[17][32];&#xA;int IPpixel[64];&#xA;int EXPpixel[48];&#xA;int XORpixel[48];&#xA;int X[8][6];&#xA;int X2[32];&#xA;int R[32];&#xA;int key56bit[56];&#xA;int key48bit[17][48];&#xA;int CIPHER[64];&#xA;int ENCRYPTED[64];&#xA;    &#xA;        int main()&#xA;        { &#xA;            int x,y,count;&#xA;            int32_t L , R ;&#xA;            FILE *pipein0 = popen("ffmpeg -i video2.mp4 -f image2pipe -vcodec rawvideo -pix_fmt rgb24 -", "r");&#xA;            out =  popen("ffmpeg -y -f rawvideo -vcodec rawvideo -pix_fmt rgb24 -s 1280x720 -r 25 -i - -f mp4 -q:v 5 -an -vcodec mpeg4 output1.mp4", "wb"); &#xA;            fclose(out);&#xA;            out = fopen("decrypted.txt", "wb&#x2B;");&#xA;            fclose(out);&#xA;            out = fopen("cipher.txt", "wb&#x2B;");&#xA;            fclose(out);&#xA;            create16Keys();&#xA;            while(1)&#xA;            {&#xA;             // Read a frame from the input pipe into the buffer&#xA;                count = fread(frame, 1, H*W*3, pipein0);&#xA;                if (count != H*W*3) break;&#xA;                // Process this frame&#xA;                for (y=0 ; y<h for="for"></h>///****** il faut divise la valeur de pixel et prandre le left of value and the rigth of value*************////&#xA;                        L =frame[y][x][0];///red&#xA;                         R= frame[y][x][0];&#xA;                         long int n1 = findFileSize() / 8;&#xA;                         convertCharToBit(n1);&#xA;                         encrypt(n1);&#xA;                         decrypt(n1);&#xA;                         frame[y][x][0]=L &amp; R;&#xA;                         L =frame[y][x][1];///green&#xA;                         R= frame[y][x][1];&#xA;                         long int n2 = findFileSize() / 8;&#xA;                         convertCharToBit(n2);&#xA;                         encrypt(n2);&#xA;                         decrypt(n2); &#xA;                         frame[y][x][1]=L &amp; R; &#xA;                         L =frame[y][x][2];///blue&#xA;                         R= frame[y][x][2];&#xA;                         long int n3 = findFileSize() / 8;&#xA;                         convertCharToBit(n3);&#xA;                         encrypt(n3);&#xA;                         decrypt(n3);&#xA;                         frame[y][x][2]=L &amp; R;&#xA;                         fwrite(frame0, 1, H*W*3, out);&#xA;                    }&#xA;            }&#xA;            fflush(pipein0);&#xA;            pclose(pipein0);&#xA;            fflush(out);&#xA;            pclose(out);&#xA;            return 0;&#xA;        }&#xA;

    &#xA;

  • Javacv : Decoding H.264 "live" stream coming from red5 server on android device

    26 mars 2015, par Ichigo Kurosaki

    Here is my problem,
    I have implemented a server side application using Red5, which sends H.264 encoded live stream, on client side the stream is received as byte[]
    In order to decode it on Android client side i have followed the Javacv-FFmpeg library. The code for decoding is as follows

    public Frame decodeVideo(byte[] data,long timestamp){
              frame.image = null;
              frame.samples = null;
              avcodec.av_init_packet(pkt);
              BytePointer video_data = new BytePointer(data);
              avcodec.AVCodec codec = avcodec.avcodec_find_decoder(codec_id);
              video_c = null;
              video_c = avcodec.avcodec_alloc_context3(codec);
              video_c.width(320);
              video_c.height(240);
              video_c.pix_fmt(0);
              video_c.flags2(video_c.flags2()|avcodec.CODEC_FLAG2_CHUNKS);
              avcodec.avcodec_open2(video_c, codec, null))
              picture = avcodec.avcodec_alloc_frame()
              pkt.data(video_data);
              pkt.size(data.length);
              int len = avcodec.avcodec_decode_video2(video_c, picture, got_frame, pkt);
              if ((len >= 0) &amp;&amp; ( got_frame[0] != 0)) {
                ....
                 process the decoded frame into **IPLImage of Javacv** and render it with **Imageview** of Android
              }
    }

    Data received from server is as follows
    Few Frames having following pattern
    17 01 00 00 00 00 00 00 02 09 10 00 00 00 0F 06 00 01 C0 01 07 09 08 04 9A 00 00 03 00 80 00 00 16 EF 65 88 80 07 00 05 6C 98 90 00...

    Many frames having following pattern
    27 01 00 00 00 00 00 00 02 09 30 00 00 00 0C 06 01 07 09 08 05 9A 00 00 03 00 80 00 00 0D 77 41 9A 02 04 15 B5 06 20 E3 11 E2 3C 46 ....

    With H.264 codec for decoder, decoder outputs length >0 but got_frames=0 always.
    With MPEG1 codec, decoder outputs length >0 and got_frames>0 but the output image is green or distorted.

    However following FFmpegFrameGrabber code of javacv i can decode the local files( H.264 encoded ) with similar code as above.

    I wonder what details i am missing, and header related data manipulation or setting codec appropriate for decoder.

    Any suggestion, help appreciated.
    Thanks in advance.

  • Anomalie #1980 (Fermé) : Changement de nom d’un mot clef en un nom déjà existant

    2 mars 2011, par cedric -