Recherche avancée

Médias (1)

Mot : - Tags -/ogg

Autres articles (52)

  • MediaSPIP Core : La Configuration

    9 novembre 2010, par

    MediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
    Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...)

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

  • Utilisation et configuration du script

    19 janvier 2011, par

    Informations spécifiques à la distribution Debian
    Si vous utilisez cette distribution, vous devrez activer les dépôts "debian-multimedia" comme expliqué ici :
    Depuis la version 0.3.1 du script, le dépôt peut être automatiquement activé à la suite d’une question.
    Récupération du script
    Le script d’installation peut être récupéré de deux manières différentes.
    Via svn en utilisant la commande pour récupérer le code source à jour :
    svn co (...)

Sur d’autres sites (9128)

  • Long video files are shortened when exported [closed]

    28 avril, par Mathilda

    I'm working on videos with a maximal length of 23h59m59s (let's say 24h). I wanted to do several modifications on these videos, including dividing them into smaller parts and converting them into images. I'm doing it with Python in the Anaconda interface.

    


    My 24-hour videos are properly read by the Windows "Films & TV" player. They are also properly read by VLC media player. However, as soon as I try to use them :

    


      

    • in editing software (Movavi) ;
    • 


    • on an online editing site (Video-cutter) ;
    • 


    • on Python (cv2 and moviepy packages) ; or
    • 


    • on ffmpeg
    • 


    


    the indicated video duration is correct only if the video is less than 13h15m22s. If it is longer than that, the indicated duration is equal to the real duration minus 13h15m22s, regardless of the loaded video's metadata (size, weight, fps, duration).

    


    I have tried with videos of different durations, different pixel sizes and weights in GB, and different fps. I had variable fps mode on the videos, so I tried to set them to fixed mode using ffmpeg, but the exported video with fixed fps still has 13h15m22s missing. For videos taken from the web (YouTube), this problem does not appear on any of the 4 tested supports, so there is no problem coming from my machine or software. The issue must be in the videos. But I don't understand what could be in the videos for it to always be 13h15m22s that are removed, regardless of the video size. Moreover, if the video was corrupted, I wouldn't be able to display it in Films & TV or VLC media player.

    


    I used ffmpeg to see if the video was corrupted :

    


    ffmpeg.exe -v error -i "/Users/myname/Desktop/myvideo.mp4" -f null >error.log 2>&1

ffmpeg.exe -v error -i "/Users/myname/Desktop/myvideo.mp4" -f null

