Recherche avancée

Médias (0)

Mot : - Tags -/albums

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (77)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, 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 (...)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (14636)

  • streaming webcam using ffmpeg and H.264

    4 avril 2014, par John Qualis

    I am new to ffmpeg. I am trying to stream my webcam live over the WAN to a ffserver by using ffmpeg and libx264 on a windows 7 64 bit machine.I have described my problem below. Can someone show me how to stream a webcam live using x264 and ffmpeg/ffserver ? Is it possible to do so ?

    I am using the following command :

    ffmpeg.exe -f dshow -i video="Webcam C170":audio="Microphone (3- Webcam C170)"
    -an -vcodec libx264 -b:v 64k -threads 0 -r 25 -maxrate 2048k -bufsize 6000k  
     http://AA.BB.CC.DD:8090/feed1.ffm

    I get the followoing errors -

    [mpeg1video @ 049ec4e0] too many threads/slices (9), reducing to 8
    [libx264 @ 026999e0] broken ffmpeg default settings detected
    [libx264 @ 026999e0] use an encoding preset (e.g. -vpre medium)
    [libx264 @ 026999e0] preset usage: -vpre <speed> -vpre <profile>
    [libx264 @ 026999e0] speed presets are listed in x264 --help
    [libx264 @ 026999e0] profile is optional; x264 defaults to high

     Metadata:
       creation_time   : now
       Stream #0:0: Video: mpeg1video, yuv420p, 160x128, q=2-31, 64 kb/s, 1000k tbn, 30
    tbc
       Stream #0:1: Audio: pcm_mulaw, 22050 Hz, mono, s16, 176 kb/s
       Stream #0:2: Video: h264, yuv422p, 160x128, q=2-31, 64 kb/s, 1000k tbn, 30 tbc
    Stream mapping:
     Stream #0:0 -> #0:0 (rawvideo -> mpeg1video)
     Stream #0:1 -> #0:1 (pcm_s16le -> pcm_mulaw)
     Stream #0:0 -> #0:2 (rawvideo -> libx264)
    **Error while opening encoder for output stream #0:2 - maybe incorrect parameters such
    as bit_rate, rate, width or height**
    [dshow @ 0269f640] real-time buffer 101% full! frame dropped!
    </profile></speed>

    Here is my ffserver.conf (relevant parts)

    <stream>

    # coming from live feed &#39;feed1&#39;
    Feed feed1.ffm
    Format mpeg

    # Bitrate for the audio stream. Codecs usually support only a few
    # different bitrates.
    AudioBitRate 32

    # Number of audio channels: 1 = mono, 2 = stereo
    AudioChannels 1
    AudioSampleRate 44100

    # Bitrate for the video stream
    VideoBitRate 64
    VideoBufferSize 40
    # Number of frames per second
    #VideoFrameRate 8
    #VideoFrameRate 40
    VideoFrameRate 3

    VideoSize 160x128
    VideoGopSize 12
    No Audio
    ACL: .....
    </stream>
    ...............
    ...............
    <stream>
    Format rtp
    Feed feed1.ffm
    VideoCodec libx264
    VideoFrameRate 15
    VideoBitRate 64
    #VideoSize 480x272
    # VideoSize 176x144
    #AVPresetVideo default
    #AVPresetVideo default
    #AVPresetVideo baseline
    #AVOptionVideo flags +global_header
    </stream>
  • ffmpeg "Time code of first frame" not making sense [closed]

    23 janvier, par Kevin Vasko

    I can't seem to make sense of where ffmpeg is coming up with the "Time code of first frame" value.

    &#xA;

    My original file that I am using.

    &#xA;

    This video has the general timestamps of the original encoding date (aka the start time of the video the way I understanding it) and a duration of 8 min and 52s

    &#xA;

    $ mediainfo GL0100002_output.mp4 &#xA;General&#xA;Complete name                            : GL0100002_output.mp4&#xA;Format                                   : MPEG-4&#xA;Format profile                           : Base Media&#xA;Codec ID                                 : isom (isom/iso2/avc1/mp41)&#xA;File size                                : 93.7 MiB&#xA;Duration                                 : 8 min 52 s&#xA;Overall bit rate                         : 1 476 kb/s&#xA;Encoded date                             : UTC 2022-02-23 15:18:42&#xA;Tagged date                              : UTC 2022-02-23 15:18:42&#xA;Writing application                      : Lavf58.29.100&#xA;&#xA;Video&#xA;ID                                       : 1&#xA;Format                                   : AVC&#xA;Format/Info                              : Advanced Video Codec&#xA;Format profile                           : High@L3&#xA;Format settings                          : CABAC / 4 Ref Frames&#xA;Format settings, CABAC                   : Yes&#xA;Format settings, Reference frames        : 4 frames&#xA;Codec ID                                 : avc1&#xA;Codec ID/Info                            : Advanced Video Coding&#xA;Duration                                 : 8 min 52 s&#xA;Bit rate                                 : 1 342 kb/s&#xA;Width                                    : 848 pixels&#xA;Height                                   : 480 pixels&#xA;Display aspect ratio                     : 16:9&#xA;Frame rate mode                          : Constant&#xA;Frame rate                               : 23.976 (24000/1001) FPS&#xA;Color space                              : YUV&#xA;Chroma subsampling                       : 4:2:0&#xA;Bit depth                                : 8 bits&#xA;Scan type                                : Progressive&#xA;Bits/(Pixel*Frame)                       : 0.138&#xA;Stream size                              : 85.2 MiB (91%)&#xA;Title                                    : GoPro AVC  &#xA;Writing library                          : x264 core 155 r2917 0a84d98&#xA;Encoding settings                        : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=23.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00&#xA;Language                                 : English&#xA;Encoded date                             : UTC 2022-02-23 15:18:42&#xA;Tagged date                              : UTC 2022-02-23 15:18:42&#xA;Color range                              : Full&#xA;Codec configuration box                  : avcC&#xA;&#xA;Audio&#xA;ID                                       : 2&#xA;Format                                   : AAC LC&#xA;Format/Info                              : Advanced Audio Codec Low Complexity&#xA;Codec ID                                 : mp4a-40-2&#xA;Duration                                 : 8 min 52 s&#xA;Bit rate mode                            : Constant&#xA;Bit rate                                 : 129 kb/s&#xA;Channel(s)                               : 2 channels&#xA;Channel layout                           : L R&#xA;Sampling rate                            : 48.0 kHz&#xA;Frame rate                               : 46.875 FPS (1024 SPF)&#xA;Compression mode                         : Lossy&#xA;Stream size                              : 8.16 MiB (9%)&#xA;Title                                    : GoPro AAC  &#xA;Language                                 : English&#xA;Default                                  : Yes&#xA;Alternate group                          : 1&#xA;Encoded date                             : UTC 2022-02-23 15:18:42&#xA;Tagged date                              : UTC 2022-02-23 15:18:42&#xA;&#xA;Other&#xA;ID                                       : 3&#xA;Type                                     : Time code&#xA;Format                                   : QuickTime TC&#xA;Duration                                 : 8 min 52 s&#xA;Frame rate                               : 23.976 (24000/1001) FPS&#xA;Time code of first frame                 : 15:57:41:15&#xA;Time code, striped                       : Yes&#xA;Title                                    : GoPro AVC  &#xA;Language                                 : English&#xA;Default                                  : No&#xA;Encoded date                             : UTC 2022-02-23 15:18:42&#xA;Tagged date                              : UTC 2022-02-23 15:18:42&#xA;

    &#xA;

    Now if I run

    &#xA;

    ffmpeg -y -nostdin -v error -ss 00:00:00.042 -i GL0100002_output.mp4 -t 00:00:25.192 -map 0 -map -0:d -c:v libx264 -preset fast -crf 21 -c:a aac -sn GL0100002_test.DSME_0001.mp4

    &#xA;

    I get the following mediainfo

    &#xA;

    $ mediainfo GL0100002_test.DSME_0001.mp4 &#xA;General&#xA;Complete name                            : GL0100002_test.DSME_0001.mp4&#xA;Format                                   : MPEG-4&#xA;Format profile                           : Base Media&#xA;Codec ID                                 : isom (isom/iso2/avc1/mp41)&#xA;File size                                : 4.54 MiB&#xA;Duration                                 : 25 s 234 ms&#xA;Overall bit rate                         : 1 510 kb/s&#xA;Writing application                      : Lavf58.29.100&#xA;&#xA;Video&#xA;ID                                       : 1&#xA;Format                                   : AVC&#xA;Format/Info                              : Advanced Video Codec&#xA;Format profile                           : High@L3&#xA;Format settings                          : CABAC / 4 Ref Frames&#xA;Format settings, CABAC                   : Yes&#xA;Format settings, Reference frames        : 4 frames&#xA;Codec ID                                 : avc1&#xA;Codec ID/Info                            : Advanced Video Coding&#xA;Duration                                 : 25 s 234 ms&#xA;Bit rate                                 : 1 376 kb/s&#xA;Width                                    : 848 pixels&#xA;Height                                   : 480 pixels&#xA;Display aspect ratio                     : 16:9&#xA;Frame rate mode                          : Constant&#xA;Frame rate                               : 23.976 (24000/1001) FPS&#xA;Color space                              : YUV&#xA;Chroma subsampling                       : 4:2:0&#xA;Bit depth                                : 8 bits&#xA;Scan type                                : Progressive&#xA;Bits/(Pixel*Frame)                       : 0.141&#xA;Stream size                              : 4.14 MiB (91%)&#xA;Title                                    : GoPro AVC  &#xA;Writing library                          : x264 core 155 r2917 0a84d98&#xA;Encoding settings                        : cabac=1 / ref=2 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=6 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=1 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=30 / rc=crf / mbtree=1 / crf=21.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00&#xA;Language                                 : English&#xA;Color range                              : Full&#xA;Codec configuration box                  : avcC&#xA;&#xA;Audio&#xA;ID                                       : 2&#xA;Format                                   : AAC LC&#xA;Format/Info                              : Advanced Audio Codec Low Complexity&#xA;Codec ID                                 : mp4a-40-2&#xA;Duration                                 : 25 s 214 ms&#xA;Duration_LastFrame                       : -3 ms&#xA;Bit rate mode                            : Constant&#xA;Bit rate                                 : 129 kb/s&#xA;Channel(s)                               : 2 channels&#xA;Channel layout                           : L R&#xA;Sampling rate                            : 48.0 kHz&#xA;Frame rate                               : 46.875 FPS (1024 SPF)&#xA;Compression mode                         : Lossy&#xA;Stream size                              : 398 KiB (9%)&#xA;Title                                    : GoPro AAC  &#xA;Language                                 : English&#xA;Default                                  : Yes&#xA;Alternate group                          : 1&#xA;&#xA;Other&#xA;ID                                       : 3&#xA;Type                                     : Time code&#xA;Format                                   : QuickTime TC&#xA;Duration                                 : 25 s 234 ms&#xA;Frame rate                               : 23.976 (24000/1001) FPS&#xA;Time code of first frame                 : 15:57:41:15&#xA;Time code, striped                       : Yes&#xA;Title                                    : GoPro AVC  &#xA;Language                                 : English&#xA;Default                                  : No&#xA;

    &#xA;

    But what I don't understand is where Time code of first frame is coming from. I would expect it would be 00:00:00.042 or even UTC 2022-02-23 15:18:42 + .042 but appear to be.

    &#xA;

    Time code of first frame                 : 15:57:41:15&#xA;

    &#xA;

    Is this potentially clobbering together something to get this time that isn't obvious ?

    &#xA;

  • How to preserve colours when colour metadata is "unknown"

    5 avril 2024, par Hashim Aziz

    I often need to scale up many files with unknown color metadata (probably because FFmpeg itself was dropping that metadata until very recently) :

    &#xA;

    $ ffprobe -v error -show_streams "input.mp4" | grep color&#xA;&#xA;color_range=tv&#xA;color_space=unknown&#xA;color_transfer=unknown&#xA;color_primaries=unknown&#xA;

    &#xA;

    No matter what I do to try and preserve the colours in these files, nothing works to prevent the colours from shifting, usually coming out darker than the input.

    &#xA;

    I've already tried :

    &#xA;

      &#xA;
    1. Setting all four color metadata options (-colorspace, -color_trc, -color_primaries, -color_range) to all of their possible values for PAL, NTSC and HD inputs (bt470bg, smpte170m and bt709 respectively)

      &#xA;

    2. &#xA;

    3. Automatically converting the colorspace as part of the scale by adding in_color_matrix=auto:out_color_matrix=<colorspace></colorspace>, where is either bt470, smpte170m or bt709

      &#xA;

    4. &#xA;

    5. Explicitly converting the colorspace as part of the scale by adding in_color_matrix=<colorspace>:out_color_matrix=bt709</colorspace>, where is either bt470, smpte170m or bt709

      &#xA;

    6. &#xA;

    &#xA;

    After all of this, I'm still left none the wiser as to how the hell colour works in FFmpeg and what I'm meant to be doing just to get my colour to look as it does in the original input.

    &#xA;

    Here is the (simplified) FFmpeg command that I'm running as part of a larger script, most of which is probably irrelevant to the issue but which I've included in case it isn't :

    &#xA;

    ffmpeg -y -hide_banner \&#xA;-i "input.webm" -i "outro.mp4" -loop 1 -i "watermark.png" \&#xA;-movflags &#x2B;faststart&#x2B;write_colr \ &#xA;-filter_complex \&#xA;"color=black:16x16:d=780[base];&#xA;[0:v]scale=1922:&#x27;max(1080,ih)&#x27;:flags=lanczos:in_color_matrix=auto:out_color_matrix=bt709[v0];&#xA;[1:v]scale=1922:&#x27;max(1080,ih)&#x27;:flags=lanczos,fade=in:st=0:d=2:alpha=1[v1];&#xA;[2:v]lut=a=val*0.7,fade=in:st=15:d=3:alpha=1,fade=out:st=775:d=3:alpha=1[v2];&#xA;[base][v0]scale2ref[base][v0];&#xA;[base][v0]overlay[tmp];&#xA;[tmp][v1]overlay,setsar=1[tmp2];&#xA;[v2][tmp2]scale2ref=w=oh*mdar:h=ih*0.07[watermark_scaled][video]&#xA;[video][watermark_scaled]overlay=80:50:shortest=1:format=rgb[outv];&#xA;[0:a]afade=out:st=778:d=2[0a];&#xA;[0a][1:a]concat=n=2:v=0:a=1[outa]" \&#xA;-map "[outv]" -map "[outa]" -c:v libx264 -crf 15 -c:a libopus \&#xA;-pix_fmt yuv420p -colorspace bt709 -color_trc bt709 -color_primaries bt709 -color_range tv "output.mp4" &#xA;

    &#xA;