Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

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

Autres articles (22)

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

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

  • Selection of projects using MediaSPIP

    2 mai 2011, par

    The examples below are representative elements of MediaSPIP specific uses for specific projects.
    MediaSPIP farm @ Infini
    The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)

Sur d’autres sites (4219)

  • Muxing files with different run times

    16 novembre 2019, par Dhruv Kanojia

    I’ve got a few files I want to mux.
    File 1 : MP4 File with runtime of 23 Minutes 45 Seconds
    File 2 : MP4 File with runtime of 23 Minutes 39 Seconds
    File 3 : Subtitle File
    File 4 : Subtitle File
    File 5 : Subtitle File
    File 6 : Subtitle File
    File 7 : Subtitle File
    File 8 : Subtitle File
    File 9 : Subtitle File

    I’m trying to mux these files. Now, since there’s a runtime difference, I’m getting weird errors like :

    [matroska @ 0x55e029fbd1a0] Only audio, video, and subtitles are supported for Matroska.
    av_interleaved_write_frame(): Invalid argument
    Error writing trailer of /root/my_dls/Output/My Vid/1/en-us/1080p/My Video - 1 [Dual Audio].mkv: Invalid argument

    I can mux files with same run time just fine... but, I’m stuck on this one. Can someone help me out here.

    The command I’m using :

    ffmpeg -i "/root/my_dls/Output/My Vid/1/en-us/1080p/My Video - 1 [enUS].mp4" -i "/root/my_dls/Output/My Vid/1/en-us/1080p/My Video - 1 [jaJP].mp4" -i "/root/my_dls/Output/My Vid/1/en-us/1080p/My Video - 1 [enUS] .ass" -i "/root/my_dls/Output/My Vid/1/en-us/1080p/My Video - 1 [itIT] .ass" -i "/root/my_dls/Output/My Vid/1/en-us/1080p/My Video - 1 [esLA] .ass" -i "/root/my_dls/Output/My Vid/1/en-us/1080p/My Video - 1 [frFR] .ass" -i "/root/my_dls/Output/My Vid/1/en-us/1080p/My Video - 1 [esES] .ass" -i "/root/my_dls/Output/My Vid/1/en-us/1080p/My Video - 1 [deDE] .ass" -i "/root/my_dls/Output/My Vid/1/en-us/1080p/My Video - 1 [ruRU] .ass" -i "/root/my_dls/Output/My Vid/1/en-us/1080p/My Video - 1 [ptBR] .ass" -map 1 -map 2 -map 3 -map 4 -map 5 -map 6 -map 7 -map 8  -map 0:v -map 0:a -map 1:a -c copy -metadata:s:a:0 title="English Audio" -metadata:s:a:1 title="Japanese Audio" -metadata:s:a:0 language=eng -metadata:s:a:1 language=jpn -metadata:s:s:0 title="English (US) Subtitle" -metadata:s:s:1 title="Italian Subtitle" -metadata:s:s:2 title="Spanish (Latin America) Subtitle" -metadata:s:s:3 title="French Subtitle" -metadata:s:s:4 title="Spanish Subtitle" -metadata:s:s:5 title="Deutsch Subtitle" -metadata:s:s:6 title="Russian Subtitle" -metadata:s:s:7 title="Portuguese Subtitle"  "/root/my_dls/Output/My Vid/1/en-us/1080p/My Video - 1 [Dual Audio].mkv"
  • How do I add/install FFmpeg correctly ? All my attempts ended in failure [closed]

    15 février 2024, par lInEuPP

    I was working with a neural network model, the code that causes this error :

    


    from transformers import pipeline

transcriber = pipeline(model="openai/whisper-medium", generate_kwargs={"language": "russian"})transcriber(OUTPUT)


    


    I tried installing ffmpeg via the console using Chocolatey, tried installing from this site https://www.wikihow.com/Install-FFmpeg-on-Windows
Nothing helped. Please tell me the solution

    


    Exception in thread Thread-1 (record_audio):
Traceback (most recent call last):
  File "c:\Users\dd-rs\AppData\Local\Programs\Python\Python312\Lib\site-packages\transformers\pipelines\audio_utils.py", line 34, in ffmpeg_read    
    with subprocess.Popen(ffmpeg_command, stdin=subprocess.PIPE, stdout=subprocess.PIPE) as ffmpeg_process:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "c:\Users\dd-rs\AppData\Local\Programs\Python\Python312\Lib\subprocess.py", line 1026, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "c:\Users\dd-rs\AppData\Local\Programs\Python\Python312\Lib\subprocess.py", line 1538, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [WinError 2] Не удается найти указанный файл


    


    I tried installing ffmpeg via the console using Chocolatey, tried installing from this site https://www.wikihow.com/Install-FFmpeg-on-Windows
Nothing helped.

    


  • Run scripts in other instances and pass variables from the first script to the second

    3 février 2023, par Tyrone Hirt

    I have the following script :

    


    Get-ChildItem -Path $RenderClient -Recurse -Filter "ffmpeg crop.ps1" |
  Where-Object { Test-Path (Join-Path $_.DirectoryName *.mp4) } |
  ForEach-Object {
  try {
  Start-Process -WorkingDirectory $_.DirectoryName powershell.exe "-NoExit -File `"$($_.FullName)`""
  }
  catch {
  Write-Host -NoNewline -ForegroundColor Red "Não foi possivel cortar o arquivo:"; Write-Host -NoNewline -ForegroundColor White " $_.Name "; Write-Host -NoNewline -ForegroundColor White "`nMensagem de erro:"; Write-Host -NoNewline -ForegroundColor Red " $($_.Exception.Message)`n";
   }
  }
 }


    


    This code is a part of my first script, basically it looks for ffmpeg crop.ps1 files that have a .mp4 file in the same folder and runs those scripts.

    


    The issue is that I would like to make the process a little cleaner and more practical, currently when I need to make a change in the ffmpeg crop script I need to open all the folders and change one by one.

    


    To avoid this, I would like to have a single file ffmpeg crop.ps1, and every time a .mp4 file is found in the path specified in the first script, an instance of that single script ffmpeg crop.ps1 is triggered, too I need $_.FullName and $_.Name of each .mp4 file found to be passed to each respective instance so that I can use these values ​​within the ffmpeg crop script.

    


    I've been racking my brain for days trying to get this to work, I'll be very grateful for any help with this.

    


    Edit - in more detail

    


    The $RenderClient folder of my script is C:/Videos inside that folder there are several child folders that follow the logic : 01-01, 01-02,02-01, 02-02...

    


    enter image description here

    


    Currently, inside each child folder there is a script ffmpeg crop.ps1, this script is responsible for cutting a piece of the video that is inside that folder, however it is only activated if there is a .mp4 file to be cut, in the same folder that it, that is, for the script ffmpeg crop.ps1 to be activated in folder 01-01, it is necessary to have the script itself and a .mp4 file.

    


    This script would be triggered

    


    enter image description here

    


    This script would not be triggered

    


    enter image description here

    


    The point is, I would like to make this more practical, so instead of having one ffmpeg crop.ps1 script inside each child folder, I would like to have only one ffmpeg crop.ps1 script, and it would stay in the parent folder.

    


    I would like it to work like this :

    


    enter image description here

    


    For that, I would need to change my code, so that the script recursively searches for .mp4 files inside the parent folder, for each file that is found, it must open an instance of the script ffmpeg crop.ps1 that is in the parent folder and pass the variables $_.Name and $_.FullName of the files found to the respective instance of the open ffmpeg crop.ps1 script, so that each instance will be executed correctly.