ffprobe -show_entries stream=r_frame_rate,nb_read_frames,duration -select_streams v -count_frames -of compact=p=1:nk=1 -threads 3 -v 0


    


    And nothing appears in the output so I guess there's no error detected. I tried to repair my video with ffmpeg anyway :

    


    ffmpeg -i "/Users/myname/Desktop/myvideo.mp4" -c copy "/Users/myname/Desktop/myvideo_fixed.mp4”


    


    And there is still 13h15m22s missing.

    


    I finally tried to repair it with Untrunc, which gave me a completely black video of 55 minutes for a video supposed to last several hours. Untrunc asks for the corrupted file and a functional video file taken by the same camera as input, so I used a 3min26 file for this, assuming that since the file is less than 13h15m22s and does not appear truncated on the software, it is not corrupted. Maybe I should have taken a larger video file (a few hours for example), but I'm not sure it's going to change anything.

    


    I don't know what to do to be able to cut these videos and use them in Python without them being truncated.

    


  • swscale/output : fix bilinear yuv2rgb chroma interpolation

    17 décembre 2024, par Niklas Haas
    swscale/output : fix bilinear yuv2rgb chroma interpolation
    

    These functions were divided into two special cases ; one assuming that
    uvalpha == 0, and the other assuming that uvalpha == 2048. This worked fine
    for simple 2x chroma upscaling but broke for e.g. yuv410p, non-centered chroma,
    or other special cases that involved non-aligned chroma filters.

    Fix it by instead dividing this check into two cases, a uvalpha==0 fast path
    and a uvalpha>0 general path. Instead of (A+B)/2 the general path now multiplies
    in the true uvalpha weight.

    I tried preserving the old fast path for the case of uvalpha == 2048, but this
    was significantly slower in practise versus having just one general path.
    However, we still need a uvalpha == 0 path for the unscaled case.

    Fixes : ticket #5083
    Signed-off-by : Niklas Haas <git@haasn.dev>
    Sponsored-by : Sovereign Tech Fund

    • [DH] libswscale/output.c
  • ffmpeg -f sdl works, ffmpeg -c codec -f sdl doesn't

    3 octobre 2022, par lunadir

    running on windows
    &#xA;anyone knows why this works

    &#xA;

    ffmpeg -re -i "sample_itunes.mp4" -an -f sdl2 -&#xA;

    &#xA;

    and this doesn't

    &#xA;

    ffmpeg -re -i "sample_itunes.mp4" -an -c libx264 -f sdl2 -&#xA;

    &#xA;

    doesn't show any window, output is

    &#xA;

    ffmpeg.exe -re -i "sample_itunes.mp4" -an -c libx264 -r 1 -f sdl2 -&#xA;ffmpeg version n4.4-79-gde1132a891-20210803 Copyright (c) 2000-2021 the FFmpeg developers&#xA;  built with gcc 10-win32 (GCC) 20210408&#xA;  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&#xA;  libavutil      56. 70.100 / 56. 70.100&#xA;  libavcodec     58.134.100 / 58.134.100&#xA;  libavformat    58. 76.100 / 58. 76.100&#xA;  libavdevice    58. 13.100 / 58. 13.100&#xA;  libavfilter     7.110.100 /  7.110.100&#xA;  libswscale      5.  9.100 /  5.  9.100&#xA;  libswresample   3.  9.100 /  3.  9.100&#xA;  libpostproc    55.  9.100 / 55.  9.100&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;sample_itunes.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : mp42&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2avc1mp41&#xA;    creation_time   : 2036-02-06T06:28:16.000000Z&#xA;    encoder         : HandBrake 0.10.2 2015060900&#xA;  Duration: 00:01:25.50, start: 0.000000, bitrate: 245 kb/s&#xA;  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)&#xA;    Metadata:&#xA;      creation_time   : 2036-02-06T06:28:16.000000Z&#xA;      handler_name    : VideoHandler&#xA;      vendor_id       : [0][0][0][0]&#xA;  Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 32000 Hz, mono, fltp, 125 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : 2036-02-06T06:28:16.000000Z&#xA;      handler_name    : Mono&#xA;      vendor_id       : [0][0][0][0]&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))&#xA;Press [q] to stop, [?] for help&#xA;[libx264 @ 0000025cce1ab7c0] using SAR=1/1&#xA;[libx264 @ 0000025cce1ab7c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2&#xA;[libx264 @ 0000025cce1ab7c0] profile High, level 2.2, 4:2:0, 8-bit&#xA;[sdl,sdl2 @ 0000025cce769040] Only supports one rawvideo stream&#xA;Output #0, sdl,sdl2, to &#x27;pipe:&#x27;:&#xA;  Metadata:&#xA;    major_brand     : mp42&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2avc1mp41&#xA;    encoder         : Lavf58.76.100&#xA;  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)&#xA;    Metadata:&#xA;      creation_time   : 2036-02-06T06:28:16.000000Z&#xA;      handler_name    : VideoHandler&#xA;      vendor_id       : [0][0][0][0]&#xA;      encoder         : Lavc58.134.100 libx264&#xA;    Side data:&#xA;      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A&#xA;[libx264 @ 0000025cce1ab7c0] non-strictly-monotonic PTSrate=N/A speed=   0x&#xA;    Last message repeated 3 times&#xA;[libx264 @ 0000025cce1ab7c0] non-strictly-monotonic PTSrate=N/A speed=   0x&#xA;    Last message repeated 3 times&#xA;[libx264 @ 0000025cce1ab7c0] non-strictly-monotonic PTSrate=N/A speed=   0x&#xA;    Last message repeated 4 times&#xA;[libx264 @ 0000025cce1ab7c0] non-strictly-monotonic PTSrate=N/A speed=   0x&#xA;    Last message repeated 3 times&#xA;[libx264 @ 0000025cce1ab7c0] non-strictly-monotonic PTSrate=N/A speed=   0x&#xA;    Last message repeated 4 times&#xA;[libx264 @ 0000025cce1ab7c0] non-strictly-monotonic PTSrate=N/A speed=   0x&#xA;    Last message repeated 3 times&#xA;[libx264 @ 0000025cce1ab7c0] non-strictly-monotonic PTSrate=N/A speed=   0x&#xA;debug=1&#xA;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)&#xA;    Last message repeated 4 times&#xA;[h264 @ 0000025ccc8fd8c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0&#xA;[libx264 @ 0000025cce1ab7c0] non-strictly-monotonic PTS&#xA;[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&#xA;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)&#xA;    Last message repeated 8 times&#xA;...&#xA;frame=   60 fps=8.4 q=25.0 Lsize=N/A time=-00:00:00.10 bitrate=N/A speed=N/A&#xA;video:1kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown&#xA;Input file #0 (sample_itunes.mp4):&#xA;  Input stream #0:0 (video): 74 packets read (22110 bytes); 61 frames decoded;&#xA;  Input stream #0:1 (audio): 1 packets read (18 bytes);&#xA;  Total: 75 packets (22128 bytes) demuxed&#xA;Output file #0 (pipe:):&#xA;  Output stream #0:0 (video): 60 frames encoded; 1 packets muxed (866 bytes);&#xA;  Total: 1 packets (866 bytes) muxed&#xA;61 frames successfully decoded, 0 decoding errors&#xA;[libx264 @ 000001d2952aa600] frame I:1     Avg QP: 7.93  size:   866&#xA;[libx264 @ 000001d2952aa600] frame P:23    Avg QP:13.48  size:   535&#xA;[libx264 @ 000001d2952aa600] frame B:36    Avg QP:10.98  size:    81&#xA;[libx264 @ 000001d2952aa600] consecutive B-frames: 16.7% 10.0%  0.0% 73.3%&#xA;[libx264 @ 000001d2952aa600] mb I  I16..4: 99.7%  0.1%  0.2%&#xA;[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%&#xA;[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%&#xA;[libx264 @ 000001d2952aa600] 8x8 transform intra:21.1% inter:48.3%&#xA;[libx264 @ 000001d2952aa600] coded y,uvDC,uvAC intra: 6.7% 1.9% 0.5% inter: 0.2% 0.1% 0.0%&#xA;[libx264 @ 000001d2952aa600] i16 v,h,dc,p: 57% 41%  2%  0%&#xA;[libx264 @ 000001d2952aa600] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 13% 34% 51%  0%  0%  0%  0%  1%  0%&#xA;[libx264 @ 000001d2952aa600] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 34% 21%  2%  2%  3%  3%  3%  2%&#xA;[libx264 @ 000001d2952aa600] i8c dc,h,v,p: 84% 15%  2%  0%&#xA;[libx264 @ 000001d2952aa600] Weighted P-Frames: Y:0.0% UV:0.0%&#xA;[libx264 @ 000001d2952aa600] ref P L0: 84.5%  3.6%  6.3%  5.5%&#xA;[libx264 @ 000001d2952aa600] ref B L0: 78.0% 21.2%  0.9%&#xA;[libx264 @ 000001d2952aa600] ref B L1: 96.8%  3.2%&#xA;[libx264 @ 000001d2952aa600] kb/s:21.46&#xA;[AVIOContext @ 000001d29529e780] Statistics: 232272 bytes read, 2 seeks&#xA;Conversion failed!&#xA;

    &#xA;