Recherche avancée

Médias (2)

Mot : - Tags -/doc2img

Autres articles (111)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, 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 (...)

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

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

Sur d’autres sites (7884)

  • ffmpeg -f sdl works, ffmpeg -c codec -f sdl doesn't

    3 octobre 2022, par lunadir

    running on windows
    
anyone knows why this works

    


    ffmpeg -re -i "sample_itunes.mp4" -an -f sdl2 -


    


    and this doesn't

    


    ffmpeg -re -i "sample_itunes.mp4" -an -c libx264 -f sdl2 -


    


    doesn't show any window, output is

    


    ffmpeg.exe -re -i "sample_itunes.mp4" -an -c libx264 -r 1 -f sdl2 -
ffmpeg version n4.4-79-gde1132a891-20210803 Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 10-win32 (GCC) 20210408
  configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32 --enable-gpl --enable-version3 --disable-debug --disable-w32threads --enable-pthreads --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl --enable-libvmaf --enable-vulkan --disable-libxcb --disable-xlib --enable-amf --enable-libaom --enable-avisynth --enable-libdav1d --enable-libdavs2 --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-libglslang --enable-libgme --enable-libass --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librav1e --enable-librubberband --enable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --disable-libdrm --disable-vaapi --enable-libvidstab --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-ldexeflags= --extra-libs=-lgomp --extra-version=20210803
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'sample_itunes.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    creation_time   : 2036-02-06T06:28:16.000000Z
    encoder         : HandBrake 0.10.2 2015060900
  Duration: 00:01:25.50, start: 0.000000, bitrate: 245 kb/s
  Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, smpte170m/smpte170m/bt709), 640x480 [SAR 1:1 DAR 4:3], 116 kb/s, 10 fps, 10 tbr, 90k tbn, 180k tbc (default)
    Metadata:
      creation_time   : 2036-02-06T06:28:16.000000Z
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]
  Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 32000 Hz, mono, fltp, 125 kb/s (default)
    Metadata:
      creation_time   : 2036-02-06T06:28:16.000000Z
      handler_name    : Mono
      vendor_id       : [0][0][0][0]
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[libx264 @ 0000025cce1ab7c0] using SAR=1/1
[libx264 @ 0000025cce1ab7c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0000025cce1ab7c0] profile High, level 2.2, 4:2:0, 8-bit
[sdl,sdl2 @ 0000025cce769040] Only supports one rawvideo stream
Output #0, sdl,sdl2, to 'pipe:':
  Metadata:
    major_brand     : mp42
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.76.100
  Stream #0:0(und): Video: h264, yuv420p(tv, smpte170m/smpte170m/bt709, progressive), 640x480 [SAR 1:1 DAR 4:3], q=2-31, 1 fps, 1 tbn (default)
    Metadata:
      creation_time   : 2036-02-06T06:28:16.000000Z
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]
      encoder         : Lavc58.134.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
[libx264 @ 0000025cce1ab7c0] non-strictly-monotonic PTSrate=N/A speed=   0x
    Last message repeated 3 times
[libx264 @ 0000025cce1ab7c0] non-strictly-monotonic PTSrate=N/A speed=   0x
    Last message repeated 3 times
[libx264 @ 0000025cce1ab7c0] non-strictly-monotonic PTSrate=N/A speed=   0x
    Last message repeated 4 times
[libx264 @ 0000025cce1ab7c0] non-strictly-monotonic PTSrate=N/A speed=   0x
    Last message repeated 3 times
[libx264 @ 0000025cce1ab7c0] non-strictly-monotonic PTSrate=N/A speed=   0x
    Last message repeated 4 times
[libx264 @ 0000025cce1ab7c0] non-strictly-monotonic PTSrate=N/A speed=   0x
    Last message repeated 3 times
[libx264 @ 0000025cce1ab7c0] non-strictly-monotonic PTSrate=N/A speed=   0x
debug=1
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
    Last message repeated 4 times
