Recherche avancée

Médias (1)

Mot : - Tags -/publicité

Autres articles (54)

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

  • Menus personnalisés

    14 novembre 2010, par

    MediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
    Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
    Menus créés à l’initialisation du site
    Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)

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

Sur d’autres sites (5860)

  • Merge commit ’2b5b1e1e9b89063d352e2efed014f9d761b85032’

    21 mars 2017, par Clément Bœsch
    Merge commit ’2b5b1e1e9b89063d352e2efed014f9d761b85032’
    

    * commit ’2b5b1e1e9b89063d352e2efed014f9d761b85032’ :
    swscale : Rename is9_OR_10 to match what it does

    This commit is a noop. We use isNBPS() in these places instead since
    d736b52a04. is9_15BPS() wouldn’t be a good name in our codebase due to
    supporting only up to 14 (see 2ea585b8e3).

    Merged-by : Clément Bœsch <u@pkh.me>

  • How to count variable in for loop in power shell

    17 avril 2020, par ilham zacky

    I am using powershell and i have got a for loop running each time 3 variables get printed, for now, loop runs 5 times. I need to get the count like $i++

    &#xA;&#xA;

    This is a part of my code

    &#xA;&#xA;

    $file = "D:\edl\input\CPExport.xlsx"&#xA;$sheetName = "Sheet1"&#xA;$objExcel = New-Object -ComObject Excel.Application&#xA;$workbook = $objExcel.Workbooks.Open($file)&#xA;$sheet = $workbook.Worksheets.Item($sheetName)&#xA;$objExcel.Visible = $false&#xA;$rowMax = ($sheet.UsedRange.Rows).count&#xA;$nu = 0&#xA;$rowcount = 000 &#xA;&#xA;for ($i = 0; $i -le $rowMax - 1; $i&#x2B;&#x2B;) {&#xA;    $id = $sheet.Cells.Item($rowName &#x2B; $i, $colName).text&#xA;    $name = $sheet.Cells.Item($rowAge &#x2B; $i, $colAge).text&#xA;    $subtitle = $sheet.Cells.Item($rowCity &#x2B; $i, $colCity).text&#xA;    $jpgId = "$id.jpg"&#xA;    $videoId = "$id.mp4"&#xA;    $audioId = "$id.m4a"&#xA;    $duration1 = if ((ffmpeg -i $audioId 2>&amp;1 | Out-String) -match &#x27;Duration:\s&#x2B;([\d:"."]&#x2B;)&#x27;) { $matches[1] };&#xA;    $duration2 = if ((ffmpeg -i $jpgId 2>&amp;1 | Out-String) -match &#x27;Duration:\s&#x2B;([\d:"."]&#x2B;)&#x27;) { $matches[1] };&#xA;    $duration = if ((ffmpeg -i $videoId 2>&amp;1 | Out-String) -match &#x27;Duration:\s&#x2B;([\d:"."]&#x2B;)&#x27;) { $matches[1] };&#xA;&#xA;    $newduration = ("$duration").Replace(".", ":")&#xA;    $newduration1 = ("$duration1").Replace(".", ":")&#xA;    $newduration2 = ("$duration2").Replace(".", ":")&#xA;&#xA;    $out1 = ""&#xA;    $out2 = ""&#xA;    $out = ""&#xA;    $nu&#x2B;&#x2B;&#xA;    $rowcount&#x2B;&#x2B;&#xA;    if ($newduration1) {&#xA;&#xA;        if ($nu -eq 1) {&#xA;            $audioA = "00:00:00:00"&#xA;        }&#xA;&#xA;        $audioB = Add-Frame -Base $newduration1 -Offset $audioA&#xA;        $out1 = "$rowcount" &#x2B; "  " &#x2B; "AX" &#x2B; "   " &#x2B; "AA" &#x2B; "     " &#x2B; "C" &#x2B; "   " &#x2B; "00:00:00:00" &#x2B; " " &#x2B; $newduration1 &#x2B; "   " &#x2B; $audioA &#xA;    }&#xA;&#xA;    if ($newduration2) {&#xA;&#xA;        $imagecal = Add-Frame -Base $imageA -Offset "00:00:06:00"&#xA;        $imageB = $imagecal&#xA;        $out = "$rowcount" &#x2B; "  " &#x2B; "AX" &#x2B; "   " &#x2B; "V" &#x2B; "      " &#x2B; "C" &#x2B; "   " &#x2B; "02:00:05:15" &#x2B; " " &#x2B; $newduration2 &#x2B; "   " &#x2B; " " &#x2B; $imageA &#xA;    }&#xA;&#xA;&#xA;    if ($newduration) {&#xA;&#xA;        $videoA = $imageB&#xA;        $videocal = Add-Frame -Base $newduration -Offset $videoA&#xA;        $videoB = $videocal&#xA;        $out2 = "$rowcount" &#x2B; "  " &#x2B; "AX" &#x2B; "   " &#x2B; "AA/V" &#x2B; "   " &#x2B; "C" &#x2B; "   " &#x2B; "00:00:00:00" &#x2B; " " &#x2B; $hh &#x2B; "   " &#x2B; " " &#x2B; $videoA &#xA;    }&#xA;    else {&#xA;        $videoB = ""&#xA;    }&#xA;    $gg = $out1 &#x2B; "`n" &#x2B; "`n" &#x2B; $out &#x2B; "`n" &#x2B; "`n" &#x2B; $out2 &#x2B; "`n"&#xA;    echo $gg&#xA;&#xA;    $gg | Out-File -FilePath d:\edl\input\output.txt -Append&#xA;}&#xA;#close excel file&#xA;$objExcel.quit()&#xA;

    &#xA;&#xA;

    i have echo $gg&#xA;this is the output

    &#xA;&#xA;

    1 AX   AA     C   00:00:00:00 00:00:03:48   &#xA;1  AX   V      C   02:00:05:15 02:00:11:15&#xA;1  AX   AA/V   C   00:00:00:00 00:00:06:93 &#xA;2  AX   AA     C   00:00:00:00 00:00:03:46   &#xA;2  AX   V      C   02:00:05:15 02:00:11:15    &#xA;2  AX   AA     C   00:00:00:00 00:00:03:46  &#xA;3  AX   AA     C   00:00:00:00 00:00:03:52   &#xA;3  AX   V      C   02:00:05:15 02:00:11:15   &#xA;3  AX   AA/V   C   00:00:00:00 00:00:06:93    &#xA;4  AX   AA     C   00:00:00:00 00:00:03:21   &#xA;4  AX   V      C   02:00:05:15 02:00:11:15    &#xA;4  AX   AA     C   00:00:00:00 00:00:03:21   &#xA;5  AX   AA     C   00:00:00:00 00:00:03:05   &#xA;5  AX   V      C   02:00:05:15 02:00:11:15    &#xA;5  AX   AA/V   C   00:00:00:00 00:00:06:93    &#xA;

    &#xA;&#xA;

    Output prints only 1-5 &#xA;I need it to be printed 1 - 15

    &#xA;&#xA;

    any suggestions ?

    &#xA;&#xA;

    thank you for reading

    &#xA;

  • Converting files before merging with FFMPEG

    25 mars 2022, par user1748217

    I'm trying to merge a series of files with the same format (taken from a camera) with another of a different format (an outro).

    &#xA;

    TARGET file ffprobe output :

    &#xA;

       Duration: 00:00:21.60, start: 0.000000, bitrate: 1847 kb/s&#xA;&#xA;   Stream #0:0[0x1](eng): &#xA;   Video: h264 (Main) (avc1 / 0x31637661), &#xA;          yuv420p(progressive), &#xA;          1280x720, &#xA;          1050 kb/s, &#xA;          30 fps, &#xA;          30 tbr, &#xA;          30k tbn (default)&#xA;&#xA;   Stream #0:1[0x2](eng): &#xA;   Audio: pcm_s16le (sowt / 0x74776F73), &#xA;          32000 Hz, &#xA;          1 channels, &#xA;          s16,  &#xA;          512 kb/s (default)&#xA;

    &#xA;

    OUTRO file ffprobe output :

    &#xA;

       Duration: 00:00:13.03, start: 0.000000, bitrate: 21890 kb/s&#xA;&#xA;   Stream #0:0[0x1](eng): &#xA;   Video: h264 (High) (avc1 / 0x31637661), &#xA;          yuv420p(progressive), &#xA;          1920x1080 [SAR 1:1 DAR 16:9], &#xA;          21492 kb/s, &#xA;          24 fps, &#xA;          24 tbr, &#xA;          24k tbn (default)&#xA;&#xA;   Stream #0:1[0x2](eng): &#xA;   Audio: aac (LC) (mp4a / 0x6134706D), &#xA;          48000 Hz, &#xA;          stereo, &#xA;          fltp, &#xA;          316 kb/s (default)&#xA;

    &#xA;

    ... and I'm trying to convert the outro to match the others using :

    &#xA;

    ffmpeg -i outro.mp4 \ &#xA;       -c:v h264 \&#xA;       -s 1280x720 \&#xA;       -pix_fmt yuv420p \&#xA;       -framerate 30 \ &#xA;       -r 30 \&#xA;       -c:a pcm_s16le \&#xA;       -ac 1 \ &#xA;       -b:a 512k \&#xA;       -ar 32000 \ &#xA;       outro.mov&#xA;

    &#xA;

    After the transcode the outro plays fine.&#xA;but then I merge the files with :

    &#xA;

    ffmpeg -f concat -safe 0 -i videos.txt -c copy merged.mov -y&#xA;

    &#xA;

    In the merged output the outro video is messed up, though the audio on it is ok.
    &#xA;It seems like the outro plays way too fast (milliseconds) but I'm not sure as the original/source outro video fades to black at the end and the "corrupted" merged outro "pauses" on the last frame prior to fading.

    &#xA;

    I noticed the outro has a lower FPS than the other files (24 FPS vs 30 on the others). When I run ffprobe on the outro after the conversion, it reads ...

    &#xA;

     Stream #0:0[0x1](eng): &#xA; Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), &#xA;        1280x720 [SAR 1:1 DAR 16:9], &#xA;        1031 kb/s, &#xA;        24 fps, &#xA;        24 tbr, &#xA;        12288 tbn (default)&#xA;

    &#xA;

    ... so the FPS is still 24 ? How come ? Is this my problem ? What am I missing ? How do I get this to convert so I can join it seamlessly ?

    &#xA;

    Thanks in advance.

    &#xA;

    UPDATE :

    &#xA;

    adding -r 30 (Thanks @Kesh) on the conversion got the FPS to match but but unfortunately it didn't fix the merge issue :-(

    &#xA;

    audio is all good however...

    &#xA;

    ... If I add the "pre-converted" file to the end of the concat list then series of files I'm trying to match play video fine but the "pre-converted" file plays video through in roughly a second.

    &#xA;

    If I add the "pre-converted" file to the start of the list then it plays fine, but the rest play video far too slow.

    &#xA;