Recherche avancée

Médias (1)

Mot : - Tags -/publicité

Autres articles (95)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (7402)

  • how to transfer an audio stream to a video stream ?

    14 janvier 2021, par 12345xw

    enter image description here

    


    PS C:\Users\RI\Desktop\Movie> ffprobe mov002.mpg 
Input #0, mpeg, from 'mov002.mpg':
  Duration: 00:00:00.26, start: 31.949778, bitrate: 2258447 kb/s
    Stream #0:0[0x1e0]: Audio: mp3, 0 channels, fltp
    Stream #0:1[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16p, 192 kb/s


    


    Stream #0:0 should be a video stream, but it is parsed as an audio stream

    


    how to transfer the audio stream to a video stream

    


  • avcodec/cbs_h264 : add support for Alternative Transfer Characteristics SEI message

    26 mai 2019, par James Almer
    avcodec/cbs_h264 : add support for Alternative Transfer Characteristics SEI message
    

    Reviewed-by : Mark Thompson <sw@jkqxz.net>
    Signed-off-by : James Almer <jamrial@gmail.com>

    • [DH] libavcodec/cbs_h264.h
    • [DH] libavcodec/cbs_h2645.c
    • [DH] libavcodec/cbs_h264_syntax_template.c
  • 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;