Recherche avancée

Médias (91)

Autres articles (79)

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

Sur d’autres sites (8088)

  • Ffmpeg live streaming to Youtube - "Connect streaming software to start preview"

    10 septembre 2019, par Zoltan Fedor

    I have an rtsp feed (H.265) which I am trying to stream to YouTube Live, but whatever I do YouTube Studio just showing the waiting icon with "Connect streaming software to start preview".

    .sh file for streaming :

    VBR="1000k"
    FPS="30"
    QUAL="ultrafast"
    YOUTUBE_URL="rtmp://b.rtmp.youtube.com/live2"
    SOURCE="rtsp://qhatever.org:8555/whatever.sdp"      
    KEY="xxxx-xxxx-xxxx-xxxx"

    ~/ffmpeg-git-20190905-amd64-static/ffmpeg \
       -thread_queue_size 512 \
       -rtsp_transport tcp -i "$SOURCE" \
       -f lavfi -i anullsrc \
       -vcodec libx264 -pix_fmt yuvj420p -preset $QUAL -r $FPS -g $(($FPS * 2)) -b:v 2250k -minrate $VBR -maxrate 6000k -bufsize 6000k -keyint_min 60 \
       -acodec libmp3lame -ar 44100 -b:a 128k \
       -f flv "$YOUTUBE_URL/$KEY"

    Ffmpeg’s output :

    ffmpeg version N-49800-g2b66c757d6-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2019 the FFmpeg developers
     built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
     configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg
     libavutil      56. 35.100 / 56. 35.100
     libavcodec     58. 56.101 / 58. 56.101
     libavformat    58. 32.104 / 58. 32.104
     libavdevice    58.  9.100 / 58.  9.100
     libavfilter     7. 58.102 /  7. 58.102
     libswscale      5.  6.100 /  5.  6.100
     libswresample   3.  6.100 /  3.  6.100
     libpostproc    55.  6.100 / 55.  6.100
    Input #0, rtsp, from 'rtsp://whatever.org:8555/whatever.sdp':
     Metadata:
       title           : streamed by the Rtsp Server
       comment         : RTSP_STREAM_0
     Duration: N/A, start: 0.000000, bitrate: N/A
       Stream #0:0: Video: hevc (Main), yuvj420p(pc, bt709), 1920x1080, 30 fps, 30 tbr, 90k tbn, 30 tbc
       Stream #0:1: Data: none
    Input #1, lavfi, from 'anullsrc':
     Duration: N/A, start: 0.000000, bitrate: 705 kb/s
       Stream #1:0: Audio: pcm_u8, 44100 Hz, stereo, u8, 705 kb/s
    Stream mapping:
     Stream #0:0 -> #0:0 (hevc (native) -> h264 (libx264))
     Stream #1:0 -> #0:1 (pcm_u8 (native) -> mp3 (libmp3lame))
    Press [q] to stop, [?] for help
    [hevc @ 0x5fbfd80] Could not find ref with POC 4
    [libx264 @ 0x5fb9d80] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
    [libx264 @ 0x5fb9d80] profile Constrained Baseline, level 4.0, 4:2:0, 8-bit
    [libx264 @ 0x5fb9d80] 264 - core 157 r2969 d4099dd - H.264/MPEG-4 AVC codec - Copyleft 2003-2019 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=60 keyint_min=31 scenecut=0 intra_refresh=0 rc_lookahead=0 rc=abr mbtree=0 bitrate=2250 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=6000 vbv_bufsize=6000 nal_hrd=none filler=0 ip_ratio=1.40 aq=0
    Output #0, flv, to 'rtmp://b.rtmp.youtube.com/live2/xxxx-xxxx-xxxx-xxxx':
     Metadata:
       title           : streamed by the Rtsp Server
       comment         : RTSP_STREAM_0
       encoder         : Lavf58.32.104
       Stream #0:0: Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuvj420p(pc, progressive), 1920x1080, q=-1--1, 2250 kb/s, 30 fps, 1k tbn, 30 tbc
       Metadata:
         encoder         : Lavc58.56.101 libx264
       Side data:
         cpb: bitrate max/min/avg: 6000000/0/2250000 buffer size: 6000000 vbv_delay: N/A
       Stream #0:1: Audio: mp3 (libmp3lame) ([2][0][0][0] / 0x0002), 44100 Hz, stereo, s16p, 128 kb/s
       Metadata:
         encoder         : Lavc58.56.101 libmp3lame
    frame= 522 fps=31 q=19.0 size=  8802Kb time=00:00:36:53 bitrate 2481.0kbits/s dup= drop=2 speed=1.01x

    Basically all looks good to me - still, in YouTube Studio only the waiting icon with the "Connect streaming software to start preview" message is visible, not video feed.

    Any ideas ?

  • Extracted .wav file from .mp4 video with ffmpeg only has half of the duration

    16 mars 2021, par TheSprinter

    I've been using ffmpeg to extract .wav files from .mp4 videos to then generate waveforms and spectrograms for it, but I stumbled upon a file for which ffmpeg does not generate the full audio file. The video duration is 25:25 (25 minutes and 25 seconds), but the .wav file is 12:28 (12 minutes and 28 seconds).

    


    This is what I've been doing :

    


    C:\Users\<user>> ffmpeg -i video.mp4 -ab 160k -ac 1 -ar 44100 -vn audio.wav&#xA;</user>

    &#xA;

    I tried with -ac 2 only to see if I get something different, but the result is the same. In fact, I can't generate the plots I need with a stereo audio file.

    &#xA;

    This is what I get in the terminal when I run the command :

    &#xA;

    C:\Users\<user>>ffmpeg -i video.mp4 -ab 160k -ac 1 -ar 44100 -vn audio.wav&#xA;ffmpeg version 4.3 Copyright (c) 2000-2020 the FFmpeg developers&#xA;  built with gcc 9.3.1 (GCC) 20200621&#xA;  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libsrt --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libgsm --disable-w32threads --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf&#xA;  libavutil      56. 51.100 / 56. 51.100&#xA;  libavcodec     58. 91.100 / 58. 91.100&#xA;  libavformat    58. 45.100 / 58. 45.100&#xA;  libavdevice    58. 10.100 / 58. 10.100&#xA;  libavfilter     7. 85.100 /  7. 85.100&#xA;  libswscale      5.  7.100 /  5.  7.100&#xA;  libswresample   3.  7.100 /  3.  7.100&#xA;  libpostproc    55.  7.100 / 55.  7.100&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;audio.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : mp42&#xA;    minor_version   : 0&#xA;    compatible_brands: mp42mp41&#xA;    creation_time   : 2021-03-09T05:00:00.000000Z&#xA;  Duration: 00:25:25.29, start: 0.000000, bitrate: 2308 kb/s&#xA;    Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720, 4410 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)&#xA;    Metadata:&#xA;      creation_time   : 2021-03-09T05:00:00.000000Z&#xA;      handler_name    : ?Mainconcept Video Media Handler&#xA;      encoder         : AVC Coding&#xA;    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 253 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : 2021-03-09T05:00:00.000000Z&#xA;      handler_name    : #Mainconcept MP4 Sound Media Handler&#xA;Stream mapping:&#xA;  Stream #0:1 -> #0:0 (aac (native) -> pcm_s16le (native))&#xA;Press [q] to stop, [?] for help&#xA;Output #0, wav, to &#x27;audio.wav&#x27;:&#xA;  Metadata:&#xA;    major_brand     : mp42&#xA;    minor_version   : 0&#xA;    compatible_brands: mp42mp41&#xA;    ISFT            : Lavf58.45.100&#xA;    Stream #0:0(eng): Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, mono, s16, 705 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : 2021-03-09T05:00:00.000000Z&#xA;      handler_name    : #Mainconcept MP4 Sound Media Handler&#xA;      encoder         : Lavc58.91.100 pcm_s16le&#xA;size=   64463kB time=00:12:28.41 bitrate= 705.6kbits/s speed= 156x&#xA;video:0kB audio:64463kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000118%&#xA;</user>

    &#xA;

    If this information on the video is not enough to troubleshoot, the video says the following (when it starts, for the first few seconds) :

    &#xA;

    &#xA;EP TRT (23.976): 01:24:53:18&#xA;EP TRT (29.976): 01:24:55:06&#xA;&#xA;AUDIO LAYOUT&#xA;&#xA;Channel 1: Left Front (L)&#xA;Channel 2: Right Front (R)&#xA;Channel 3: Center (C)&#xA;Channel 4: Low Frequency/Effects (LFE)&#xA;Channel 5: Left Surround (Ls)&#xA;Channel 6: Right Surround (Rs)&#xA;Channel 7: Mono Mix (L)&#xA;Channel 8: Mono Mix (R)&#xA;

    &#xA;

    This is for TV, that's why you see that longer duration. I don't know if all this is relevant, actually.

    &#xA;

    Some additional info

    &#xA;

    Something curious is that I'm doing this for manual tests, but I'm actually creating an app with python and, for that, I'm using python-ffmpeg module, and I with that I'm getting the correct .wav file (with the correct duration). The python lines for this are the following :

    &#xA;

    (&#xA;                        ffmpeg&#xA;                        .input(&#xA;                            &#xA;                        )&#xA;                        .output(&#xA;                            ,&#xA;                            audio_bitrate=316000,&#xA;                            ac=1,&#xA;                            ar=48000&#xA;                        )&#xA;                        .run()&#xA;)&#xA;

    &#xA;

  • avutil : move half-precision float helper to avutil

    9 août 2022, par Timo Rothenpieler
    avutil : move half-precision float helper to avutil
    
    • [DH] libavcodec/exr.c
    • [DH] libavcodec/exrenc.c
    • [DH] libavcodec/float2half.h
    • [DH] libavcodec/half2float.h
    • [DH] libavcodec/pnmdec.c
    • [DH] libavcodec/pnmenc.c
    • [DH] libavutil/float2half.h
    • [DH] libavutil/half2float.h