Recherche avancée

Médias (91)

Autres articles (90)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

Sur d’autres sites (12098)

  • FFMPEG No encoder found for codec id 8

    3 septembre 2018, par raspiboele

    I’m using a Raspberry Pi to restreem a (https) .m3u8 stream, to a local MJPEG-stream with FFMPEG.
    Becaus I have a Nest Cam / Nest Hello and I want to import that stream into my Fibaro Homecenter (Smarthome Basestation), but the Fibaro Homecenter only eats the MJPEG format. So I made a Raspberry Pi with FFMPEG to do the trick.

    This is my /etc/ffserver.conf file :

    HTTPPort 8090

    HTTPBindAddress 0.0.0.0

    MaxHTTPConnections 2000

    MaxClients 1000

    MaxBandwidth 1000

    CustomLog -

    <feed>
    File /tmp/feed1.ffm
    FileMaxSize 30M
    </feed>

    <stream>
    Feed feed1.ffm
    Format mpjpeg
    VideoFrameRate 2
    VideoIntraOnly
    NoAudio
    Strict -1
    </stream>

    My command :

    ffmpeg -i "https://path-to-stream.com/chucklist.m3u8" http://localhost:8090/feed1.ffm

    Output :

    ffmpeg version N-89723-g2ca65fc7b7 Copyright (c) 2000-2018 the FFmpeg developers
     built with gcc 6.3.0 (Raspbian 6.3.0-18+rpi1+deb9u1) 20170516
     configuration: --arch=armel --target-os=linux --enable-gpl --enable-libx264 --enable-nonfree --enable-gnutls
     libavutil      56.  7.100 / 56.  7.100
     libavcodec     58.  9.100 / 58.  9.100
     libavformat    58.  3.100 / 58.  3.100
     libavdevice    58.  0.100 / 58.  0.100
     libavfilter     7. 11.101 /  7. 11.101
     libswscale      5.  0.101 /  5.  0.101
     libswresample   3.  0.101 /  3.  0.101
     libpostproc    55.  0.100 / 55.  0.100
    [hls,applehttp @ 0x1d16e70] Opening 'https://path-to-stream.com/chucklist.ts' for reading
    [hls,applehttp @ 0x1d16e70] Opening 'https://path-to-stream.com/chucklist.ts' for reading
    Input #0, hls,applehttp, from 'https://path-to-stream.com/chucklist.m3u8':
     Duration: N/A, start: 38789.189067, bitrate: N/A
     Program 0
       Metadata:
         variant_bitrate : 0
       Stream #0:0: Data: timed_id3 (ID3  / 0x20334449)
       Metadata:
         variant_bitrate : 0
       Stream #0:1: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuvj420p(pc, bt709), 1152x864 [SAR 1:1 DAR 4:3], 15 tbr, 90k tbn, 30 tbc
       Metadata:
         variant_bitrate : 0
       Stream #0:2: Audio: aac (LC) ([15][0][0][0] / 0x000F), 16000 Hz, mono, fltp
       Metadata:
         variant_bitrate : 0
    [tcp @ 0x27b36f0] Connection to tcp://localhost:8090 failed (Connection refused), trying next address
    [ffm @ 0x237a480] no encoder found for codec id 8
    http://localhost:8090/feed1.ffm: Invalid argument

    As you can see, I get an error : no encoder found for codec id 8
    It is frutstrating me, because I’m looking for a solution for three days now. I can’t even find a list of encoders and the coresponding ID’s. Do I have to enable maybe something in the ./configure ?

    My target is to get a stream at : http://localhost:8090/test1.mjpg

    Can anyone help me please ?

  • generating silence audio using ffmpeg with specific bitrate and duration time less than one second cannot get the audio with the desired bitrate

    28 août 2018, par bambooom

    I’d like to generate a silence audio file using ffmpeg with specific bitrate and the duration is less than one second. I found that the generated audio file does not have the desired bitrate. But if I expand the duration to 2 seconds, the bitrate seems to be correct.

    For example :

    ffmpeg -f lavfi -i anullsrc=r=22050:cl=mono -t 0.3 -acodec mp3 -ab 48k -y silence.mp3

    The generated silence.mp3’s bitrate seems not 48kb/s :

    $ ffprobe silence.mp3                                                                                          
    ffprobe version 3.4.2 Copyright (c) 2007-2018 the FFmpeg developers
     built with Apple LLVM version 9.1.0 (clang-902.0.39.1)
     configuration: --prefix=/usr/local/Cellar/ffmpeg/3.4.2 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --disable-jack --enable-gpl --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-opencl --enable-videotoolbox --disable-lzma
     libavutil      55. 78.100 / 55. 78.100
     libavcodec     57.107.100 / 57.107.100
     libavformat    57. 83.100 / 57. 83.100
     libavdevice    57. 10.100 / 57. 10.100
     libavfilter     6.107.100 /  6.107.100
     libavresample   3.  7.  0 /  3.  7.  0
     libswscale      4.  8.100 /  4.  8.100
     libswresample   2.  9.100 /  2.  9.100
     libpostproc    54.  7.100 / 54.  7.100
    Input #0, mp3, from 'silence.mp3':
     Metadata:
       encoder         : Lavf57.83.100
     Duration: 00:00:00.37, start: 0.050113, bitrate: 52 kb/s
       Stream #0:0: Audio: mp3, 22050 Hz, mono, s16p, 48 kb/s

    If the duration is 2 seconds, bitrate seems OK :

    $ ffmpeg -f lavfi -i anullsrc=r=22050:cl=mono -t 2 -acodec mp3 -ab 48k -y silence.mp3
    $ ffprobe silence.mp3                                                                                          
    ffprobe version 3.4.2 Copyright (c) 2007-2018 the FFmpeg developers
     built with Apple LLVM version 9.1.0 (clang-902.0.39.1)
     configuration: --prefix=/usr/local/Cellar/ffmpeg/3.4.2 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --disable-jack --enable-gpl --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-opencl --enable-videotoolbox --disable-lzma
     libavutil      55. 78.100 / 55. 78.100
     libavcodec     57.107.100 / 57.107.100
     libavformat    57. 83.100 / 57. 83.100
     libavdevice    57. 10.100 / 57. 10.100
     libavfilter     6.107.100 /  6.107.100
     libavresample   3.  7.  0 /  3.  7.  0
     libswscale      4.  8.100 /  4.  8.100
     libswresample   2.  9.100 /  2.  9.100
     libpostproc    54.  7.100 / 54.  7.100
    Input #0, mp3, from 'silence.mp3':
     Metadata:
       encoder         : Lavf57.83.100
     Duration: 00:00:02.06, start: 0.050113, bitrate: 48 kb/s
       Stream #0:0: Audio: mp3, 22050 Hz, mono, s16p, 48 kb/s

    Is there any way to keep the bitrate as desired ?

  • Impossible to convert between the formats supported by the filter '...' - Error reinitializing filters

    14 novembre 2023, par Fabien Biller

    I am using this ffmpeg command(values removed for simplicity)

    &#xA;

    ffmpeg -hwaccel cuvid -c:v h264_cuvid -y -ss 1 -i "FILE0001.MOV" -ss 0 -i "GOPR0621.MP4" -filter_complex &#xA;[0:v][1:v]&#xA;  midequalizer&#xA;[al];&#xA;[al]&#xA;  yadif&#xA;  lenscorrection&#xA;  scale&#xA;[vl];&#xA;[1:v]&#xA;  lenscorrection&#xA;  scale&#xA;[vr];&#xA;[vl][vr]&#xA;  hstack=shortest=1 &#xA;-an -c:v h264_nvenc -preset slow "output.mp4"&#xA;

    &#xA;

    on a machine with a cuda graphics card.

    &#xA;

    I get

    &#xA;

    ffmpeg version N-90979-g08032331ac Copyright (c) 2000-2018 the FFmpeg developers&#xA;  built with gcc 7.3.0 (GCC)&#xA;  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --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-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth&#xA;  libavutil      56. 18.100 / 56. 18.100&#xA;  libavcodec     58. 19.100 / 58. 19.100&#xA;  libavformat    58. 13.101 / 58. 13.101&#xA;  libavdevice    58.  4.100 / 58.  4.100&#xA;  libavfilter     7. 21.100 /  7. 21.100&#xA;  libswscale      5.  2.100 /  5.  2.100&#xA;  libswresample   3.  2.100 /  3.  2.100&#xA;  libpostproc    55.  2.100 / 55.  2.100&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 00000254a8afc0c0] st: 0 edit list: 1 Missing key frame while searching for timestamp: 6006&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 00000254a8afc0c0] st: 0 edit list 1 Cannot find an index entry before timestamp: 6006.&#xA;....&#xA;Stream mapping:&#xA;  Stream #0:0 (h264_cuvid) -> midequalizer:in0&#xA;  Stream #1:0 (h264) -> midequalizer:in1&#xA;  Stream #1:0 (h264) -> lenscorrection&#xA;  hstack -> Stream #0:0 (h264_nvenc)&#xA;  &#xA;Impossible to convert between the formats supported by the filter &#x27;graph 0 input from stream 0:0&#x27; and the filter &#x27;auto_scaler_0&#x27;&#xA;Error reinitializing filters!&#xA;

    &#xA;

    The same command without CUDA works, ie

    &#xA;

    ffmpeg -y -ss 1 -i "FILE0001.MOV" -ss 0 -i "GOPR0621.MP4" -filter_complex &#xA;[0:v][1:v]&#xA;  midequalizer&#xA;[al];&#xA;[al]&#xA;  yadif&#xA;  lenscorrection&#xA;  scale&#xA;[vl];&#xA;[1:v]&#xA;  lenscorrection&#xA;  scale&#xA;[vr];&#xA;[vl][vr]&#xA;  hstack=shortest=1 &#xA;-an "output.mp4"&#xA;

    &#xA;

    How do I make it work on a Windows 10 machine with cuda ?

    &#xA;