Recherche avancée

Médias (1)

Mot : - Tags -/lev manovitch

Autres articles (22)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (4349)

  • QSharedMemory in Real-Time process

    21 novembre 2016, par Seungsoo Kim

    I’m trying to use QSharedMemory Class to share video data between two processes.

    So I tried like following method, but it has problem in simultaneous access of two processes.

    Two process crashes when they access sequentially to same memory name(key) "SharedMemory".

    I locked them while they’re used, but also it doesn’t work well.

    How can i avoid this crash ??

    1. Writing to SharedMemory - data type is and this function called by callback.

      QBuffer buffer;
      buffer.open(QBuffer::ReadWrite);
      QDataStream out(&buffer);

      QByteArray outArray = QByteArray::fromRawData(reinterpret_cast<const>(data), strlen(reinterpret_cast<const>(data)));
      out &lt;&lt; width &lt;&lt; height &lt;&lt; step &lt;&lt; cameraId &lt;&lt; strlen(reinterpret_cast<const>(data));
      out.writeRawData(outArray.data(), outArray.size());

      int size = buffer.size();

      sharedMemory.setKey("SharedMemory");

      if (!sharedMemory.isAttached()) {
         printf("Cannot attach to shared memory to update!\n");
      }
      if (!sharedMemory.create(size))
      {
         printf("failed to allocate memory\n");
      }
      sharedMemory.lock();
      char *to = (char*)sharedMemory.data();
      const char *from = buffer.data().data();
      memcpy(to, from,qMin(sharedMemory.size(),size));
      sharedMemory.unlock();
      </const></const></const>
    2. Using data in SharedMemory. - this function is called by QThread, interval 100ms

      QSharedMemory sharedMemory("SharedMemory");
      sharedMemory.lock();
      if (!sharedMemory.attach()) {
         printf("failed to attach to memory\n");
         return;
      }

      QBuffer buffer;
      QDataStream in(&amp;buffer);

      sharedMemory.create(1920 * 1080);
      buffer.setData((char*)sharedMemory.constData(), sharedMemory.size());
      buffer.open(QBuffer::ReadOnly);
      sharedMemory.unlock();
      sharedMemory.detach();

      int r_width = 0;    
      int r_height = 0;
      int r_cameraId = 0;
      int r_step = 0;
      int r_strlen = 0;
      in >> r_width >> r_height >> r_step >> r_cameraId >> r_strlen;

      char* receive = new char[r_strlen];
      in.readRawData(receive, r_strlen);
      //unsigned char* r_receive = new unsigned char[r_strlen];
      //r_receive = (unsigned char*)receive;

      QPixmap backBuffer = QPixmap::fromImage(QImage((unsigned char*)receive, r_width, r_height, r_step, QImage::Format::Format_RGB888));
      ui.label->setPixmap(backBuffer.scaled(ui.label->size(), Qt::KeepAspectRatio));
      ui.label->show();

    please share your idea ! thank you !

  • Can you insert text from a file in real time with ffmpeg streaming ?

    6 décembre 2020, par Fight Fire With Fire

    I have this code i use to stream a file and place the name of the show of the video at a certain time of the video ( name_of_show ) at the top of the screen, and the bottom of the screen it take the name of the show from video_title.txt and places it on the bottom of the screen.

    &#xA;

    What I want to do is find a way at a interval say 1 or 2 minutes, pull whatever text is currently in video_title.txt and place it in the video for a few seconds.

    &#xA;

    I would update video_title.txt from another python program. Here's my current code below.

    &#xA;

               command = [&#xA;        "ffmpeg" , "-re" , "-i" , video[0] ,&#xA;        "-vf" ,  "[in]drawtext=fontsize=40:fontcolor=white:box=1:boxcolor=black@0.8:boxborderw=5:fontfile=/home/fonts/timeless.ttf: text=&#x27;" &#x2B; name_of_show &#x2B; "&#x27;:x=&#x27;W-(W&#x2B;tw)*mod(t\,10)/10&#x27;:y=&#x27;H/20&#x27;:enable=&#x27;between(t,50,70)&#x27;,drawtext=fontsize=20:fontfile=/home/fonts/timeless.ttf:textfile=/video_title.txt:fontcolor=white:box=1:boxcolor=black@0.8:boxborderw=5:x=W-w&#x2B;5:y=h-th-50:enable=&#x27;1&#x27;[out]"&#xA;        "-vcodec" , "libx264", "-pix_fmt", "yuv420p",&#xA;        "-preset" , "medium" , "-r" , "30" , "-g" , "48" , "-b:v" , "2500k" ,&#xA;        "-acodec" , "libmp3lame" , "-ar" , "44100", "-threads" , "6" ,&#xA;        "-q:a" , "3" , "-b:a" , "712000" ,"-bufsize", "512k" , "-f" ,&#xA;        "flv" , STREAM_URL,&#xA;

    &#xA;

    Ultimately the effect I am trying to achieve is a long stream of lets say 1 hour on twitch/youtube where someone could send a text message and it would appear in the stream.

    &#xA;

  • Encoding real, source duration of a timelapse into MP4 container using FFMPEG (GoPro) [closed]

    13 août 2024, par Marek Towarek

    Footage recorded with GoPro TimeLapse / TimeWarp, indicates the total, real-time duration of recorded data, while the video stream is of reduced length by the timelapse interval.

    &#xA;

    General&#xA;Complete name               : E:\Video\GoPro\GoPro\GH010656.MP4&#xA;Format                      : MPEG-4&#xA;Format profile              : Base Media / Version 1&#xA;Codec ID                    : mp41 (mp41)&#xA;File size                   : 1.94 GiB&#xA;Duration                    : 22 min 55 s&#xA;Overall bit rate mode       : Variable&#xA;Overall bit rate            : 12.1 Mb/s&#xA;&#xA;Video&#xA;ID                          : 1&#xA;Format                      : AVC&#xA;Format/Info                 : Advanced Video Codec&#xA;Format profile              : High@L5&#xA;Format settings             : CABAC / 2 Ref Frames&#xA;Format settings, CABAC      : Yes&#xA;Format settings, Reference  : 2 frames&#xA;Format settings, GOP        : M=1, N=15&#xA;Codec ID                    : avc1&#xA;Codec ID/Info               : Advanced Video Coding&#xA;Duration                    : 4 min 35 s&#xA;Bit rate mode               : Variable&#xA;Bit rate                    : 60.0 Mb/s&#xA;Width                       : 1 920 pixels&#xA;Height                      : 1 440 pixels&#xA;Display aspect ratio        : 4:3&#xA;Rotation                    : 180&#xB0;&#xA;Frame rate mode             : Constant&#xA;Frame rate                  : 29.970 (30000/1001) FPS&#xA;Color space                 : YUV&#xA;Chroma subsampling          : 4:2:0&#xA;Bit depth                   : 8 bits&#xA;Scan type                   : Progressive&#xA;Bits/(Pixel*Frame)          : 0.724&#xA;Stream size                 : 1.92 GiB (99%)&#xA;Title                       : GoPro AVC  &#xA;Language                    : English&#xA;Color range                 : Limited&#xA;colour_range_Original       : Full&#xA;Color primaries             : BT.709&#xA;Transfer characteristics    : BT.709&#xA;Matrix coefficients         : BT.709&#xA;Codec configuration box     : avcC&#xA;&#xA;Other #1&#xA;ID                          : 2&#xA;Type                        : Time code&#xA;Format                      : QuickTime TC&#xA;Duration                    : 4 min 35 s&#xA;Bit rate mode               : Constant&#xA;Frame rate                  : 29.970 (30000/1001) FPS&#xA;Title                       : GoPro TCD  &#xA;Language                    : English&#xA;&#xA;Other #2&#xA;Type                        : meta&#xA;Duration                    : 22 min 55 s&#xA;Source duration             : 4 min 35 s&#xA;Bit rate mode               : Variable&#xA;Stream size                 : 15.0 MiB&#xA;Source stream size          : 15.0 MiB&#xA;

    &#xA;

    This information could be omitted.
    &#xA;But it becomes quite important for correctness of GPS Data stored in Stream #2.

    &#xA;

    Unfortunately, all the settings I have tried for FFMPEG, do not preserve the duration of Stream #2.&#xA;& the output ends up looking like this :

    &#xA;

    General&#xA;Complete name               : C:\Video_Encode\GoPro\GH010656.mp4&#xA;Format                      : MPEG-4&#xA;Format profile              : Base Media&#xA;Codec ID                    : isom (isom/iso2/mp41)&#xA;File size                   : 717 MiB&#xA;Duration                    : 4 min 35 s&#xA;Overall bit rate            : 21.9 Mb/s&#xA;Encoded date                : UTC 2026-03-29 11:28:23&#xA;Tagged date                 : UTC 2026-03-29 11:28:23&#xA;Writing application         : Lavf61.5.101&#xA;&#xA;Video&#xA;ID                          : 1&#xA;Format                      : HEVC&#xA;Format/Info                 : High Efficiency Video Coding&#xA;Format profile              : Main@L5@Main&#xA;Codec ID                    : hvc1&#xA;Codec ID/Info               : High Efficiency Video Coding&#xA;Duration                    : 4 min 35 s&#xA;Bit rate                    : 21.4 Mb/s&#xA;Width                       : 1 920 pixels&#xA;Height                      : 1 440 pixels&#xA;Display aspect ratio        : 4:3&#xA;Frame rate mode             : Constant&#xA;Frame rate                  : 29.970 (30000/1001) FPS&#xA;Color space                 : YUV&#xA;Chroma subsampling          : 4:2:0 (Type 0)&#xA;Bit depth                   : 8 bits&#xA;Scan type                   : Progressive&#xA;Bits/(Pixel*Frame)          : 0.258&#xA;Stream size                 : 702 MiB (98%)&#xA;Title                       : GoPro AVC  &#xA;Writing library             : x265 3.6&#x2B;35-dd594f59d:[Windows][GCC 14.1.0][64 bit] 8bit&#x2B;10bit&#x2B;12bit&#xA;Language                    : English&#xA;Encoded date                : UTC 2026-03-29 11:28:23&#xA;Tagged date                 : UTC 2026-03-29 11:28:23&#xA;Color range                 : Full&#xA;Color primaries             : BT.709&#xA;Transfer characteristics    : BT.709&#xA;Matrix coefficients         : BT.709&#xA;Codec configuration box     : hvcC&#xA;&#xA;Other #1&#xA;ID                          : 2&#xA;Type                        : Time code&#xA;Format                      : QuickTime TC&#xA;Duration                    : 4 min 35 s&#xA;Frame rate                  : 29.970 (30000/1001) FPS&#xA;Time code of first frame    : 17:55:35:02&#xA;Time code of last frame     : 18:00:09:28&#xA;Time code, stripped         : Yes&#xA;Title                       : GoPro TCD  &#xA;Language                    : English&#xA;Default                     : Yes&#xA;Alternate group             : 2&#xA;Encoded date                : UTC 2026-03-29 11:28:23&#xA;Tagged date                 : UTC 2026-03-29 11:28:23&#xA;mdhd_Duration               : 275175&#xA;&#xA;Other #2&#xA;Type                        : meta&#xA;Duration                    : 4 min 35 s&#xA;Bit rate mode               : Variable&#xA;

    &#xA;

    Any ideas how to preserve that real time duration indicator ?
    &#xA;Here is the FFMPEG binary I use to get the TMCD & GMPD data to copy : GitHub Link

    &#xA;