Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

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

Autres articles (38)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

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

Sur d’autres sites (3682)

  • ffmpeg nvenc_h264 streaming uhd2160 rawvideo. Youtube buffering

    23 janvier 2019, par Alex Deroza

    I use this batch file for starting my stream :

    echo starting transocding from native uhd2160 to fhd format.. Host: YouTube
    ffmpeg ^
       -loglevel -8 ^
       -f rawvideo -s:v 1920x1080 -r 60 -pix_fmt nv12 ^
       -f dshow -i video="Game Capture 4K60 Pro Video 01":audio="Game Capture 4K60 Pro Audio 01" ^
       -c:v h264_nvenc ^
       -level:v 4.2 ^
       -profile:v high ^
       -preset:v hq ^
       -b:v 8.8M ^
       -color_range 2 ^
       -colorspace bt709 ^
       -bf 0 ^
       -g 60 ^
       -2pass 1 ^
       -rc:v cbr ^
       -coder cabac ^
       -acodec aac ^
       -ab 128k ^
       -movflags +faststart ^
       -f flv rtmp://a.rtmp.youtube.com/live2/xxxx-xxxx-xxxx-xxxx && pause

    Stream on YouTube starts fine, and plays with good quality. But stream stops after when "Buffer Health" emptied. And in this situation Youtube says that "Video output low", "YouTube is not receiving enough video to maintain smooth streaming. As such, viewers will experience buffering."

    I can’t understand why it happens. Because I’ve a good ISP, and over 30 mbps inet to YT services within 90ms latency to them.

    YouTube is not receiving enough video to maintain smooth streaming. As
    such, viewers will experience buffering.

    Your encoder is sending data faster than realtime (multipleseconds of
    video each second). You must rate limit your livevideo upload to
    approximately 1 second of video each second.

    The stream’s current bitrate (5730.00 Kbps) is lower than the
    recommended bitrate. We recommend that you use a stream bitrate of
    4500 Kbps.

  • H.264 encoded stream in MP4 container does not play right in WMP12 Windows 7

    13 décembre 2019, par remus

    I’d like to figure out why my H.264 encoded stream in a MP4 container does not play back correctly in Window Media Player 12 in Windows 7. The file plays well in VLC and other players including WMP from Windows 10 but I’m just wondering why WMP12 from Win 7 does not play it.

    It seems that only I-type frames are displayed and blank black frames are shown instead of all P-type frames in between. If I force my device encoder to produce only I-type frames then the file plays back ok in WMP12 (Win 7) but the size of the file increases too much. What are the limits of H.264 decoder in Windows 7 ?

    I’m adding below ffprobe -show_frames video.mp4 (just a few frames but there are no reported errors by ffprobe) :

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf57.83.100
     Duration: 00:00:05.51, start: 0.024000, bitrate: 513 kb/s
       Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 720x480, 510 kb/s, 30.11 fps, 59.94 tbr, 90k tbn, 180k tbc (default)
       Metadata:
         handler_name    : VideoHandler
    [FRAME]
    media_type=video
    stream_index=0
    key_frame=1
    pkt_pts=2160
    pkt_pts_time=0.024000
    pkt_dts=2160
    pkt_dts_time=0.024000
    best_effort_timestamp=2160
    best_effort_timestamp_time=0.024000
    pkt_duration=2340
    pkt_duration_time=0.026000
    pkt_pos=48
    pkt_size=2979
    width=720
    height=480
    pix_fmt=yuv420p
    sample_aspect_ratio=N/A
    pict_type=I
    coded_picture_number=0
    display_picture_number=0
    interlaced_frame=0
    top_field_first=0
    repeat_pict=0
    [/FRAME]
    [FRAME]
    media_type=video
    stream_index=0
    key_frame=0
    pkt_pts=4500
    pkt_pts_time=0.050000
    pkt_dts=4500
    pkt_dts_time=0.050000
    best_effort_timestamp=4500
    best_effort_timestamp_time=0.050000
    pkt_duration=4320
    pkt_duration_time=0.048000
    pkt_pos=3027
    pkt_size=1662
    width=720
    height=480
    pix_fmt=yuv420p
    sample_aspect_ratio=N/A
    pict_type=P
    coded_picture_number=1
    display_picture_number=0
    interlaced_frame=0
    top_field_first=0
    repeat_pict=0
    [/FRAME]
    [FRAME]
    media_type=video
    stream_index=0
    key_frame=0
    pkt_pts=8820
    pkt_pts_time=0.098000
    pkt_dts=8820
    pkt_dts_time=0.098000
    best_effort_timestamp=8820
    best_effort_timestamp_time=0.098000
    pkt_duration=3060
    pkt_duration_time=0.034000
    pkt_pos=4689
    pkt_size=1073
    width=720
    height=480
    pix_fmt=yuv420p
    sample_aspect_ratio=N/A
    pict_type=P
    coded_picture_number=2
    display_picture_number=0
    interlaced_frame=0
    top_field_first=0
    repeat_pict=0
    [/FRAME]
    [FRAME]
    media_type=video
    stream_index=0
    key_frame=0
    pkt_pts=11880
    pkt_pts_time=0.132000
    pkt_dts=11880
    pkt_dts_time=0.132000
    best_effort_timestamp=11880
    best_effort_timestamp_time=0.132000
    pkt_duration=2970
    pkt_duration_time=0.033000
    pkt_pos=5762
    pkt_size=829
    width=720
    height=480
    pix_fmt=yuv420p
    sample_aspect_ratio=N/A
    pict_type=P
    coded_picture_number=3
    display_picture_number=0
    interlaced_frame=0
    top_field_first=0
    repeat_pict=0
    [/FRAME]
    [FRAME]
    media_type=video
    stream_index=0
    key_frame=0
    pkt_pts=14850
    pkt_pts_time=0.165000
    pkt_dts=14850
    pkt_dts_time=0.165000
    best_effort_timestamp=14850
    best_effort_timestamp_time=0.165000
    pkt_duration=3060
    pkt_duration_time=0.034000
    pkt_pos=6591
    pkt_size=987
    width=720
    height=480
    pix_fmt=yuv420p
    sample_aspect_ratio=N/A
    pict_type=P
    coded_picture_number=4
    display_picture_number=0
    interlaced_frame=0
    top_field_first=0
    repeat_pict=0
    [/FRAME]
    [FRAME]
    media_type=video
    stream_index=0
    key_frame=0
    pkt_pts=17910
    pkt_pts_time=0.199000
    pkt_dts=17910
    pkt_dts_time=0.199000
    best_effort_timestamp=17910
    best_effort_timestamp_time=0.199000
    pkt_duration=2970
    pkt_duration_time=0.033000
    pkt_pos=7578
    pkt_size=1344
    width=720
    height=480
    pix_fmt=yuv420p
    sample_aspect_ratio=N/A
    pict_type=P
    coded_picture_number=5
    display_picture_number=0
    interlaced_frame=0
    top_field_first=0
    repeat_pict=0
    [/FRAME]
    [FRAME]
    media_type=video
    stream_index=0
    key_frame=0
    pkt_pts=20880
    pkt_pts_time=0.232000
    pkt_dts=20880
    pkt_dts_time=0.232000
    best_effort_timestamp=20880
    best_effort_timestamp_time=0.232000
    pkt_duration=2970
    pkt_duration_time=0.033000
    pkt_pos=8922
    pkt_size=1850
    width=720
    height=480
    pix_fmt=yuv420p
    sample_aspect_ratio=N/A
    pict_type=P
    coded_picture_number=6
    display_picture_number=0
    interlaced_frame=0
    top_field_first=0
    repeat_pict=0
    [/FRAME]
    [FRAME]
    media_type=video
    stream_index=0
    key_frame=0
    pkt_pts=23850
    pkt_pts_time=0.265000
    pkt_dts=23850
    pkt_dts_time=0.265000
    best_effort_timestamp=23850
    best_effort_timestamp_time=0.265000
    pkt_duration=3060
    pkt_duration_time=0.034000
    pkt_pos=10772
    pkt_size=1972
    width=720
    height=480
    pix_fmt=yuv420p
    sample_aspect_ratio=N/A
    pict_type=P
    coded_picture_number=7
    display_picture_number=0
    interlaced_frame=0
    top_field_first=0
    repeat_pict=0
    [/FRAME]

    Please let me know if you spot any errors in these frames that might affect playback.

    The encoded H.264 stream is created using Freescale libimxvpuapi and the MP4 container using ffmpeg.

    More information on the file :

    exiftool video.mp4
    ExifTool Version Number         : 10.10
    File Name                       : video.mp4
    Directory                       : .
    File Size                       : 346 kB
    File Modification Date/Time     : 2018:10:02 11:27:20+02:00
    File Access Date/Time           : 2018:10:02 11:41:14+02:00
    File Inode Change Date/Time     : 2018:10:02 11:27:21+02:00
    File Permissions                : rw-r--r--
    File Type                       : MP4
    File Type Extension             : mp4
    MIME Type                       : video/mp4
    Major Brand                     : MP4  Base Media v1 [IS0 14496-12:2003]
    Minor Version                   : 0.2.0
    Compatible Brands               : isom, iso2, avc1, mp41
    Movie Data Size                 : 351479
    Movie Data Offset               : 48
    Movie Header Version            : 0
    Create Date                     : 0000:00:00 00:00:00
    Modify Date                     : 0000:00:00 00:00:00
    Time Scale                      : 1000
    Duration                        : 5.51 s
    Preferred Rate                  : 1
    Preferred Volume                : 100.00%
    Preview Time                    : 0 s
    Preview Duration                : 0 s
    Poster Time                     : 0 s
    Selection Time                  : 0 s
    Selection Duration              : 0 s
    Current Time                    : 0 s
    Next Track ID                   : 2
    Track Header Version            : 0
    Track Create Date               : 0000:00:00 00:00:00
    Track Modify Date               : 0000:00:00 00:00:00
    Track ID                        : 1
    Track Duration                  : 5.51 s
    Track Layer                     : 0
    Track Volume                    : 0.00%
    Matrix Structure                : 1 0 0 0 1 0 0 0 1
    Image Width                     : 720
    Image Height                    : 480
    Media Header Version            : 0
    Media Create Date               : 0000:00:00 00:00:00
    Media Modify Date               : 0000:00:00 00:00:00
    Media Time Scale                : 90000
    Media Duration                  : 5.51 s
    Media Language Code             : und
    Handler Description             : VideoHandler
    Graphics Mode                   : srcCopy
    Op Color                        : 0 0 0
    Compressor ID                   : avc1
    Source Image Width              : 720
    Source Image Height             : 480
    X Resolution                    : 72
    Y Resolution                    : 72
    Bit Depth                       : 24
    Video Frame Rate                : 30.109
    Handler Type                    : Metadata
    Handler Vendor ID               : Apple
    Encoder                         : Lavf57.83.100
    Avg Bitrate                     : 510 kbps
    Image Size                      : 720x480
    Megapixels                      : 0.346
    Rotation                        : 0

    Many thanks !

    Please find a video sample here :

    https://www.dropbox.com/s/zehqgqhd8ychy0t/video.mp4?dl=0

  • Time FFMPEG takes to encode a video file

    1er avril 2020, par amateur

    I have recently been working with FFMPEG to do some manipulation on video files, becoming aware of the syntax etc and have found it very helpful. I am looking for some feedback though on the speed it takes to encode file. For example, I run the following command against a video file, 1 hour in length, file extension .mov and 4GB in size, and the command takes just over 4 hours to run. It produces a file 2.2GB in size. I am running it on a high spec i7 laptop.

    



        ffmpeg -i "C:\MyInputFile.mov" -b:v 4500k -bufsize 4500k -r 50 -bsf:a aac_adtstoasc -vf scale=1920:1080 "C:\MyOutputFile.mp4"

