Recherche avancée

Médias (1)

Mot : - Tags -/belgique

Autres articles (28)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (3809)

  • FFMPEG not working as intended in a bash script

    9 mai 2024, par rcp

    I'm trying to get the mean volume of a recording and the echo the expected value. When I do it line by line, everything works fine, but as soon as I execute it in a bash script, I have a problem with the FFMPEG line. I identified the problem, which is that &> analysis is not doing anything for some reason and instead of saving the output in a file it prints it in the shell.

    


    I don't know how to fix it since it works fine when not in a script.

    


    #!/bin/bash

# Record sound
sh aud2.sh

# Run ff.sh in the background to analyze volume and save results
ffmpeg -i test.wav -af "volumedetect" -vn -sn -dn -f null - &> analysis.vol

# Extract mean_volume and save to mean.vol
grep "mean_volume" analysis.vol > mean.vol

# Extract numerical value and save to val.vol
sed -n 's/^.*mean_volume: \([-0-9.]*\) dB.*/\1/p' < mean.vol > val.vol

# Read the value from val.vol into the variable volume
volume=$(code>

    


    Expected output when line by line

    


    Actual output in bash script

    


    I expected the shell output to be saved in a file.

    


  • fate : Add test for mss1 codec

    18 avril 2016, par Petru Rares Sincraian
    fate : Add test for mss1 codec
    

    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] tests/fate/microsoft.mak
    • [DH] tests/ref/fate/mss1-pal
  • powershell output to .txt file wont print the for loop

    15 avril 2020, par ilham zacky

    I have some audio, video & jpg files.&#xA;I am using ffmpeg to get all the duration

    &#xA;&#xA;

    all thing works perfect, I have got all durations from a for loop and set it to a variable, when I echo it, it works perfectly, but when I output it to a .txt file it prints only the last loop&#xA;any suggestion &#xA;below is my code

    &#xA;&#xA;

    $file = "D:\edl\input\aa.xlsx"&#xA;  $sheetName = "Sheet1"&#xA;  #Create an instance of Excel.Application and Open Excel file&#xA;  $objExcel = New-Object -ComObject Excel.Application&#xA;  $workbook = $objExcel.Workbooks.Open($file)&#xA;  $sheet = $workbook.Worksheets.Item($sheetName)&#xA;  $objExcel.Visible=$false&#xA;  #Count max row&#xA;  $rowMax = ($sheet.UsedRange.Rows).count&#xA;  #Declare the starting positions&#xA;  $rowName,$colName = 1,1&#xA;  $rowAge,$colAge = 1,2&#xA;  $rowCity,$colCity = 1,3&#xA;  $rowMessage,$colMessage = 1,9&#xA;  #loop to get values and store it&#xA;  for ($i=0; $i -le $rowMax-1; $i&#x2B;&#x2B;)&#xA;  {&#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;$filename2 = "$id.jpg"&#xA;$filename = "$id.mp4"&#xA;$filename1 = "$id.m4a"&#xA;$duration2 = if ((ffmpeg -i $filename2 2>&amp;1 | Out-String) -match &#x27;Duration:\s&#x2B;([\d:.]&#x2B;)&#x27;) { $matches[1] };&#xA;$duration1 = if ((ffmpeg -i $filename1 2>&amp;1 | Out-String) -match &#x27;Duration:\s&#x2B;([\d:.]&#x2B;)&#x27;) { $matches[1] };&#xA;$duration = if ((ffmpeg -i $filename 2>&amp;1 | Out-String) -match &#x27;Duration:\s&#x2B;([\d:.]&#x2B;)&#x27;) { $matches[1] };&#xA;if($duration2){&#xA;$duration2 = "02:00:11:15"&#xA;$bb = $duration2&#xA;$out = "$i" &#x2B; "  " &#x2B; "AX" &#x2B; "   " &#x2B; "V" &#x2B; "      " &#x2B; "C" &#x2B; "   " &#x2B; "00:00:00:00" &#x2B; " " &#x2B; $bb &#x2B; "   "&#x2B; "* FROM CLIP NAME: " &#x2B; $id&#x2B;".jpg"&#xA;}&#xA;if($duration1){&#xA;&#xA;$out1 = "$i"&#x2B; "  " &#x2B; "AX"  &#x2B; "   " &#x2B; "AA" &#x2B; "     " &#x2B; "C" &#x2B; "   " &#x2B; "00:00:00:00" &#x2B; " " &#x2B; $duration1 &#x2B; "   " &#x2B; "* FROM CLIP NAME: " &#x2B; $id&#x2B;".m4a"&#xA;}&#xA;if(!$duration){&#xA;}else{&#xA;$out2 = "$i" &#x2B; "  " &#x2B; "AX" &#x2B; "   " &#x2B; "AA/V" &#x2B; "   " &#x2B; "C" &#x2B; "   " &#x2B; "00:00:00:00" &#x2B; " " &#x2B; $duration &#x2B; "   "&#x2B; "* FROM CLIP NAME: " &#x2B; $id&#x2B;".mp4"&#xA;}&#xA;&#xA;$gg = $out&#x2B;"`n"&#x2B;"`n"&#x2B;$out1&#x2B;"`n"&#x2B;"`n"&#x2B;$out2&#x2B;"`n"&#xA;echo $gg&#xA;$gg | Out-File -FilePath d:\edl\input\output.txt&#xA;&#xA;  }&#xA;&#xA;  #close excel file&#xA;  $objExcel.quit()&#xA;

    &#xA;&#xA;

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

    &#xA;&#xA;

    0  AX   V      C   00:00:00:00 02:00:11:15   * FROM CLIP NAME: 1aef53e6-92ac-4d28-89f8-4cce28fa0f58.jpg&#xA;&#xA;0  AX   AA     C   00:00:00:00 00:00:03.48   * FROM CLIP NAME: 1aef53e6-92ac-4d28-89f8-4cce28fa0f58.m4a&#xA;&#xA;0  AX   AA/V   C   00:00:00:00 00:00:07.64   * FROM CLIP NAME: 1aef53e6-92ac-4d28-89f8-4cce28fa0f58.mp4&#xA;&#xA;1  AX   V      C   00:00:00:00 02:00:11:15   * FROM CLIP NAME: 9a52a954-ffe9-4420-a701-68988923f81f.jpg&#xA;&#xA;1  AX   AA     C   00:00:00:00 00:00:03.46   * FROM CLIP NAME: 9a52a954-ffe9-4420-a701-68988923f81f.m4a&#xA;&#xA;0  AX   AA/V   C   00:00:00:00 00:00:07.64   * FROM CLIP NAME: 1aef53e6-92ac-4d28-89f8-4cce28fa0f58.mp4&#xA;&#xA;2  AX   V      C   00:00:00:00 02:00:11:15   * FROM CLIP NAME: 20b92847-72eb-455d-98ce-6661ed52951e.jpg&#xA;&#xA;2  AX   AA     C   00:00:00:00 00:00:03.52   * FROM CLIP NAME: 20b92847-72eb-455d-98ce-6661ed52951e.m4a&#xA;&#xA;2  AX   AA/V   C   00:00:00:00 00:00:09.75   * FROM CLIP NAME: 20b92847-72eb-455d-98ce-6661ed52951e.mp4&#xA;&#xA;3  AX   V      C   00:00:00:00 02:00:11:15   * FROM CLIP NAME: 73aa1f8e-1067-4efd-b2bd-6748a088f33a.jpg&#xA;&#xA;3  AX   AA     C   00:00:00:00 00:00:03.21   * FROM CLIP NAME: 73aa1f8e-1067-4efd-b2bd-6748a088f33a.m4a&#xA;&#xA;2  AX   AA/V   C   00:00:00:00 00:00:09.75   * FROM CLIP NAME: 20b92847-72eb-455d-98ce-6661ed52951e.mp4&#xA;&#xA;4  AX   V      C   00:00:00:00 02:00:11:15   * FROM CLIP NAME: 1877c551-ceef-48e9-a1a5-00629a9964eb.jpg&#xA;&#xA;4  AX   AA     C   00:00:00:00 00:00:03.05   * FROM CLIP NAME: 1877c551-ceef-48e9-a1a5-00629a9964eb.m4a&#xA;&#xA;4  AX   AA/V   C   00:00:00:00 00:00:06.93   * FROM CLIP NAME: 1877c551-ceef-48e9-a1a5-00629a9964eb.mp4&#xA;

    &#xA;&#xA;

    but my txt file output

    &#xA;&#xA;

    4  AX   V      C   00:00:00:00 02:00:11:15   * FROM CLIP NAME: 1877c551-ceef-48e9-a1a5-00629a9964eb.jpg&#xA;&#xA;4  AX   AA     C   00:00:00:00 00:00:03.05   * FROM CLIP NAME: 1877c551-ceef-48e9-a1a5-00629a9964eb.m4a&#xA;&#xA;4  AX   AA/V   C   00:00:00:00 00:00:06.93   * FROM CLIP NAME: 1877c551-ceef-48e9-a1a5-00629a9964eb.mp4&#xA;&#xA;

    &#xA;