Recherche avancée

Médias (1)

Mot : - Tags -/musée

Autres articles (69)

  • 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

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

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

Sur d’autres sites (10694)

  • ffmpeg take input and out put as webm on port

    28 septembre 2019, par RussellHarrower

    I am wondering how I can take an audio input and output it as a webm

    This is what I thought would work to get it to rtp out but running into issue.

    ffmpeg -i http://stream.radiomedia.com.au:8003/stream -c copy  -f rtp rtp://127.0.0.1/streamID:54321  

    it returns

    ffmpeg -i http://stream.radiomedia.com.au:8003/stream -c copy  -f rtp rtp://127.0.0.1/streamID:54321                                 ffmpeg version 4.2.1-0york0~18.04 Copyright (c) 2000-2019 the FFmpeg developers
     built with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
     configuration: --prefix=/usr --extra-version='0york0~18.04' --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-nonfree --enable-libfdk-aac --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
     libavutil      56. 31.100 / 56. 31.100
     libavcodec     58. 54.100 / 58. 54.100
     libavformat    58. 29.100 / 58. 29.100
     libavdevice    58.  8.100 / 58.  8.100
     libavfilter     7. 57.100 /  7. 57.100
     libavresample   4.  0.  0 /  4.  0.  0
     libswscale      5.  5.100 /  5.  5.100
     libswresample   3.  5.100 /  3.  5.100
     libpostproc    55.  5.100 / 55.  5.100
    [mp3 @ 0x564cf51de940] invalid concatenated file detected - using bitrate for duration
    Input #0, mp3, from 'http://stream.radiomedia.com.au:8003/stream':
     Metadata:
       track           : 1
       title           : DNR1 Signal 1
       comment         : www.dvdvideosoft.com
       date            : 2019
       icy-br          : 128
       icy-description : Radio Media PTY LTD
       icy-genre       : Indie
       icy-name        : DRN1
       icy-pub         : 0
       icy-url         : https://www.drn1.com.au
       StreamTitle     :
     Duration: N/A, start: 0.025057, bitrate: 320 kb/s
       Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s
       Metadata:
         encoder         : LAME3.99r
    Output #0, rtp, to 'rtp://127.0.0.1/streamID:54321':
     Metadata:
       track           : 1
       title           : DNR1 Signal 1
       comment         : www.dvdvideosoft.com
       date            : 2019
       icy-br          : 128
       icy-description : Radio Media PTY LTD
       icy-genre       : Indie
       icy-name        : DRN1
       icy-pub         : 0
       icy-url         : https://www.drn1.com.au
       StreamTitle     :
       encoder         : Lavf58.29.100
       Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s
       Metadata:
         encoder         : LAME3.99r
    SDP:
    v=0
    o=- 0 0 IN IP4 127.0.0.1
    s=DNR1 Signal 1
    c=IN IP4 127.0.0.1
    t=0 0
    a=tool:libavformat 58.29.100
    m=audio 0 RTP/AVP 14
    b=AS:320
    a=control:streamid=0

    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
    Press [q] to stop, [?] for help
    av_interleaved_write_frame(): Invalid argument                                                                                                                                        Error writing trailer of rtp://127.0.0.1/streamID:54321: Invalid argument
    size=       0kB time=-00:00:00.02 bitrate=N/A speed=N/A                                                                                                                               video:0kB audio:1kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
    Conversion failed!
  • python multiple threads redirecting stdout

    4 septembre 2022, par Marcin Kamienski

    I'm building an icecast2 radio station which will restream existing stations in lower quality. This program will generate multiple FFmpeg processes restreaming 24/7. For troubleshooting purposes, I would like to have an output of every FFmpeg process redirected to the separate file.

    


    import ffmpeg, csv
from threading import Thread

def run(name, mount, source):
icecast = "icecast://"+ICECAST2_USER+":"+ICECAST2_PASS+"@localhost:"+ICECAST2_PORT+"/"+mount
stream = (
        ffmpeg
        .input(source)
        .output(
            icecast,
            audio_bitrate=BITRATE, sample_rate=SAMPLE_RATE, format=FORMAT, acodec=CODEC,
            reconnect="1", reconnect_streamed="1", reconnect_at_eof="1", reconnect_delay_max="120",
            ice_name=name, ice_genre=source
            )
        )
