Recherche avancée

Médias (1)

Mot : - Tags -/bug

Autres articles (52)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, 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 (...)

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

Sur d’autres sites (6193)

  • VideoJS seekable().end(0) always returns 0

    18 septembre 2022, par Clovis Nyu

    I am trying to jump to a particular timestamp of a video, but using player.currentTime(someTime) always sends the video back to the start. Upon doing some research, I found that running player.seekable().end(0) always returns 0. I realize that this might be a problem with the fact that I'm using MP4, but I've tried using

    


    ffmpeg -i input.mp4 -c copy -movflags +faststart output.mp4


    


    to fix it and it doesn't work. Below is my code

    


    &#xA;&#xA;    &#xA;&#xA;&#xA;    <source src="http://localhost:8000/some_video.mp4" type="video/mp4"></source>&#xA;    <p class="vjs-no-js">&#xA;        To view this video please enable JavaScript, and consider upgrading to a&#xA;        web browser that&#xA;        <a href="https://videojs.com/html5-video-support/" target="_blank">supports HTML5 video&#xA;    </a></p>&#xA;&#xA;&#xA;<button>Jump</button>&#xA;&#xA;<code class="echappe-js">&lt;script src=&quot;https://vjs.zencdn.net/7.7.5/video.js&quot;&gt;&lt;/script&gt;&#xA;&lt;script&gt;&amp;#xA;    var VIDEO_JS = videojs(&amp;#x27;my-video&amp;#x27;);&amp;#xA;&amp;#xA;    function jump() {&amp;#xA;        VIDEO_JS.currentTime(10);&amp;#xA;    }&amp;#xA;&lt;/script&gt;&#xA;&#xA;

    &#xA;

    For more context, the videos are taken from youtube, the audio is then split into vocals and accompaniment using spleeter, then ffmpeg is used to merge back the resulting audio files into the original video.

    &#xA;

    Any help would be appreciated. Thanks !

    &#xA;

  • libav/ffmpeg : avcodec_decode_video2() returns -1 when separating demultiplexing and decoding

    26 avril 2013, par unbekannt

    I'm using libav (from a C++ program on Linux and Windows) to decode video streams from a file, which works fine (decoding various formats like H264 and MPEG2) using avformat_open_input(), av_read_frame() and avcodec_decode_video2().

    Now I have to separate demultiplexing and decoding. One class will call avformat_open_input() and av_read_frame() and then pass the AVPackets into a queue that is read by another class. There I use avcodec_alloc_context3() to get the AVCodecContext needed for avcodec_decode_video2(). I've tested that with a MPEG2 video stream and it works.

    Problems arise if I try to decode a H264 stream : avcodec_decode_video2() always returns -1 and outputs "no frame". I understand that additional data (SPS/PPS) is needed to decode this stream, so I've tried to replicate the original AVCodecContext from the demultiplexer in the decoder, but it won't work :

    • Copying the content of the extradata field and setting all other values that differ from the default ones in the decoder : -1 is returned
    • Using the same context (i.e. passing along the pointer) results in a crash

    I also tried to set CODEC_FLAG2_CHUNKS. avcodec_decode_video2() then always returns packet.size - 3 (??) and frameFinished is never set to 1.

    In my opinion I have a general problem here that will arise whenever settings from the original CodecContext are needed to decode the AVPackets. I'd be grateful for any hints on how to solve that problem !

    EDIT : Sometimes writing down your problem helps solving it... Using a copy of the context struct (avcodec_copy_context) and opening the codec only after receiving the copy results in decoded frames. Does anyone know if that is safe or the best way to do it ?

  • Automatically match output file with input file (Applescript x FFMPEG)

    2 mars 2018, par Wallie

    I use the following AppleScript as an Automator Service to right click a video file in the finder and burn in a matching subtitle file (.ass) with an ffmpeg terminal command. In this case ffmpeg encodes a new Prores 422(HQ) file.

    on run {input, parameters}
    tell application "Terminal"
       activate
       set filesString to ""
       repeat with file_ in input
           set filesString to filesString &amp; " " &amp; quoted form of (POSIX path of file_)
       end repeat
       do script "for f in" &amp; filesString &amp; "; do  
    base=$f  
    ffmpeg -y -i \"$base\" -c:v prores -profile:v 3 -pix_fmt yuv422p10le -vf \"ass=${base%.*}.ass\" -c:a copy \"${base%.*}_sub.mov\";
    done"
       end tell
       return input
    end run

    Would it be possible to automatically match the output file and it’s codec to the input file ?
    We use a lot of different input formats due to a mixed windows / mac environment (Prores (mov), dnxhr (mxf/mov)) and I would like to not have 8-12 encoding options in the finder service menu’s of the workstations :).

    Thanks in advance !!