[h264 @ 0000025ccc8fd8c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[libx264 @ 0000025cce1ab7c0] non-strictly-monotonic PTS
[h264 @ 0000025ccc8fd8c0] slice:1 F mb:0 B fix frame:15 poc:65622/65622 ref:1/1 qp:7 loop:1:0:0 weight:0 SPAT
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
    Last message repeated 8 times
...
frame=   60 fps=8.4 q=25.0 Lsize=N/A time=-00:00:00.10 bitrate=N/A speed=N/A
video:1kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Input file #0 (sample_itunes.mp4):
  Input stream #0:0 (video): 74 packets read (22110 bytes); 61 frames decoded;
  Input stream #0:1 (audio): 1 packets read (18 bytes);
  Total: 75 packets (22128 bytes) demuxed
Output file #0 (pipe:):
  Output stream #0:0 (video): 60 frames encoded; 1 packets muxed (866 bytes);
  Total: 1 packets (866 bytes) muxed
61 frames successfully decoded, 0 decoding errors
[libx264 @ 000001d2952aa600] frame I:1     Avg QP: 7.93  size:   866
[libx264 @ 000001d2952aa600] frame P:23    Avg QP:13.48  size:   535
[libx264 @ 000001d2952aa600] frame B:36    Avg QP:10.98  size:    81
[libx264 @ 000001d2952aa600] consecutive B-frames: 16.7% 10.0%  0.0% 73.3%
[libx264 @ 000001d2952aa600] mb I  I16..4: 99.7%  0.1%  0.2%
[libx264 @ 000001d2952aa600] mb P  I16..4:  6.2%  3.1%  0.8%  P16..4:  1.4%  0.4%  0.2%  0.0%  0.0%    skip:88.1%
[libx264 @ 000001d2952aa600] mb B  I16..4:  0.2%  0.0%  0.0%  B16..8:  2.2%  0.2%  0.0%  direct: 0.1%  skip:97.2%  L0:35.9% L1:61.8% BI: 2.3%
[libx264 @ 000001d2952aa600] 8x8 transform intra:21.1% inter:48.3%
[libx264 @ 000001d2952aa600] coded y,uvDC,uvAC intra: 6.7% 1.9% 0.5% inter: 0.2% 0.1% 0.0%
[libx264 @ 000001d2952aa600] i16 v,h,dc,p: 57% 41%  2%  0%
[libx264 @ 000001d2952aa600] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 13% 34% 51%  0%  0%  0%  0%  1%  0%
[libx264 @ 000001d2952aa600] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 34% 21%  2%  2%  3%  3%  3%  2%
[libx264 @ 000001d2952aa600] i8c dc,h,v,p: 84% 15%  2%  0%
[libx264 @ 000001d2952aa600] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 000001d2952aa600] ref P L0: 84.5%  3.6%  6.3%  5.5%
[libx264 @ 000001d2952aa600] ref B L0: 78.0% 21.2%  0.9%
[libx264 @ 000001d2952aa600] ref B L1: 96.8%  3.2%
[libx264 @ 000001d2952aa600] kb/s:21.46
[AVIOContext @ 000001d29529e780] Statistics: 232272 bytes read, 2 seeks
Conversion failed!


    


  • av::av_encode_video produces blurred video from crisp files

    9 janvier 2023, par Abdirizak

    I am using the av::av_encode_video() function to produce a .mp4 video from png files, as in this answer. I pay special attention for the png files to be perfectly crisp, i.e. I plot matrices to png with exactly the same dimensions, so that every matrix cell maps to one cell in the png. Here is code to illustrate what I mean :

    


    library(av)

n.times <- 24*10
n.row <- 50
n.col <- 26

out.dir <- "/Users/Abdirizak/Documents/some/directory/"

for (i in 1:n.times) {
   
   current.mat <- matrix(data = rnorm(n.row*n.col), nrow = n.row, ncol = n.col)
   
   setwd(out.dir)
   png(filename = paste0(i, ".png"), width = n.row, height = n.col)
   
   par(mar = rep(0,4))
   image(current.mat)
   
   dev.off()
   
}

setwd(out.dir)
png.files <- paste0(out.dir, list.files(pattern = ".png$"))

av::av_encode_video(input = png.files, output = "000.mp4", framerate = 24)


    


    Now, even though my input .png files are perfectly crisp, the output .mp4 video is blurry. How can I prevent that from happening ? I.e. how can I get a perfectly crisp video ? (I am aware that this will likely inflate the file size of the .mp4 file)

    


    I already digged a bit into the vfilter argument of av_encode_video() and the underlying ffmpeg filter graphs on here, but could not yet really get the hang on it.

    


    I am looking at the .mp4 file through QuickTime Player on MacOS Ventura 13.0.1, and using R version 4.2.2 through RStudio 2022.12.0.353

    


    Edit 9.1.2023 :

    


    To further clarify, here is an example screenshot of a png image (not the original png file because that one appears too small here) :

    


    enter image description here

    


    As I said, a perfectly crisp image.

    


    On the other hand, a screenshot of the .mp4 movie looks like this :

    


    enter image description here

    


    Somewhat unsatisfactory. Any suggestions are welcome.

    


  • Issues with adding the current timestamp of a video when using FFPLAY

    28 janvier 2023, par lalelarsen1

    Hi i am trying to add to display the current time of the video as an overlay. i have tried to do follow the answer of this previous post : https://superuser.com/questions/968685/how-to-display-current-time-with-the-ffplay-exe but with no luck.

    


    This is my line of code :

    


    "./ffmpeg-2023-01-25-git-2c3107c3e9-full_build/bin/ffplay.exe" -vf "drawtext=fontfile=./consola.ttf:text='%{pts:hms}':fontsize=48:fontcolor=white:box=1:boxborderw=6:boxcolor=black@0.75:x=(w-text_w)/2:y=h-text_h-20" -i "%shadowplays_folder%\%NEWEST_FOLDER%\%NEWEST_FILE%" -autoexit -x "1000" -alwaysontop


    


    This will display the text "hms}" not the time.

    


    the above code works fine if i replace it with a simple string :

    


    "./ffmpeg-2023-01-25-git-2c3107c3e9-full_build/bin/ffplay.exe" -vf "drawtext=fontfile=./consola.ttf:text='test':fontsize=48:fontcolor=white:box=1:boxborderw=6:boxcolor=black@0.75:x=(w-text_w)/2:y=h-text_h-20" -i "%shadowplays_folder%\%NEWEST_FOLDER%\%NEWEST_FILE%" -autoexit -x "1000" -alwaysontop


    


    This will display the text "test"

    


    what am i missing ?