return stream

with open('stations.csv', mode='r') as data:
for station in csv.DictReader(data):
    stream = run(station['name'], station['mount'], station['url'])
    thread = Thread(target=stream.run)
    thread.start()


    


    As I understand I can't redirect stdout of each thread separately, I also can't use ffmpeg reporting which is only configured by an environment variable. Do I have any other options ?

    


  • FFMPEG fails to stream from .m3u8 over HTTP

    16 mars 2017, par Parsa Samet

    FFMPEG will fail to stream from .m3u8 over HTTP. It is pointing to getting an empty playlist whilst it’s not empty. It also points to the following error sometimes :

    Failed to open segment of playlist 0.

    UPDATE :

    The command that I use :

    ffmpeg -re -i http://cdn.live.domain.tld:port/radio.stream/playlist.m3u8?wmsAuthSign=xyz -vn -codec:a libmp3lame -b:a 64k -f mp3 -content_type audio/mpeg icecast://"source":"password"@destinationIPorDomain:8000/mountPoint

    Logs on macOS 10.12.3 :

    ffmpeg version N-83840-gce01065-tessus Copyright (c) 2000-2017 the FFmpeg developers


    built with Apple LLVM version 8.0.0 (clang-800.0.42.1)
     configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzmq --enable-version3 --disable-ffplay --disable-indev=qtkit --disable-indev=x11grab_xcb

     libavutil      55. 48.100 / 55. 48.100
     libavcodec     57. 82.102 / 57. 82.102
     libavformat    57. 66.104 / 57. 66.104
     libavdevice    57.  3.100 / 57.  3.100
     libavfilter     6. 74.100 /  6. 74.100
     libswscale      4.  3.101 /  4.  3.101
     libswresample   2.  4.100 /  2.  4.100
     libpostproc    54.  2.100 / 54.  2.100

    Input #0, hls,applehttp, from 'http://cdn.live.domain.tld:port/radio.stream/playlist.m3u8?wmsAuthSign=xyz':
     Duration: N/A, start: 26772.495667, bitrate: 52 kb/s
     Program 0
       Metadata:
         variant_bitrate : 54206
       Stream #0:0: Audio: aac (HE-AAC), 44100 Hz, stereo, fltp, 52 kb/s
       Metadata:
         variant_bitrate : 54206
    Stream mapping:
     Stream #0:0 -> #0:0 (aac (native) -> mp3 (libmp3lame))
    Press [q] to stop, [?] for help
    Output #0, mp3, to 'icecast://source:password@destinationIPorDomain:8000/mountPoint':
     Metadata:
       TSSE            : Lavf57.66.104
       Stream #0:0: Audio: mp3 (libmp3lame), 44100 Hz, stereo, fltp, 64 kb/s
       Metadata:
         variant_bitrate : 54206
         encoder         : Lavc57.82.102 libmp3lame

    [http @ 0x7f949ad03bc0] HTTP error 404 Not Foundbits/s speed=   1x

    [hls,applehttp @ 0x7f949c000000] Failed to reload playlist 0
    skipping 13 segments ahead, expired from playlists
    http://cdn.live.domain.tld:port/radio.stream/playlist.m3u8?wmsAuthSign=xyz: Server returned 404 Not Found

    Logs - Empty Playlist - on RHEL 7 - kernel 4.8.5 :

    ffmpeg version N-83691-g7f62368 Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-11)
     configuration: --prefix=/root/ffmpeg_build --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags='-L/root/ffmpeg_build/lib -ldl' --bindir=/root/bin --pkg-config-flags=--static --enable-gpl --enable-nonfree --enable-libfdk_aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265
     libavutil      55. 47.100 / 55. 47.100
     libavcodec     57. 81.100 / 57. 81.100
     libavformat    57. 66.102 / 57. 66.102
     libavdevice    57.  3.100 / 57.  3.100
     libavfilter     6. 74.100 /  6. 74.100
     libswscale      4.  3.101 /  4.  3.101
     libswresample   2.  4.100 /  2.  4.100
     libpostproc    54.  2.100 / 54.  2.100

    Empty playlist
    http://cdn.live.domain.tld:port/radio.stream/playlist.m3u8?wmsAuthSign=xyz: End of file

    And sometimes "Conversion Failed !" on RHEL 7 :

    Duration: N/A, start: 23599.450667, bitrate: 51 kb/s
     Program 0
       Metadata:
         variant_bitrate : 54206
       Stream #0:0: Audio: aac (HE-AAC), 44100 Hz, stereo, fltp, 51 kb/s
       Metadata:
         variant_bitrate : 54206
    Output #0, mp3, to 'icecast://"source":"password"@destinationIPorDomain:8000/mountPoint':
     Metadata:
       TSSE            : Lavf57.66.102
       Stream #0:0: Audio: mp3 (libmp3lame), 44100 Hz, stereo, fltp, 64 kb/s
       Metadata:
         variant_bitrate : 54206
         encoder         : Lavc57.81.100 libmp3lame
    Stream mapping:
     Stream #0:0 -> #0:0 (aac (native) -> mp3 (libmp3lame))
    Press [q] to stop, [?] for help
    [http @ 0x41c92e0] HTTP error 404 Not Found64.1kbits/s speed=0.997x    
    [hls,applehttp @ 0x408e4e0] Failed to open segment of playlist 0
    [http @ 0x40965e0] HTTP error 404 Not Found51.2kbits/s speed=0.998x    
    [hls,applehttp @ 0x408e4e0] Failed to open segment of playlist 0
    [http @ 0x41c92e0] HTTP error 404 Not Found45.7kbits/s speed=0.999x    
    [hls,applehttp @ 0x408e4e0] Failed to open segment of playlist 0
    [http @ 0x40cbec0] HTTP error 404 Not Found46.5kbits/s speed=0.999x    
    [hls,applehttp @ 0x408e4e0] Failed to open segment of playlist 0
    [http @ 0x40cbc00] HTTP error 404 Not Found44.3kbits/s speed=0.999x    
    [hls,applehttp @ 0x408e4e0] Failed to open segment of playlist 0
    [http @ 0x4097300] HTTP error 404 Not Found44.0kbits/s speed=   1x    
    [hls,applehttp @ 0x408e4e0] Failed to open segment of playlist 0
    [http @ 0x40965e0] HTTP error 404 Not Found44.8kbits/s speed=   1x    
    [hls,applehttp @ 0x408e4e0] Failed to open segment of playlist 0
    [http @ 0x40cbc00] HTTP error 404 Not Found44.5kbits/s speed=   1x    
    [hls,applehttp @ 0x408e4e0] Failed to open segment of playlist 0
    [http @ 0x4096660] HTTP error 404 Not Found46.9kbits/s speed=   1x    
    [hls,applehttp @ 0x408e4e0] Failed to open segment of playlist 0
    [http @ 0x40c74e0] HTTP error 404 Not Found47.5kbits/s speed=   1x    
    [hls,applehttp @ 0x408e4e0] Failed to open segment of playlist 0
    [http @ 0x4096260] HTTP error 404 Not Found
    [hls,applehttp @ 0x408e4e0] Failed to open segment of playlist 0
    [http @ 0x40c7800] HTTP error 404 Not Found46.4kbits/s speed=   1x    
    [hls,applehttp @ 0x408e4e0] Failed to open segment of playlist 0
    [http @ 0x40c64c0] HTTP error 404 Not Found46.1kbits/s speed=   1x    
    [hls,applehttp @ 0x408e4e0] Failed to open segment of playlist 0
    [http @ 0x40c75a0] HTTP error 404 Not Found
    [hls,applehttp @ 0x408e4e0] Failed to open segment of playlist 0
    av_interleaved_write_frame(): Broken pipe  46.1kbits/s speed=0.956x    
    Error writing trailer of icecast://"source":"password"@destinationIPorDomain:8000/mountPoint: Broken pipe
    size=    2463kB time=00:07:17.29 bitrate=  46.1kbits/s speed=0.955x    
    video:0kB audio:2463kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.001784%
    Conversion failed!