Recherche avancée

Médias (0)

Mot : - Tags -/médias

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

Autres articles (60)

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

  • lavc/libopenh264 : Drop openh264 runtime version checks

    9 décembre 2023, par Kalev Lember
    lavc/libopenh264 : Drop openh264 runtime version checks
    

    With the way the runtime checks are currently set up, every single
    openh264 release, no matter how minor, is considered an ABI break and
    requires ffmpeg recompilation. This is unnecessarily strict because it
    doesn't allow downstream distributions to ship any openh264 bug fix
    version updates without breaking ffmpeg's openh264 support.

    Years ago, at the time when ffmpeg's openh264 support was merged,
    openh264 releases were done without a versioned soname (the library was
    just libopenh264.so, unversioned). Since then, starting with version
    1.3.0, openh264 has started using versioned sonames and the intent has
    been to bump the soname every time there's a new release with an ABI
    change.

    This patch drops the exact version check and instead adds a minimum
    requirement on 1.3.0 to the configure script.

    Signed-off-by : Kalev Lember <klember@redhat.com>
    Signed-off-by : Martin Storsjö <martin@martin.st>

    • [DH] configure
    • [DH] libavcodec/libopenh264.c
    • [DH] libavcodec/libopenh264.h
    • [DH] libavcodec/libopenh264dec.c
    • [DH] libavcodec/libopenh264enc.c
  • FFMPEG, want to encode 720x480 and automatically scale to 640x480 or 854x480 as necessary depending on the ratio

    2 décembre 2023, par boxylogan

    EDIT : See appended notes at the bottom of the post.

    &#xA;

    Note : all MKVs are sourced from my original Farscape Starburst DVDs, MPEG2.&#xA;I've been slowly re-encoding my old TV shows into a crisper format and I have for some shows, mainly extras (but also full episodes) MKVs that are a mix of 4:3 and 16:9. Usually I open the files up in Mediainfo and find out which ones are 4:3, stick them in one folder to encode in 640x480, then the same with 16:9. It's worked fine for the umpteen amount of times I've had to encode my shows.&#xA;I would like to try to expedite the process with a single FFMPEG command that can automatically detect if the files are 4:3 or 16:9 and encode them properly to 640x480 or 854x480.

    &#xA;

    My main FFMPEG commands have been these two, depending on which aspect ratio I'm using :

    &#xA;

    854x480p

    &#xA;

    `for i in *.mkv; do ffmpeg -i "$i" -c:v libx264 -profile:v main -level:v 4.0 -crf 20 -c:a copy -map 0 -vf scale=854:480,setdar=16/9 encoded/"${i%.mkv}.mkv"; done&#xA;

    &#xA;

    640x480p

    &#xA;

    `for i in *.mkv; do ffmpeg -i "$i" -c:v libx264 -profile:v main -level:v 4.0 -crf 20 -c:a copy -map 0 -vf scale=640:480,setdar=4/3 encoded/"${i%.mkv}.mkv"; done&#xA;

    &#xA;

    These two have worked fine lately since I got away from the extraneous -x264-params nonsense I picked up years ago. Again, I'm trying to streamline. I found this command a day ago and it SEEMED to look PERFECT :

    &#xA;

    `for i in *.mkv; do ffmpeg -i "$i" -c:v libx264 -profile:v main -level:v 4.0 -crf 20 -c:a copy -map 0 -vf scale=w=&#x27;if(gt(dar,854/480),min(854,iw*sar),2*trunc(iw*sar*oh/ih/2))&#x27;:h=&#x27;if(gt(dar,854/480),2*trunc(ih*ow/iw/sar/2),min(480,ih))&#x27; encoded/"${i%.mkv}.mkv"; done&#xA;

    &#xA;

    Looks perfect and works great for 640x480. The only problem is that it returns 852x480, every time. I even tried a modification I found where you set the setsar=1 AFTER the scale filter, and it does nothing.

    &#xA;

    These are the first warnings I get when I try to run the command, with a 16:9 video, but it still completes :

    &#xA;

    `[Parsed_scale_0 @ 0x56299c22fcc0] Circular references detected for width &#x27;if(gt(dar, 854/480), min(854,iw*sar), 2*trunc(iw*sar*oh/ih/2))&#x27; and height &#x27;if(gt(dar, 854/480), 2*trunc(ih*ow/iw/sar/2), min(480,ih))&#x27; - possibly invalid.&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (mpeg2video (native) -> h264 (libx264))&#xA;  Stream #0:1 -> #0:1 (copy)&#xA;Press [q] to stop, [?] for help&#xA;[Parsed_scale_0 @ 0x56299c20e5c0] Circular references detected for width &#x27;if(gt(dar, 854/480), min(854,iw*sar), 2*trunc(iw*sar*oh/ih/2))&#x27; and height &#x27;if(gt(dar, 854/480), 2*trunc(ih*ow/iw/sar/2), min(480,ih))&#x27; - possibly invalid.&#xA;

    &#xA;

    It encodes and I can see the resolution it outputs to :

    &#xA;

    `Stream #0:0(eng): Video: h264 (H264 / 0x34363248), yuv420p(tv, top coded first (swapped)), 852x480 [SAR 1:1 DAR 71:40], q=2-31, 29.97 fps, 1k tbn&#xA;

    &#xA;

    The next video is a 4:3 video and gives these warnings, however the video still completes, this time the video encodes properly to 640x480 :your text

    &#xA;

    `[Parsed_scale_0 @ 0x5623084d4140] Circular references detected for width &#x27;if(gt(dar, 854/480), min(854,iw*sar), 2*trunc(iw*sar*oh/ih/2))&#x27; and height &#x27;if(gt(dar, 854/480), 2*trunc(ih*ow/iw/sar/2), min(480,ih))&#x27; - possibly invalid.&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (mpeg2video (native) -> h264 (libx264))&#xA;  Stream #0:1 -> #0:1 (copy)`your text`&#xA;Press [q] to stop, [?] for help&#xA;[Parsed_scale_0 @ 0x5623084d7080] Circular references detected for width &#x27;if(gt(dar, 854/480), min(854,iw*sar), 2*trunc(iw*sar*oh/ih/2))&#x27; and height &#x27;if(gt(dar, 854/480), 2*trunc(ih*ow/iw/sar/2), min(480,ih))&#x27; - possibly invalid.&#xA;

    &#xA;

    The output details :

    &#xA;

    `Stream #0:0(eng): Video: h264 (H264 / 0x34363248), yuv420p(tv, top coded first (swapped)), 640x48 [SAR 1:1 `your text`DAR 4:3], q=2-31, 29.97 fps, 1k tbn&#xA;

    &#xA;

    TL ;DR

    &#xA;

    EDIT : The actual problem is that the command is encoding the 16:9 aspect ratio files to 852x480 instead of 854x480. 854x480 is actually what I would like. 640x480 for the 4:3 is fine. Apologies, for the lack of clarification.

    &#xA;

    Videos encode (from original Farscape Starburst DVDs MPEG2) properly to libx264 640x480 for 4:3 but not to 854x480 for 16:9. 16:9 instead encodes to 852x480, despite what command is telling it to do.

    &#xA;

    Advice ? Thanks in advance ! Anything to make my re-encoding a little bit less tedious. I've been googling for hours and searching, but nothing seems to make it click. Thank you again !

    &#xA;

  • FFMPEG, want to encode 720x480 and automatically scale to 640x480 or 854x480 as necessary depending on the ratio

    2 décembre 2023, par boxylogan

    EDIT : See appended notes at the bottom of the post.

    &#xA;

    Note : all MKVs are sourced from my original Farscape Starburst DVDs, MPEG2.&#xA;I've been slowly re-encoding my old TV shows into a crisper format and I have for some shows, mainly extras (but also full episodes) MKVs that are a mix of 4:3 and 16:9. Usually I open the files up in Mediainfo and find out which ones are 4:3, stick them in one folder to encode in 640x480, then the same with 16:9. It's worked fine for the umpteen amount of times I've had to encode my shows.&#xA;I would like to try to expedite the process with a single FFMPEG command that can automatically detect if the files are 4:3 or 16:9 and encode them properly to 640x480 or 854x480.

    &#xA;

    My main FFMPEG commands have been these two, depending on which aspect ratio I'm using :

    &#xA;

    854x480p

    &#xA;

    `for i in *.mkv; do ffmpeg -i "$i" -c:v libx264 -profile:v main -level:v 4.0 -crf 20 -c:a copy -map 0 -vf scale=854:480,setdar=16/9 encoded/"${i%.mkv}.mkv"; done&#xA;

    &#xA;

    640x480p

    &#xA;

    `for i in *.mkv; do ffmpeg -i "$i" -c:v libx264 -profile:v main -level:v 4.0 -crf 20 -c:a copy -map 0 -vf scale=640:480,setdar=4/3 encoded/"${i%.mkv}.mkv"; done&#xA;

    &#xA;

    These two have worked fine lately since I got away from the extraneous -x264-params nonsense I picked up years ago. Again, I'm trying to streamline. I found this command a day ago and it SEEMED to look PERFECT :

    &#xA;

    `for i in *.mkv; do ffmpeg -i "$i" -c:v libx264 -profile:v main -level:v 4.0 -crf 20 -c:a copy -map 0 -vf scale=w=&#x27;if(gt(dar,854/480),min(854,iw*sar),2*trunc(iw*sar*oh/ih/2))&#x27;:h=&#x27;if(gt(dar,854/480),2*trunc(ih*ow/iw/sar/2),min(480,ih))&#x27; encoded/"${i%.mkv}.mkv"; done&#xA;

    &#xA;

    Looks perfect and works great for 640x480. The only problem is that it returns 852x480, every time. I even tried a modification I found where you set the setsar=1 AFTER the scale filter, and it does nothing.

    &#xA;

    These are the first warnings I get when I try to run the command, with a 16:9 video, but it still completes :

    &#xA;

    `[Parsed_scale_0 @ 0x56299c22fcc0] Circular references detected for width &#x27;if(gt(dar, 854/480), min(854,iw*sar), 2*trunc(iw*sar*oh/ih/2))&#x27; and height &#x27;if(gt(dar, 854/480), 2*trunc(ih*ow/iw/sar/2), min(480,ih))&#x27; - possibly invalid.&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (mpeg2video (native) -> h264 (libx264))&#xA;  Stream #0:1 -> #0:1 (copy)&#xA;Press [q] to stop, [?] for help&#xA;[Parsed_scale_0 @ 0x56299c20e5c0] Circular references detected for width &#x27;if(gt(dar, 854/480), min(854,iw*sar), 2*trunc(iw*sar*oh/ih/2))&#x27; and height &#x27;if(gt(dar, 854/480), 2*trunc(ih*ow/iw/sar/2), min(480,ih))&#x27; - possibly invalid.&#xA;

    &#xA;

    It encodes and I can see the resolution it outputs to :

    &#xA;

    `Stream #0:0(eng): Video: h264 (H264 / 0x34363248), yuv420p(tv, top coded first (swapped)), 852x480 [SAR 1:1 DAR 71:40], q=2-31, 29.97 fps, 1k tbn&#xA;

    &#xA;

    The next video is a 4:3 video and gives these warnings, however the video still completes, this time the video encodes properly to 640x480 :your text

    &#xA;

    `[Parsed_scale_0 @ 0x5623084d4140] Circular references detected for width &#x27;if(gt(dar, 854/480), min(854,iw*sar), 2*trunc(iw*sar*oh/ih/2))&#x27; and height &#x27;if(gt(dar, 854/480), 2*trunc(ih*ow/iw/sar/2), min(480,ih))&#x27; - possibly invalid.&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (mpeg2video (native) -> h264 (libx264))&#xA;  Stream #0:1 -> #0:1 (copy)`your text`&#xA;Press [q] to stop, [?] for help&#xA;[Parsed_scale_0 @ 0x5623084d7080] Circular references detected for width &#x27;if(gt(dar, 854/480), min(854,iw*sar), 2*trunc(iw*sar*oh/ih/2))&#x27; and height &#x27;if(gt(dar, 854/480), 2*trunc(ih*ow/iw/sar/2), min(480,ih))&#x27; - possibly invalid.&#xA;

    &#xA;

    The output details :

    &#xA;

    `Stream #0:0(eng): Video: h264 (H264 / 0x34363248), yuv420p(tv, top coded first (swapped)), 640x48 [SAR 1:1 `your text`DAR 4:3], q=2-31, 29.97 fps, 1k tbn&#xA;

    &#xA;

    TL ;DR

    &#xA;

    EDIT : The actual problem is that the command is encoding the 16:9 aspect ratio files to 852x480 instead of 854x480. 854x480 is actually what I would like. 640x480 for the 4:3 is fine. Apologies, for the lack of clarification.

    &#xA;

    Videos encode (from original Farscape Starburst DVDs MPEG2) properly to libx264 640x480 for 4:3 but not to 854x480 for 16:9. 16:9 instead encodes to 852x480, despite what command is telling it to do.

    &#xA;

    Advice ? Thanks in advance ! Anything to make my re-encoding a little bit less tedious. I've been googling for hours and searching, but nothing seems to make it click. Thank you again !

    &#xA;