Recherche avancée

Médias (1)

Mot : - Tags -/Christian Nold

Autres articles (42)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Le plugin : Podcasts.

    14 juillet 2010, par

    Le problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
    Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
    Types de fichiers supportés dans les flux
    Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)

Sur d’autres sites (6321)

  • Adding metadata to the beginning of an mp4

    25 décembre 2017, par kamran taghaddos

    I want to stream mp4 video file.I know that i should place the metadata at beginning, but this is happenning if you have the complete file.
    Is there any way to create custom metadata and add it to beginning of mp4 video once the first byte of video is taken ?

    I want to add these option to metadata(because i have these options from past) :

    Video length,
    Video frame width,
    Video frame heught,
    Video data rate,
    Video total bitrate,
    Video frame bit rate,

    Audio bit rate,
    Audio channels,
    Audio sample rate

  • 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 : How to get the frames count of a video.mp4 using libav's API

    2 janvier 2018, par IllegalSkillsException

    I am using libav with FFmpeg based APIs.

    I have a valid AVFormatContext, AVCodecContext, AVCodec pointer. I am able to open the video file using avformat_open_input.

    How can I get the total number of frames in my sample_video.mp4 ?