Recherche avancée

Médias (91)

Autres articles (80)

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

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

Sur d’autres sites (13059)

  • Video encoder & segmenter for HLS VoD poor quality

    10 juillet 2017, par Murilo

    I am trying to encode and segment video for HLS on demand(VoD).
    I am using the following code for such :

    ffmpeg -i 20170706_174314.mp4 -c 24 \
           -vcodec libx264 -acodec aac -ac 1 -strict -2 -b:v 128k \
           -profile:v baseline -maxrate 400k -bufsize 1835k \
           -hls_time 10 -hls_playlist_type vod -vsync 1 \
           video_chunks/index1.m3u8 \
           -c 24 -vcodec libx264 -acodec aac -ac 1 -strict -2 -b:v 128k \
           -profile:v baseline -maxrate 700k -bufsize 1835k \
           -hls_time 10 -hls_playlist_type vod -vsync 1 \
           video_chunks/index2.m3u8

    I tried this other code also just for segmenting but had the same exactly problem :

    ffmpeg -i 20170706_174314.mp4 \
    -c:a libmp3lame -ar 48000 -ab 64k  -c:v libx264 -b:v 128k -flags \
    -global_header -map 0 -f segment \
    -segment_list video_chunks/test.m3u8 -segment_time 10 -segment_format mpegts \
    video_chunks/segment_%05d.ts

    Later on I create another playlist with bandwidth separators to call on the two other playlists generated with the code above.

    This code was working great on some videos but yesterday I recorded a video with my Samsung J7 Prime phone to test since the videos will be generated by phone and this video was poorly encoded. The quality sucks and some parts of the video turned Black&White.

    Another thing I noticed on this video is that the following message kept appearing in loop until the end of the encoding&segmenting process.

    Past duration X too large

    Where X is a decimal really close to

    0.675316

    The link to the video is below :

    Dropbox Link

    My FFmpeg version :

    ffmpeg --version
    ffmpeg version N-86482-gbc40674 Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 7.1.0 (GCC)
     configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-zlib
     libavutil      55. 66.100 / 55. 66.100
     libavcodec     57. 99.100 / 57. 99.100
     libavformat    57. 73.100 / 57. 73.100
     libavdevice    57.  7.100 / 57.  7.100
     libavfilter     6. 92.100 /  6. 92.100
     libswscale      4.  7.101 /  4.  7.101
     libswresample   2.  8.100 /  2.  8.100
     libpostproc    54.  6.100 / 54.  6.100

    SO : Windows 10

    EDIT1 : Link to the output
    If you see the output it might be worth saying I am also seeing the message

    VBV underflow(Frame X, -Y bits)

  • Could not get audio( libopus ) stream from ffserver via rtp

    7 juillet 2017, par Кирилл Казаков

    I need to get the rtp stream with the next codecs vp8,opus.
    I get a stream from a camera (h264, aac), then I send to ffmpeg,then I send it to the ffserver and from there I want to receive a stream in the format rtp.
    Video (VP8) without audio i successfully get, but stream video with audio ( any codecs ( aac, vorbis, opus ) ) not work.

    ffmpeg command :

    ./ffmpeg -thread_queue_size 512 -rtsp_transport tcp -i rtsp://ip:port/stream -analyzeduration 0 -threads 2 http://localhost:4000/feed1.ffm

    ffserver config :

    HTTPPort 4000
    RTSPPort 1235

    RTSPBindAddress 0.0.0.0
    HTTPBindAddress 0.0.0.0
    MaxHTTPConnections 2000
    MaxClients 1000
    MaxBandwidth 10000

    <feed>
           File /tmp/feed1.ffm
           FileMaxSize 1G
           ACL allow 127.0.0.1
           ACL allow localhost
    </feed>

    <stream>
       Feed feed1.ffm
       Format rtp

       # Video settings
       VideoCodec libvpx
       VideoSize 720x576
       VideoFrameRate 25
       VideoBitRate 512
       AVOptionVideo maxrate 2000
       VideoQMin 4
       VideoQMax 50
       VideoBufferSize 4000

       AVOptionVideo cpu-used 3
       AVOptionVideo crf 33
       AVOptionVideo quality realtime
       AVOptionVideo flags +global_header
       #PreRoll 0
       #StartSendOnKey

       # Audio settings
       #AudioCodec aac
       #AudioCodec libopus
       #Strict -2
       AudioBitRate 128
       AudioChannels 2
       AudioSampleRate 48k
       AVOptionAudio flags +global_header

       ACL allow localhost
    </stream>

    And without video (only audio) - not worked

    HTTPPort 4000
    RTSPPort 1235

    RTSPBindAddress 0.0.0.0
    HTTPBindAddress 0.0.0.0
    MaxHTTPConnections 2000
    MaxClients 1000
    MaxBandwidth 10000

    <feed>
           File /tmp/feed1.ffm
           FileMaxSize 1G
           ACL allow 127.0.0.1
           ACL allow localhost
    </feed>

    <stream>
       Feed feed1.ffm
       Format rtp

       # Video settings
       NoVideo

       # Audio settings
       #AudioCodec aac
       #AudioCodec libopus
       #Strict -2
       AudioBitRate 128
       AudioChannels 2
       AudioSampleRate 48k
       AVOptionAudio flags +global_header

       ACL allow localhost
    </stream>

    I try to connect to my stream via vlc, but i see error in vlc ( if audio libopus) core error: could not identify codec, if audio codec (e.g. aac ) - live555 error: no data received in 10s, aborting .

    ffserver info build :

    ffserver version N-86676-g45dbb40cd1-static http://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 5.4.1 (Debian 5.4.1-11) 20170519
     configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-5 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg
     libavutil      55. 67.100 / 55. 67.100
     libavcodec     57.100.102 / 57.100.102
     libavformat    57. 75.100 / 57. 75.100
     libavdevice    57.  7.100 / 57.  7.100
     libavfilter     6. 94.100 /  6. 94.100
     libswscale      4.  7.101 /  4.  7.101
     libswresample   2.  8.100 /  2.  8.100
     libpostproc    54.  6.100 / 54.  6.100

    ffmpeg info build :

    ffmpeg version N-86676-g45dbb40cd1-static http://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 5.4.1 (Debian 5.4.1-11) 20170519
     configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-5 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg
     libavutil      55. 67.100 / 55. 67.100
     libavcodec     57.100.102 / 57.100.102
     libavformat    57. 75.100 / 57. 75.100
     libavdevice    57.  7.100 / 57.  7.100
     libavfilter     6. 94.100 /  6. 94.100
     libswscale      4.  7.101 /  4.  7.101
     libswresample   2.  8.100 /  2.  8.100
     libpostproc    54.  6.100 / 54.  6.100

    What a problem ? Any idea ?
    .

  • Overlay Image on moving object in Video

    5 juillet 2017, par Karandeep Atwal

    I am using FFmpeg to overlay image/emoji on video by this command -

    "-i "+inputfilePath+" -filter_complex "+"[0][1]overlay=enable='between(t,"+startTime+","+endTime+")'[v1]"+" -map [v0] -map 0:a "+OutputfilePath;  

    But above command only overlay image over video and stays still.

    In Instagram and Snapchat there is New pin feature . I want exactly same ,eg blur on moving faces or as in below videos -

    enter image description here

    Here is link.

    Is it possible via FFmpeg ?

    I think someone with OPENCV or Argumented Reality knowledge can help in this .