Recherche avancée

Médias (91)

Autres articles (110)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

Sur d’autres sites (10657)

  • Transcode to ogg or webm, writing the file as it goes

    22 juillet 2020, par Mark Smith

    I need to transcode files (mp3, flac, m4a and others) to ogg or webm. (This is because I need them to play on Firefox 60.9 which does not support most of these, and flacs are too large. I cannot update the browser.)

    


    ffmpeg can do the transcoding, but when transcoding to ogg or webm, depending on the exact configuration, either 0 bytes or a few kB is written immediately, and then nothing more until the transcoding is complete (even using -flush_packets 1) — hence I cannot start playing the audio.

    


    By comparison, if I transcode to mp3, the file is written progressively and I can start playing immediately.

    


    Is it possible to transcode to ogg or webm in such a way that the file is written as the transcoding happens, and I can start playing it (almost) immediately ?

    


    Configurations I have tried :

    


    ffmpeg -i orig.m4a -c:a libvorbis -flush_packets 1 vorbis.ogg
ffmpeg -i orig.m4a -c:a libopus -flush_packets 1 opus.ogg
ffmpeg -i orig.m4a -c:a libvorbis -flush_packets 1 vorbis.webm
ffmpeg -i orig.m4a -c:a libopus -flush_packets 1 opus.webm


    


    This is running on Debian (Raspian stretch, specifically) and I would like to do it without adding dependencies from outside of the Debian/Raspian archives, if possible. Sticking with ffmpeg would be my ideal choice but will consider others.

    


  • yt-dlp get audio only link -> ffmpeg piped audio -> ffplay

    5 juin 2022, par james28909

    Ok, i have a perl script that i am trying to figure out why it is throwing an io error. First i use yt-dlg to get the link of only the audio - this works as expected and i can navigate to the link in a browser just fine. then i open a ffmpeg pipe in perl and then try to read the output from ffmpeg and eventually, if i can get this working, i will process the ffmpeg output then send to a named pipe.

    


    the problem comes from the ffmpeg when i am processing the data from the link obtained with yt-dlp, and i think it has to do with my while loop but i am not sure what. i have a named pipe called "input". i summon ffmpeg with the following :

    


    #/usr/bin/perl
use strict;
use warnings;

my $file = /path/to/named/pipe
my $read_len = 1024;

open (my $SOURCE_AUDIO, '-|', "ffmpeg -y -i \'$link\' -map 0 -c copy -ac 2 -f opus -ar 48000 pipe:1");
binmode($SOURCE_AUDIO);

# process the ffmpeg output.i have a function i want to implement here, 
# but i need to be able to parse ffmpeg output in set read lengths

while( read($SOURCE_AUDIO, my $buf, $read_len)){
print $file $buf;
};


    


    but before the end of the playback, somewhere around the end of the audio stream ffmpeg throws errors like this :

    


    [tls @ 0x5d0de00] Error in the pull function..2kbits/s speed=1.21x
[tls @ 0x5d0de00] IO error: Connection reset by peer
[tls @ 0x5d0de00] The specified session has been invalidated for some reason.
    Last message repeated 1 times
https://rr3---sn-(truncated): Input/output error
size=    1021kB time=00:01:18.36 bitrate= 106.7kbits/s speed=1.21x
video:0kB audio:1012kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.808163%


    


    i am not sure what is causing it to end early, or what is causing it to be terminated. i can download the file and re-encode it (if needed) and then play it flawlessly with ffplay, but i cannot, for the life of me, parse ffmpeg output and write it to a named pipe. any help sure would be appreciated. thanks

    


    P.S. i am using latest updated windows 11 and WSL's built in perl :

    


    This is perl 5, version 30, subversion 0 (v5.30.0) built for x86_64-linux-gnu-thread-multi
(with 50 registered patches, see perl -V for more detail)

Copyright 1987-2019, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.


    


  • Can I use a text file's content to create a filtered list for ffmpeg ?

    20 octobre 2022, par Angel Lopez Jr

    I am attempting to make a CMD script that will

    


      

    1. Create a text file that lists file names followed by video codec (using ffprobe)
    2. 


    3. Create a new text from the list so that any file with x265 codec is removed from the list (and formated as
file "*filepath*"
    4. 


    5. Run ffmpeg on the edited list to transcode remaining files to x265.
    6. 


    


    I have a script that does #1

    


    for /R %%f IN (*.mkv,*.avi,*.mp4,*.m2ts,*.mts,*.rm,*.m4v) do echo "%%f" >>Probe.txt & ffprobe -v error -hide_banner -of default=noprint_wrappers=0 -print_format flat  -select_streams v:0 -show_entries stream=codec_name "%%f" >>Probe.txt & echo.  >>Probe.txt


    


    which outputs

    


    


    "filepath"
    
streams.stream.0.codec_name="codec"

    


    "filepath"
    
streams.stream.0.codec_name="codec"

    


    


    and I have a script that will do #3

    


    for /R %%f IN (*.mkv,*.avi,*.mp4,*.m2ts,*.mts,*.rm,*.m4v) do ffmpeg -hide_banner -hwaccel_output_format qsv -i "%%f" -c:v libx265 -c:a ac3 -x265-params crf=25 "%%f.mkv"


    


    I am not sure if #2 is even possible though.

    


    End result of task 2 should be that in probe.txt, any line that has a
streams.stream.0.codec_name value of anything besides hevc will have the line immediately above it written to a new txt file with the word file in front.

    


    final goal is getting all three tasks to run under one batch file (each task running sequentially)

    


    Is there any help on what I am missing to be able to unify these and get #2 to happen