Recherche avancée

Médias (91)

Autres articles (55)

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

  • Les statuts des instances de mutualisation

    13 mars 2010, par

    Pour des raisons de compatibilité générale du plugin de gestion de mutualisations avec les fonctions originales de SPIP, les statuts des instances sont les mêmes que pour tout autre objets (articles...), seuls leurs noms dans l’interface change quelque peu.
    Les différents statuts possibles sont : prepa (demandé) qui correspond à une instance demandée par un utilisateur. Si le site a déjà été créé par le passé, il est passé en mode désactivé. publie (validé) qui correspond à une instance validée par un (...)

  • L’agrémenter visuellement

    10 avril 2011

    MediaSPIP est basé sur un système de thèmes et de squelettes. Les squelettes définissent le placement des informations dans la page, définissant un usage spécifique de la plateforme, et les thèmes l’habillage graphique général.
    Chacun peut proposer un nouveau thème graphique ou un squelette et le mettre à disposition de la communauté.

Sur d’autres sites (10241)

  • ffmpeg join filter ignores audio of one input

    18 mai 2021, par regstuff

    I'm taking an audio input from a pulseaudio virtual source and trying to combine that with the audio & video of an rtmp input, and the final output goes to another rtmp.

    


    When I try ajoin, as below, I get a message : [Parsed_join_0 @ 0x2cc9100] No channels are used from input stream 1.
The output has audio only from the first source.

    


    PULSE_SOURCE=vmic ffmpeg -f alsa -i pulse -i rtmp://127.0.0.1/server/stream1 -filter_complex "[0:a][1:a]join=inputs=2:channel_layout=stereo[a]" -map "[a]" -map 1:v -vcodec copy -f flv rtmp://127.0.0.1/server/stream2  


    


    Using amerge, as below, however works, though it throws the message : [Parsed_amerge_0 @ 0x38b70c0] No channel layout for input 1
Output has the merged audio.

    


    PULSE_SOURCE=vmic ffmpeg -f alsa -i pulse -i rtmp://127.0.0.1/server/stream1 -filter_complex "[0:a][1:a]amerge=inputs=2[a]" -map "[a]" -acodec aac -ac 2 -b:a 128k -map 1:v -vcodec copy -f flv rtmp://127.0.0.1/server/stream2


    


    FFMPEG documentation however says ajoin should work. Found this SO comment that says ajoin can't do this however.

    


    Any pointers ?

    


    FFMPEG version :

    


    ffmpeg version 4.0.6 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.12) 20160609
  configuration: --prefix=/home/user/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/user/ffmpeg_build/include --extra-ldflags=-L/home/user/ffmpeg_build/lib --extra-libs='-lpthread -lm' --enable-gpl --enable-openssl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzmq --enable-network --enable-libpulse --enable-nonfree
  libavutil      56. 14.100 / 56. 14.100
  libavcodec     58. 18.100 / 58. 18.100
  libavformat    58. 12.100 / 58. 12.100
  libavdevice    58.  3.100 / 58.  3.100
  libavfilter     7. 16.100 /  7. 16.100
  libswscale      5.  1.100 /  5.  1.100
  libswresample   3.  1.100 /  3.  1.100
  libpostproc    55.  1.100 / 55.  1.100


    


  • How to allow other site via nginx to use my content ?

    3 septembre 2020, par GG GG

    i use nginx - rtmp technique to restream the m3u8 stream via ffmpeg and then play it on the website. I have following restream m3u8 from my server, which is playable perfetly in vlc player https://hls.tvoti.com/rtl2/playlist.m3u8
But i can not play it on the website see demo. I use following code to allow website use the stream, and is it not correct ? :

    


    server {
    listen   80; 

    #root /var/www/html/; 
    #index index.php index.html index.htm;

    server_name tvoti.com; 

    location / {
    proxy_redirect off; 
        proxy_set_header X-Real-IP  $remote_addr;
        proxy_set_header X-Forwarded-For $remote_addr;
    proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header Host $host;
        proxy_pass http://127.0.0.1:8080;
    }

    location ~ /\.ht {
        deny all;
    }
}

server {
    listen       80;
    server_name  hls.tvoti.com;

    location / {
        add_header Cache-Control no-cache;

    set $cors_origin "https://rtllivestreamkostenlos.com";

    if ($http_origin ~* (^https?://([^/]+\.)*(tvoti|rtllivestreamkostenlos.com)\.com$)) {
            set $cors_origin "$http_origin";
        }

    add_header "X-Dbg" "$cors_origin" always;

        # Simple requests
        if ($request_method ~* "(GET|POST)") {
            add_header "Access-Control-Allow-Origin"  "$cors_origin";
        }

        # Preflighted requests
        if ($request_method = OPTIONS ) {
            add_header "Access-Control-Allow-Origin"  "$cors_origin";
            add_header "Access-Control-Allow-Methods" "GET, POST, OPTIONS, HEAD";
            add_header "Access-Control-Allow-Headers" "Authorization, Origin, X-Requested-With, Content-Type, Accept";
            return 200;
        }
        root   /etc/nginx/hls;
    }

    location /supervisor {
        proxy_pass http://127.0.0.1:9999/;
    }

    #error_page  404              /404.html;

    # redirect server error pages to the static page /50x.html
    #
    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   html;
    }

}


    


  • How to Extract Lyrics (USLT frame) from Mp3 using FFmpeg ?

    1er mai 2022, par Wonderer

    I'm using Mp3tag's "Tools" feature to batch run FFmpeg in Windows, in order to batch extract the embedded lyrics content (USLT frame of ID3v2 tag) from MP3 files, I know with FFmpeg I can do something like :

    


    -i "%_path%" -f ffmetadata "%_folderpath%\%_filename%.txt"


    


    "%_path%" = full path of the MP3 file

    


    "%_folderpath%%_filename%.txt" = path and filename of the exported txt file.

    


    The command above extracts all the metadata from MP3 file and export them into a txt file with the following cotent for example :

    


    ;FFMETADATA1
album=name of the album
artist=name of the artist
title=name of the title
lyrics-eng=[00:01.23]line1 of lyrics
\
[00:04.56]line2 of lyrics
\
[00:07.89]line3 of lyrics
\
[01:03.12]3rd last line of lyrics
\
[02:04.34]2nd last line of lyrics
\
[03:05.67]Last line of lyrics
\

date=2020
encoder=Lavf59.23.100


    


    (the original lyrics uses Simple LRC format with timestamps in each line, certain lines contain only the timestamp with empty lyrics)

    


    (There might (or might not) be additional metadata (e.g. date and encoder in the example above) following the lyrics part)

    


    As seen above, the backslash "\" (which is not present in the original lyrics) is somehow added after each line of lyrics, between CR (CarriageReturn) and LF (LineFeed) as seen in Notepad++ (the original lyrics use CRLF as EOL characters).

    


    So how do I modify the given command line to export only the lyrics part (exluding all other metadata and the extra backslash "\"), an example of the expected text file content is shown below :

    


    [00:01.23]line1 of lyrics
[00:04.56]line2 of lyrics
[00:07.89]line3 of lyrics
[01:03.12]3rd last line of lyrics
[02:04.34]2nd last line of lyrics
[03:05.67]Last line of lyrics


    


    with the original EOL characters from lyrics such as CRLF