Please see following the log created at the start of the encoding. I dont have the full log unless I let it run again for 4 hours!

    -i "C:\MyInputFile.mov" -b:v 4500k -bufsize 4500k -r 50 -bsf:a aac_adtstoasc -vf scale=1920:1080 "C:\MyOutputFile.mp4"
ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 9.2.1 (GCC) 20200122
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --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 --enable-libopenmpt
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\MyInputFile.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    creation_time   : 2019-06-24T18:14:35.000000Z
    timecode        : 10:00:00:00
  Duration: 01:09:20.12, start: 0.000000, bitrate: 8092 kb/s
    Stream #0:0(eng): Video: mpeg4 (Advanced Simple Profile) (mp4v / 0x7634706D), yuv420p(pc, smpte170m/unknown/smpte170m), 1024x576 [SAR 1:1 DAR 16:9], 6553 kb/s, 25 fps, 25 tbr, 25k tbn, 1k tbc (default)
    Metadata:
      creation_time   : 2019-06-24T18:14:35.000000Z
      handler_name    : Apple Video Media Handler
      encoder         : MPEG-4 Video
    Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s (default)
    Metadata:
      creation_time   : 2019-06-24T18:14:36.000000Z
      handler_name    : Apple Sound Media Handler
    Stream #0:2(eng): Data: none (tmcd / 0x64636D74) (default)
    Metadata:
      creation_time   : 2019-06-24T19:32:28.000000Z
      handler_name    : Time Code Media Handler
      timecode        : 10:00:00:00
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg4 (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (pcm_s16le (native) -> aac (native))
Press [q] to stop, [?] for help
[libx264 @ 000001d8655322c0] VBV maxrate unspecified, assuming CBR
[libx264 @ 000001d8655322c0] using SAR=1/1
[libx264 @ 000001d8655322c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 000001d8655322c0] profile High, level 4.2, 4:2:0, 8-bit
[libx264 @ 000001d8655322c0] 264 - core 159 - H.264/MPEG-4 AVC codec - Copyleft 2003-2019 - http://www.videolan.org/x264.html - options: 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=6 lookahead_threads=1 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=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=cbr mbtree=1 bitrate=4500 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=4500 vbv_bufsize=4500 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to ' C:\MyOutputFile.mp4':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    timecode        : 10:00:00:00
    encoder         : Lavf58.29.100
    Stream #0:0(eng): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 4500 kb/s, 0.02 fps, 12800 tbn, 50 tbc (default)
    Metadata:
      creation_time   : 2019-06-24T18:14:35.000000Z
      handler_name    : Apple Video Media Handler
      encoder         : Lavc58.54.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/4500000 buffer size: 4500000 vbv_delay: -1
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      creation_time   : 2019-06-24T18:14:36.000000Z
      handler_name    : Apple Sound Media Handler
      encoder         : Lavc58.54.100 aac
frame=  273 fps= 21 q=31.0 size=    2048kB time=00:00:05.44 bitrate=3084.1kbits/s dup=136 drop=0 speed=0.415x


    



    Is there any modification I can make to the command to encode it in less time ?