Recherche avancée

Médias (1)

Mot : - Tags -/ticket

Autres articles (27)

  • 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

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

Sur d’autres sites (6085)

  • C# capture specific frame from video file using ffmpeg takes too long

    6 septembre 2018, par Ditza

    I am trying to take specific frame from full HD video file. I am using Accord.Video.FFMPEG.
    The read ReadVideoFrame takes something like 200ms. I need It to be much faster.
    Am I doing something wrong or this is the time it should takes ? What should I use to get the frame in few milliseconds ?

    VideoFileReader reader = new VideoFileReader();
    reader.Open(source);
    int frameN = (int)Math.Floor(((reader.FrameRate).ToDouble() * pos.Milliseconds) / 1000);
    Bitmap bkg = reader.ReadVideoFrame(frameN);

    Thanks,
    Ditza

  • av_interleaved_write_frame() : Immediate exit requested when streaming WebM

    21 décembre 2013, par kd0hdf

    Ok, so I am trying to stream live video from my HD Homerun Prime (a network tv tuner that outputs mpeg2 video) to the web as WebM with ffserver. However, when I start ffmpeg it will run normally for a few seconds (and even output video through ffserver) then after 2-3 seconds it will freeze and I have to use ctrl+c to get back to a prompt.What am I missing here ? Sorry if this is a total newbie question.

    I should also mention I followed a tutorial here : https://www.virag.si/2012/11/streaming-live-webm-video-with-ffmpeg/

    FFmpeg command

    new@Desktop:~$ ffmpeg -i <network tuner="tuner"> <ffserver>
    ffmpeg version git-2013-12-12-d546a59 Copyright (c) 2000-2013 the FFmpeg developers
     built on Dec 13 2013 21:51:49 with gcc 4.8 (Ubuntu/Linaro 4.8.1-10ubuntu9)
     configuration: --prefix=/home/new/ffmpeg_build --extra-cflags=-I/home/new/ffmpeg_build/include --extra-ldflags=-L/home/new/ffmpeg_build/lib --bindir=/home/new/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-x11grab
     libavutil      52. 58.100 / 52. 58.100
     libavcodec     55. 45.101 / 55. 45.101
     libavformat    55. 22.100 / 55. 22.100
     libavdevice    55.  5.102 / 55.  5.102
     libavfilter     3. 92.100 /  3. 92.100
     libswscale      2.  5.101 /  2.  5.101
     libswresample   0. 17.104 /  0. 17.104
     libpostproc    52.  3.100 / 52.  3.100
    [mpegts @ 0x326f980] Could not find codec parameters for stream 0 (Unknown: none (ETV1 / 0x31565445)): unknown codec
    Consider increasing the value for the &#39;analyzeduration&#39; and &#39;probesize&#39; options
    [mpegts @ 0x326f980] Could not find codec parameters for stream 1 (Unknown: none (ETV1 / 0x31565445)): unknown codec
    Consider increasing the value for the &#39;analyzeduration&#39; and &#39;probesize&#39; options
    [mpegts @ 0x326f980] Could not find codec parameters for stream 4 (Unknown: none ([134][0][0][0] / 0x0086)): unknown codec
    Consider increasing the value for the &#39;analyzeduration&#39; and &#39;probesize&#39; options
    Input #0, mpegts, from &#39;http://192.168.0.199:5004/auto/v39&#39;:
     Duration: N/A, start: 85618.589122, bitrate: 192 kb/s
     Program 8
       Stream #0:0[0x1093]: Unknown: none (ETV1 / 0x31565445)
       Stream #0:1[0x1094]: Unknown: none (ETV1 / 0x31565445)
       Stream #0:2[0x1095]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv), 704x480 [SAR 10:11 DAR 4:3], max. 15000 kb/s, 29.97 fps, 59.94 tbr, 90k tbn, 59.94 tbc
       Stream #0:3[0x1096](eng): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, stereo, fltp, 192 kb/s
       Stream #0:4[0x1097]: Unknown: none ([134][0][0][0] / 0x0086)
    [libvpx @ 0x3275060] v1.2.0
    Output #0, ffm, to &#39;http://localhost:8090/feed1.ffm&#39;:
     Metadata:
       creation_time   : now
       encoder         : Lavf55.22.100
       Stream #0:0(eng): Audio: vorbis (libvorbis), 22050 Hz, mono, fltp, 64 kb/s
       Stream #0:1: Video: vp8 (libvpx), yuv420p, 720x576 [SAR 16:15 DAR 4:3], q=10-42, 1000 kb/s, 1000k tbn, 29.97 tbc
    Stream mapping:
     Stream #0:3 -> #0:0 (ac3 -> libvorbis)
     Stream #0:2 -> #0:1 (mpeg2video -> libvpx)
    Press [q] to stop, [?] for help
    ^Cav_interleaved_write_frame(): Immediate exit requested70 bitrate= 936.1kbits/s dup=51 drop=0    
    Received signal 2: terminating.
    new@Desktop:~$
    </ffserver></network>

    FFserver configuration :

    Port 8090                      # Port to bind the server to
    BindAddress 0.0.0.0
    MaxHTTPConnections 2000
    MaxClients 1000
    MaxBandwidth 10000             # Maximum bandwidth per client
                                  # set this high enough to exceed stream bitrate
    CustomLog -
    NoDaemon                       # Remove this if you want FFserver to daemonize after start

    <feed>               # This is the input feed where FFmpeg will send
      File /tmp/feed1.ffm         # video stream.
      FileMaxSize 1G              # Maximum file size for buffering video
      #ACL allow 127.0.0.1         # Allowed IPs
    </feed>

    <stream>              # Output stream URL definition
      Feed feed1.ffm              # Feed from which to receive video
      Format webm

      # Audio settings
      AudioCodec vorbis
      AudioBitRate 64             # Audio bitrate

      # Video settings
      VideoCodec libvpx
      VideoSize 720x576           # Video resolution
      VideoFrameRate 25           # Video FPS
      AVOptionVideo flags +global_header  # Parameters passed to encoder
                                          # (same as ffmpeg command-line parameters)
      AVOptionVideo cpu-used 0
      AVOptionVideo qmin 10
      AVOptionVideo qmax 42
      AVOptionVideo quality good
      AVOptionAudio flags +global_header
      PreRoll 15
      StartSendOnKey
      VideoBitRate 1000            # Video bitrate
    </stream>

    <stream>            # Server status URL
      Format status
      # Only allow local people to get the status
      ACL allow localhost
      ACL allow 192.168.0.0 192.168.255.255
    </stream>

    <redirect>    # Just an URL redirect for index
      # Redirect index.html to the appropriate site
      URL <removed url="url" to="to" ffmpeg="ffmpeg" homepage="homepage">
    </removed></redirect>

    ...and for the FFserver side

    new@Desktop:/var/www$ ffserver -d -f /etc/ffserver.conf
    ffserver version git-2013-12-12-d546a59 Copyright (c) 2000-2013 the FFmpeg developers
     built on Dec 13 2013 21:51:49 with gcc 4.8 (Ubuntu/Linaro 4.8.1-10ubuntu9)
     configuration: --prefix=/home/new/ffmpeg_build --extra-cflags=-I/home/new/ffmpeg_build/include --extra-ldflags=-L/home/new/ffmpeg_build/lib --bindir=/home/new/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-x11grab
     libavutil      52. 58.100 / 52. 58.100
     libavcodec     55. 45.101 / 55. 45.101
     libavformat    55. 22.100 / 55. 22.100
     libavdevice    55.  5.102 / 55.  5.102
     libavfilter     3. 92.100 /  3. 92.100
     libswscale      2.  5.101 /  2.  5.101
     libswresample   0. 17.104 /  0. 17.104
     libpostproc    52.  3.100 / 52.  3.100
    Fri Dec 20 23:53:20 2013 FFserver started.
    Fri Dec 20 23:53:29 2013 127.0.0.1 - - New connection: GET /feed1.ffm
    Fri Dec 20 23:53:29 2013 127.0.0.1 - - [GET] "/feed1.ffm HTTP/1.1" 200 4175
  • ffmpeg : create a video from images and sounds

    27 septembre 2018, par Yuri Gusak

    You need to create a video from a set of pictures and sounds using ffmpeg.
    Set of pictures : frame_% d.jpg
    Sounds :
    sound1.mp3 (from 0 ms)
    sound2.mp3 (from 1000 ms)
    sound3.mp3 (from 2000 ms)

    I can create a video with one sound :

    -i frame_% d.jpg -i sound1.mp3 -r 30 -s 1280x720 -preset ultrafast -crf 25 -shortest movie.mp4

    and it works.

    But I need to add some sounds at different times. How can I do that ? May be -filter_complex will help ?