Recherche avancée

Médias (1)

Mot : - Tags -/book

Autres articles (27)

  • Soumettre améliorations et plugins supplémentaires

    10 avril 2011

    Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
    Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

Sur d’autres sites (6829)

  • Stop FFMPEG changing extracted frame resolution

    22 septembre 2020, par S_Wheel

    I'm using a bash script to extract frames from a bunch of videos in a folder.

    


    #!/bin/bash&#xA;if [ "$1" == &#x27;&#x27; ] || [ "$2" == &#x27;&#x27; ] || [ "$3" == &#x27;&#x27; ]; then&#xA;    echo "Usage: $0 <input folder="folder" /> <output folder="folder"> <file extension="extension">";&#xA;    exit;&#xA;fi&#xA;for file in "$1"/*."$3"; do&#xA;    destination="$2${file:${#1}:${#file}-${#1}-${#3}-1}";&#xA;    mkdir -p "$destination";&#xA;    ffmpeg -i "$file" -vsync 0 -frame_pts true -r 1000 "$destination/frame_%d.png";&#xA;done&#xA;</file></output>

    &#xA;

    Using the ffmpeg command :

    &#xA;

    ffmpeg -i "$file" -vsync 0 -frame_pts true -r 1000 -s "$destination/frame_%d.png";&#xA;

    &#xA;

    My problem is the extracted frames have a lower resolution (and also a different resolution). The first video goes from 1024x576 to 768x576 in the extracted frames.

    &#xA;

    I can't force the WxH in the command because the videos all have different resolutions. Does anyone know why ffmpeg is changing the resolution and how to stop it ?

    &#xA;

    Thanks

    &#xA;

  • Determine the actual resolution of a video using ffmpeg [closed]

    18 novembre 2020, par Eypros

    I am trying to decode an avi video but but when I pass it through ffmpeg to check the encoding parameters I get this outcome which confused me :

    &#xA;

    $ffmpeg -i video.avi&#xA;...&#xA;Stream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 2501 kb/s, 30 fps, 30 tbr, 15360 tbn, 30 tbc (default)&#xA;

    &#xA;

    I guess yuv420p means something like 746x420 pixel (I made the multiplication myself, so I am not sure it's exactly this one using the ratio of 1920x1080 and 1280x720) but anyway much less than 1280x720 which is 720p. So, what does exactly means those two together ?&#xA;yuv420p vs 1280x720 ?

    &#xA;

    Can someone explain which is the actual resolution of the video ?

    &#xA;

  • ffmpeg is failed to concatanate two different resolution videos [duplicate]

    25 octobre 2020, par Ramesh Jangama

    I am trying to cancatanate two differen resolution videos. I am getting below error which I am getting confused. However same command is working fine if I give same input file twice for concatation.

    &#xA;

    command :

    &#xA;

    ffmpeg -i C:\Users\oem\Downloads\FFMpeg_practice\test4.mp4 -i C:\Users\oem\Downloads\FFMpeg_practice\test_out3.mp4 -y -filter_complex "[0:v] scale=iw/2:ih/2 [v0];[1:v] scale=iw/2:ih/2 [v1];[v0][0:a][v1][1:a] concat=n=2:v=1:a=1 [v][a]" -preset superfast -crf  30  -ab  64k  -map  [v]  -map  [a]  C:\Users\oem\Downloads\FFMpeg_practice\diffmerge.mp4&#xA;

    &#xA;

    error :

    &#xA;

    Stream specifier &#x27;:a&#x27; in filtergraph description [0:v] scale=iw/2:ih/2 [v0];[1:v] scale=iw/2:ih/2 [v1];[v0][0:a][v1][1:a] concat=n=2:v=1:a=1 [v][a] matches no streams.&#xA;

    &#xA;

    output :

    &#xA;

    C:\ffmpeg\bin>ffmpeg -i C:\Users\oem\Downloads\FFMpeg_practice\test4.mp4 -i C:\Users\oem\Downloads\FFMpeg_practice\test_out3.mp4 -y -filter_complex "[0:v] scale=iw/2:ih/2 [v0];[1:v] scale=iw/2:ih/2 [v1];[v0][0:a][v1][1:a] concat=n=2:v=1:a=1 [v][a]" -preset superfast -crf  30  -ab  64k  -map  [v]  -map  [a]  C:\Users\oem\Downloads\FFMpeg_practice\diffmerge.mp4&#xA;ffmpeg version 2020-10-07-git-a086b73e1f-full_build-www.gyan.dev Copyright (c) 2000-2020 the FFmpeg developers&#xA;  built with gcc 10.2.0 (Rev3, Built by MSYS2 project)&#xA;  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-libsnappy --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libglslang --enable-vulkan --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint&#xA;  libavutil      56. 60.100 / 56. 60.100&#xA;  libavcodec     58.109.100 / 58.109.100&#xA;  libavformat    58. 61.100 / 58. 61.100&#xA;  libavdevice    58. 11.102 / 58. 11.102&#xA;  libavfilter     7. 87.100 /  7. 87.100&#xA;  libswscale      5.  8.100 /  5.  8.100&#xA;  libswresample   3.  8.100 /  3.  8.100&#xA;  libpostproc    55.  8.100 / 55.  8.100&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;C:\Users\oem\Downloads\FFMpeg_practice\test4.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2avc1mp41&#xA;    encoder         : Lavf58.61.100&#xA;    location-eng    : &#x2B;51.5831-000.3438/&#xA;    location        : &#x2B;51.5831-000.3438/&#xA;  Duration: 00:00:39.50, start: 0.000000, bitrate: 1439 kb/s&#xA;    Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 540x960, 1304 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)&#xA;    Metadata:&#xA;      handler_name    : VideoHandler&#xA;    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)&#xA;    Metadata:&#xA;      handler_name    : SoundHandler&#xA;Input #1, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;C:\Users\oem\Downloads\FFMpeg_practice\test_out3.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2avc1mp41&#xA;    encoder         : Lavf58.61.100&#xA;    comment         : vid:v09044820000brrhju8biap950rr41k0&#xA;  Duration: 00:00:30.73, start: 0.000000, bitrate: 1287 kb/s&#xA;    Stream #1:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 288x512 [SAR 1:1 DAR 9:16], 281 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)&#xA;    Metadata:&#xA;      handler_name    : VideoHandler&#xA;    Stream #1:1(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 288x512 [SAR 1:1 DAR 9:16], 243 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc&#xA;    Metadata:&#xA;      handler_name    : VideoHandler&#xA;    Stream #1:2(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 576x1024 [SAR 1:1 DAR 9:16], 1018 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc&#xA;    Metadata:&#xA;      handler_name    : VideoHandler&#xA;Stream specifier &#x27;:a&#x27; in filtergraph description [0:v] scale=iw/2:ih/2 [v0];[1:v] scale=iw/2:ih/2 [v1];[v0][0:a][v1][1:a] concat=n=2:v=1:a=1 [v][a] matches no streams.&#xA;

    &#xA;