Recherche avancée

Médias (10)

Mot : - Tags -/wav

Autres articles (59)

  • 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

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

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

Sur d’autres sites (7893)

  • add localtime to each frame as metadata or subtitle while streaming use ffmpeg

    15 novembre 2019, par Mohammad M

    I want to encode some raw frames as nvenc_h264 and then stream it over UDP. What I need, now, is to add some data like capturing time to each frame as its metadata or subtitle(just for that frame or specifying in the metadata that it is just related to which frame.).

    now I use this command in C# to start FFmpeg for receiving raw frame using pipe and stream it over UDP.

             "-f rawvideo -vcodec rawvideo -pixel_format rgba"
             + " -colorspace bt709"
             + " -s " + width + "x" + height
             + " -framerate " + frameRate + " -vsync 0 "
             + " -loglevel warning -i - "// +// preset.GetOptions()
             + " -c:v h264_nvenc  -preset ll -zerolatency 1 -cq 10 -bf 2 -g 150 -f mpeg pipe:10" //udp://172.20.82.106:2000?"  //outputPath

    The base code that I used is here :
    https://github.com/keijiro/FFmpegOut

    and I use this command for receiving and saving the file :
    ffmpeg -i udp://127.0.0.1:2001 -c:v h264_nvenc video.mp4

    As I said I want the times as data that I can process it later, not just like a watermark on the frame. How can I add it ? is there any way ?

  • bash loop through list of file paths - characters get removed when sending to ffmpeg [duplicate]

    9 octobre 2018, par Brad Johnson

    This question already has an answer here :

    I have a text file that contains a list of paths to flac files I want to convert to wav. Here is a small section of it :

    /mnt/nfs/Music/Rob D/1995 - Clubbed To Death/Rob D - 02 - Clubbed To Death _Kurayamino Variation_.flac
    /mnt/nfs/Music/Blonde Redhead/2000 - Melody of Certain Damaged Lemons/11 - For the Damaged Coda.flac
    /mnt/nfs/Music/I Monster/2001 - Daydream In Blue/01 - Daydream In Blue.flac
    /mnt/nfs/Music/Moby/2002 - Extreme Ways/01 - Extreme Ways.flac
    /mnt/nfs/Music/RJD2/2002 - Deadringer/01 - The Horror.flac
    /mnt/nfs/Music/RJD2/2002 - Deadringer/03 - Smoke & Mirrors.flac
    /mnt/nfs/Music/RJD2/2002 - Deadringer/06 - Ghostwriter.flac
    /mnt/nfs/Music/RJD2/2002 - Deadringer/10 - Chicken-Bone Circuit.flac
    /mnt/nfs/Music/FC Kahuna/2003 - Hayling/01 - Hayling _Original_.flac
    /mnt/nfs/Music/Lamb/2003 - Between Darkness and Wonder/04 - Angelica.flac

    I’m trying to loop through it like so :

    while read -r line; do
    wavfile=$(basename "$line")
    wavfile="${wavfile%.*}"
    ffmpeg -i "$line" "$2/$wavfile.wav"
    done <$1

    ...where $1 is where I would pass the name of the text file and $2 is the destination directory.

    Here is the output with the irrelevant ffmpeg junk pruned out :

    Input #0, flac, from '/mnt/nfs/Music/Rob D/1995 - Clubbed To Death/Rob D - 02 - Clubbed To Death _Kurayamino Variation_.flac':
    ...
    Output #0, wav, to '/mnt/gray/Clubbed To Death/Rob D - 02 - Clubbed To Death _Kurayamino Variation_.wav':
    ...
    /nfs/Music/Blonde Redhead/2000 - Melody of Certain Damaged Lemons/11 - For the Damaged Coda.flac: No such file or directory
    ...
    Input #0, flac, from '/mnt/nfs/Music/I Monster/2001 - Daydream In Blue/01 - Daydream In Blue.flac':
    ...
    Output #0, wav, to '/mnt/gray/Clubbed To Death/01 - Daydream In Blue.wav':
    ...
    nt/nfs/Music/Moby/2002 - Extreme Ways/01 - Extreme Ways.flac: No such file or directory
    ...
    Input #0, flac, from '/mnt/nfs/Music/RJD2/2002 - Deadringer/01 - The Horror.flac':
    ...
    Output #0, wav, to '/mnt/gray/Clubbed To Death/01 - The Horror.wav':
    ...
    nt/nfs/Music/RJD2/2002 - Deadringer/03 - Smoke & Mirrors.flac: No such file or directory
    ...
    Input #0, flac, from '/mnt/nfs/Music/RJD2/2002 - Deadringer/06 - Ghostwriter.flac':
    ...
    Output #0, wav, to '/mnt/gray/Clubbed To Death/06 - Ghostwriter.wav':
    ...
    nt/nfs/Music/RJD2/2002 - Deadringer/10 - Chicken-Bone Circuit.flac: No such file or directory
    ...
    Input #0, flac, from '/mnt/nfs/Music/FC Kahuna/2003 - Hayling/01 - Hayling _Original_.flac':
    ...
    Output #0, wav, to '/mnt/gray/Clubbed To Death/01 - Hayling _Original_.wav':
    ...
    /nfs/Music/Lamb/2003 - Between Darkness and Wonder/04 - Angelica.flac: No such file or directory

    If you pay attention to the paths that ffmpeg reports don’t exist, you’ll see that a seemingly random number of characters has been removed from the beginning. This appears to happen on even numbered lines, but odd numbered lines work. I can only reproduce this behavior when using ffmpeg. If I replace the ffmpeg line with a simple echo statement, every file path is shown to be correct. How can this be ?

    Other suggestions of accomplishing this are also welcome, however I do need the files processed in the order by which I have them listed in the file.

  • Shaka Player : ignore empty AdaptationSet

    24 juin 2019, par Mitya

    I’m trying to play DASH stream in Shaka Player.
    Sometimes the stream doesn’t have an audio source and its manifest file contains an empty AdaptationSet entry.
    In this case Shaka Player returns the manifest parsing error :

    | DASH_EMPTY_ADAPTATION_SET | 4003 | number |  The DASH Manifest contained an AdaptationSet with no Representations. |

    Is it possible to ignore this error somehow and play the video without audio source ?

    Example of manifest file :

    <?xml version="1.0" encoding="utf-8"?>
    <mpd xmlns="urn:mpeg:dash:schema:mpd:2011" profiles="urn:mpeg:dash:profile:isoff-live:2011" type="dynamic" minimumupdateperiod="PT4S" suggestedpresentationdelay="PT4S" availabilitystarttime="2019-06-24T13:38:04Z" publishtime="2019-06-24T13:38:34Z" timeshiftbufferdepth="PT14.9S" minbuffertime="PT9.9S">
       <programinformation>
           
       </programinformation>
       <period start="PT0.0S">
           <adaptationset contenttype="video" segmentalignment="true" bitstreamswitching="true">
               <representation mimetype="video/mp4" codecs="avc1.640028" bandwidth="2000000" width="1920" height="1080" framerate="20/1">
                   <segmenttemplate timescale="10240" initialization="init-stream$RepresentationID$.m4s" media="chunk-stream$RepresentationID$-$Number%05d$.m4s" startnumber="5">
                       <segmenttimeline>
                           <s t="201697" d="51190" r="2"></s>
                       </segmenttimeline>
                   </segmenttemplate>
               </representation>
           </adaptationset>
           <adaptationset contenttype="audio" segmentalignment="true" bitstreamswitching="true">
           </adaptationset>
       </period>
    </mpd>