Recherche avancée

Médias (0)

Mot : - Tags -/masques

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

Autres articles (29)

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

  • 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

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

Sur d’autres sites (4620)

  • Convert webm to mp4 on with spawn ffmpeg on firebase cloud function returning failed with code 1

    11 novembre 2022, par findev

    In a google cloud function, i'm trying to convert a donwloaded .webm file from cloud storage to .mp4 format with this code

    


    var mp4FilePath = path.join(os.tmpdir(), mediaId+'.mp4')
await spawn('ffmpeg', [
    '-i',
    downloadedFilePath,
    '-c copy',
    mp4FilePath,
]); 


    


    I keep receiving the following error

    


    Error: `ffmpeg -i /var/folders/h2/p35j0p3s4zq9ktyqhdx3qb9h0000gn/T/ghE1HQP1x9m2XLaxEx43_raw.webm -c copy /var/folders/h2/p35j0p3s4zq9ktyqhdx3qb9h0000gn/T/test.mp4` failed with code 1


    


    I'm able to create thumbnails so the source file is downloaded correctly.

    


  • Docker fails to import FFMPEG or does not find it

    8 décembre 2022, par stxss

    So I'm trying to create a telegram bot using python and ffmpeg and I want to deploy it to a server through a docker image.

    


    I already looked through a lot of resources as I've been looking at the same 5 lines of code for the past three days and neither discords, stack overflow previous answers have helped me.

    


    This is my dockerfile where half of the program works (apart from the ffmpeg functionality).

    


    FROM python:3.9

RUN mkdir /app
WORKDIR /app

COPY requirements.txt ./
RUN pip3 install --no-cache-dir --user -r requirements.txt

COPY . .

ENTRYPOINT ["/usr/bin/python3", "./app.py" ]


    


    With this code I get the following error when trying to use a function that invokes ffmpeg functionality.

    


    Traceback (most recent call last):
File "/root/.local/lib/python3.9/site-packages/pyrogram/dispatcher.py", line 240, in handler_worker
await handler.callback(self.client, *args)
File "/app/./app.py", line 274, in choice_from_inline
await helpers.trim_file(trim_length, "audio", chat_id_for_join.strip())
File "/app/helpers.py", line 53, in trim_file
output = ffmpeg.output(
File "/root/.local/lib/python3.9/site-packages/ffmpeg/_run.py", line 313, in run
process = run_async(
File "/root/.local/lib/python3.9/site-packages/ffmpeg/_run.py", line 284, in run_async
return subprocess.Popen(
File "/usr/lib/python3.9/subprocess.py", line 951, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.9/subprocess.py", line 1823, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'ffmpeg'


    


    Another issue is that when changing the ENTRYPOINT (or using CMD) to ["python3", "./app.py" ] everything works well locally but as soon as I try to deploy, the deployment/docker container just doesn't work or crash because I get the error of ModuleNotFoundError: No module named 'ffmpeg'.

    


    I have already tried setting up different ENV PATH and ENV PYTHONPATH, does absolutely nothing.
I have tried to use COPY --from=jrottenberg/ffmpeg /usr/local ./ and it also doesn't work.
I have tried to explicitly use RUN apt-get install -y ffmpeg and similar commands, pip, pip3, etc.. it just doesn't work.

    


    I tried to use the copy command to access the /root/.local/lib/python3.9/site-packages/ffmpeg/_run.py but I either get a permission denied or a file does not exist error.

    


    I am also using the ffmpeg-python wrapper and am using a windows machine if that's of any importance.

    


    At this point I'm contemplating of finding another way of implementing the functionality I want without using ffmpeg.

    


    I think I added everything I had, if needed more I can provide.

    


  • ffmpeg cannot find stream but stream does exist

    10 avril 2023, par rayen saidani

    ima using ffmpeg to add text to the video the problem is this command works some times and some times it just dont feel like working

    


    this the error that iam getting
Cannot find a matching stream for unlabeled input pad 0 on filter Parsed_subtitles_0

    


    this the command iam trying to run to add text to the video the srt file is always there when i run the commmand i tryed to run :
ffmpeg -i  ./vid/${id}.3.mp4   -lavfi "subtitles=${id}.srt:force_style='Alignment=0,OutlineColor=&H100000000,BorderStyle=3,Outline=1,Shadow=0,Fontsize=18,MarginL=100,Marginv=100'"  -c:1 copy ./ready/${id}.4.mp4

    


    this the function :

    


    const addtext=async(id)=>{
  
  return new Promise(async(resolve,reject)=>{
    const command1 =await `ffmpeg -i  ./vid/${id}.3.mp4   -lavfi "subtitles=${id}.srt:force_style='Alignment=0,OutlineColor=&H100000000,BorderStyle=3,Outline=1,Shadow=0,Fontsize=18,MarginL=100,Marginv=100'"  -c:1 copy ./ready/${id}.4.mp4 `;
    await exec(command1, (error, stdout, stderr) => {
    if (error) {
        reject(`stderr: ${error.message}`)
    }
    resolve(id)
  })
 })  
}


    


    this the error that iam getting
Cannot find a matching stream for unlabeled input pad 0 on filter Parsed_subtitles_0

    


    this the command iam trying to run to add text to the video the srt file is always there when i run the commmand i tryed to run :
ffmpeg -i  ./vid/${id}.3.mp4   -lavfi "subtitles=${id}.srt:force_style='Alignment=0,OutlineColor=&H100000000,BorderStyle=3,Outline=1,Shadow=0,Fontsize=18,MarginL=100,Marginv=100'"  -c:1 copy ./ready/${id}.4.mp4