Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP 0.2

Autres articles (38)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

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

  • Error with FFMPEG "av_interleaved_write_frame() broken pipe" While streaming in loop

    16 juin 2021, par Prateek Kalra

    Good Evening to all,

    


    Please help i am having some issue with my ffmpeg

    


        #! /bin/bash

VBR="1500k"
FPS="30"
QUAL="fast"

KEY="keyhere"


ffmpeg -re -stream_loop -1 -i /home/play/night.mp4 -deinterlace -c:v libx264 -b:v 2M -c:a copy -strict -2 -flags +global_header -bsf:a aac_adtstoasc -bufsize 2100k -f flv rtmp://a.rtmp.you$KEY


    


    My issue is that first time steam work fine to YouTube but when video enters loop it ends with error

    


    av_interleaved_write_frame(): Broken pipeB time=00:15:23.02 bitrate=1592.9kbits/s speed=0.959x
    Last message repeated 1 times
[flv @ 0x873b40] Failed to update header with correct duration.
[flv @ 0x873b40] Failed to update header with correct filesize.


    


    Please advice

    


    Thank you so Much

    


  • How to pipe attachment to variable

    1er juin 2021, par ioundesin

    I would like to pipe an attachement from inside a *.mka to a variable instead of to a file.

    


    Saving the attachment to a *.txt file looks like this (and works) :

    


    import io
import subprocess
import sys, os
import soundfile as sf

full_path = os.path.realpath(__file__)
path, filex = os.path.split(full_path)

fname = 'my_own_soundfile.mka'
fullpath = path + '\\' + fname
pathffmpeg = 'C:/FFmpeg/bin/ffmpeg.exe'

command = [pathffmpeg, "-dump_attachment:t:0",
           "C:\folder\\attachment.txt",
           "-i", fullpath] # This one works

proc = subprocess.run(command, stdout=subprocess.PIPE)


    


    This command is my attempt at piping the attachment, however this does not work :

    


    command = [pathffmpeg, "-dump_attachment:t:0",
           "-f", "PIPE:0",
           "-i", fullpath]


    


    What can I do to make this work ?

    


  • How to merge two ffmpeg queries to one pipe ?

    19 mai 2021, par Aleksey Timoshchenko

    I have a sequence (100 images) (image ex : https://drive.google.com/file/d/1V8HwOuIo9PBX3ix0eKFQFGimskU_H0mN/view?usp=sharing) of Bayer images, what I need to do is

    


      

    1. debayer them
    2. 


    3. compress the result in the .h264 file
    4. 


    


    So, there are two queries that I use

    


    for debayer

    


    ffmpeg -y -i D:\Buffer\Bayer\Time%7d_img.bmp -vf format=gray -f rawvideo pipe: -hide_banner | ffmpeg -y -f rawvideo -pixel_format bayer_rggb8 -video_size 4104x3006 -i pipe: -frames 100 D:\Buffer\res\result%7d.png -hide_banner


    


    and for compression

    


    ffmpeg -framerate 30 -i D:\Buffer\res\result%7d.png -c:v hevc_nvenc -qp 0 D:\Buffer\res264\test5.h264 -hide_banner


    


    I need to merge these two queries into one, I tried to do it like this

    


    ffmpeg -y -i D:\Buffer\Bayer\Time%7d_img.bmp -vf format=gray -f rawvideo pipe: -hide_banner | ffmpeg -y -f rawvideo -pixel_format bayer_rggb8 -video_size 4104x3006 pipe: -hide_banner | ffmpeg -c:v hevc_nvenc -qp 0 -i pipe D:\Buffer\res264\test5.h264 -hide_banner


    


    but I get an error here

    


    Input #0, image2, from 'D:\Buffer\Bayer\Time%7d_img.bmp':
Output #0, rawvideo, to 'pipe:':  Duration:
00:00:40.0Output file #0 does not contain any stream0
, start: 0.000000, bitrate: N/AUnknown decoder 'hevc_nvenc'

    Stream #0:0: Video: bmp, pal8, 2464x2056, 25 tbr, 25 tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (bmp (native) -> rawvideo (native))
Press [q] to stop, [?] for help
Output #0, rawvideo, to 'pipe:':
  Metadata:
    encoder         : Lavf58.29.100
    Stream #0:0: Video: rawvideo (Y800 / 0x30303859), gray, 2464x2056, q=2-31, 1013196 kb/s, 25 fps, 25 tbn, 25 tbc
    Metadata:
      encoder         : Lavc58.54.100 rawvideo
av_interleaved_write_frame(): Invalid argument
Error writing trailer of pipe:: Invalid argument
frame=    1 fps=0.0 q=-0.0 Lsize=    4947kB time=00:00:00.04 bitrate=1013196.8kbits/s speed=   2x
video:4947kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%
Conversion failed!


    


    What am I doing wrong here ?