Recherche avancée

Médias (91)

Autres articles (30)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • 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 (...)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

Sur d’autres sites (6102)

  • Finding corrupted videos with python

    16 septembre 2022, par tusker

    I have huge video dataset (about 500000 16 frame length clips). Some of the videos produce messages like

    


    [mpeg4 @ 0x561b46a44b80] marker does not match f_code
[mpeg4 @ 0x561b480c0740] Error at MB: 4718
[mpeg4 @ 0x561b4811b640] header damaged


    


    I want to find which videos cause the problem.
    
First I tried with this https://superuser.com/questions/100288/how-can-i-check-the-integrity-of-a-video-file-avi-mpeg-mp4 solution, but I got nothing in the error files.

    


    My second idea was to read the first image of a video and if it throws an error, save the filename to a file. However, it seems this is not an error message : although the messages appeared on console, read returned with success=True.

    


    Then I tried to print the filenames to standard error (where the warning messages also go), saving it to a file and do some postprocessing to extract the videos which has problem.

    


    import os
from tqdm import tqdm
import sys

folder = '/path/to/videos'
for f in tqdm(os.listdir(folder)):
  sys.stderr.write('BEFORE VIDCAP ' + f + '\n')
  vidcap = cv2.VideoCapture(os.path.join(folder,f))
  sys.stderr.write('BETWEEN VIDCAP AND SUCCESS' + f + '\n')

  success, image = vidcap.read()
  sys.stderr.write('AFTER SUCCESS ' + f + '\n')


    


    However, the standard error outputs in the following order :

    


    AFTER SUCCESS
[mpeg ...] 
[mpeg ...]
...
BEFORE VIDCAP


    


    It doesn't make sense how can it happen in this order, some broken videos should be seen somewhere between BEFORE and AFTER. (And the ones following or preceding are not broken neither if I try to open them individually.)

    


    My last idea was to create for every video a file, making it as the stderr and check the non-empty files. (I know it's insanely inefficient, but I didn't have any other idea.)

    


    for f in os.listdir(folder):
  sys.stderr = open(f + '.txt', 'w')
  vidcap = cv2.VideoCapture(os.path.join(folder,f))
  success, image = vidcap.read()


    


    This doesn't work also, all the error files are empty, although the messages still appear on standard error.

    



    


    So my questions are the following :

    


      

    1. What would be an efficient solution for this problem ?
    2. 


    3. How is this order of outputs (first code example) possible ? There is some parallelism under the hood ?
    4. 


    5. Where are this messages going if not to the standard error (second code example) ? If yes, why are they printed to the console instead of the specified error file ?
    6. 


    


  • FFmpeg on Qt Creator

    10 novembre 2022, par c47296

    I have got FFmpeg compiled using MSYS2. I have a strange issue that appeared only recently.the app crashes.
This is my main file :

    


    #include "mainwindow.h"&#xA;#include <qapplication>&#xA;#include <qdebug>&#xA;&#xA;extern "C" {&#xA;#include <libavdevice></libavdevice>avdevice.h>&#xA;#include <libavformat></libavformat>avformat.h>&#xA;#include <libavutil></libavutil>avutil.h>&#xA;#include <libavcodec></libavcodec>avcodec.h>&#xA;}&#xA;&#xA;&#xA;int main(int argc, char *argv[])&#xA;{&#xA;   //qDebug() &lt;&lt; av_version_info();&#xA;  // avdevice_register_all();&#xA;    QApplication a(argc, argv);&#xA;    MainWindow w;&#xA;    w.show();&#xA;    return a.exec();&#xA;}&#xA;</qdebug></qapplication>

    &#xA;

    The program runs but crashes if I call 'avdevice_register_all()' and others FFmpeg functions,but only call 'av_version_info()' is runs, not crashes.&#xA;I don't really know how to solve this ?

    &#xA;

    I have already tried to use google solving the problem,but no result.

    &#xA;

  • In what way does this HEVC video not comply to Apples's requirements document ?

    16 novembre 2022, par Duke Dougal

    My goal is to work out why a given video file does not play on Macos/Safari/Quicktime.

    &#xA;

    The background to this question is that it is possible to play HEVC videos with a transparent background/alpha channel on Safari/MacOS. To be playable, a video must meet the specific requirements set out by Apple in this document :

    &#xA;

    https://developer.apple.com/av-foundation/HEVC-Video-with-Alpha-Interoperability-Profile.pdf

    &#xA;

    The video that does not play on Apple/Safari/Quicktime is an HEVC video with an alpha transparency channel. Note that VLC for MacOS DOES play this file. Here it is :

    &#xA;

    https://drive.google.com/file/d/1ZnXjcDbk-_YxTgRuH_D7RSR9SXdY_XTv/view?usp=share_link

    &#xA;

    I have two example HEVC video files with a transparent background/alpha channel, and they both play fine using either Quicktime player or Safari :

    &#xA;

    Working video #1 :

    &#xA;

    https://drive.google.com/file/d/1PJAyg_sVKVvb-Py8PAu42c1qm8l2qCbh/view?usp=share_link

    &#xA;

    Working video #2 :

    &#xA;

    https://drive.google.com/file/d/1kk8ssUyT7qAaK15afp8VPR6mIWPFX8vQ/view?usp=sharing

    &#xA;

    The first step is to work out in what way my non-working video ( https://drive.google.com/file/d/1ZnXjcDbk-_YxTgRuH_D7RSR9SXdY_XTv/view?usp=share_link ) does not comply with the specification.

    &#xA;

    Once it is clear which requirements are not met by the non-working video then I can move onto the next phase, which is to try to formulate an ffmpeg command that will output a video meeting the requirements.

    &#xA;

    I have read Apples requirements document and I am out of my depth in trying to analyse the non working video against the requirements - I don't know how to do it.

    &#xA;

    Can anyone suggest a way to identify what is wrong with the video ?

    &#xA;

    Additional context is that I am trying to find a way to create Apple/MacOS compatible alpha channel / transparent videos using ffmpeg with hevc_nvenc running on an Intel machine. I am aware that Apple hardware can create such videos, but for a wide variety of reasons it is not practical for me to use Apple hardware to do the job. I have spent many hours trying all sorts of ffmpeg and ffprobe commands to try to work out what is wrong and modify the video to fix it, but to be honest most of my attempts are guesswork.

    &#xA;