Recherche avancée

Médias (91)

Autres articles (67)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

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

  • Python FFMPEG Heroku|Remove audio from video with Byte to Byte. No web processes running Error

    15 mai 2021, par samoel

    I'm trying to get a .mp4 file from an address and remove the sound from it.I also want the data sent to FFMPEG to be bytes and return the result in byte

    


    i tried different command for my code like using -movflags frag_keyframe+empty_moov.
When I run this code in Heroku and receive the log...

    


    def from_bytes_to_byte(input_bytes):
    command = f"ffmpeg -f mp4 -i /dev/stdin -vcodec copy -an -f mp4 -movflags frag_keyframe+empty_moov -"
    convert_cmd = subprocess.Popen(
        shlex.split(command),
        stdin=subprocess.PIPE,
        stdout=subprocess.PIPE,
        shell=False
    )
    b = b''
    convert_cmd.stdin.write(input_bytes)
    convert_cmd.stdin.close()
    while True:
        output = convert_cmd.stdout.read()
        if len(output) > 0:
            b += output
        else:
            error_msg = convert_cmd.poll()
            if error_msg is not None:
                break
    print("----------FINISHED------------")
    return b


result=requests.get("https://file-examples-com.github.io/uploads/2017/04/file_example_MP4_480_1_5MG.mp4") #.MP4 File
byterecieved=from_bytes_to_byte(result.content)


    


    heroku logs :

    


    ffmpeg version N-57204-gc7c138e411-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 8 (Debian 8.3.0-6)
configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg
libavutil      57.  0.100 / 57.  0.100
libavcodec     59.  0.100 / 59.  0.100
libavformat    59.  0.100 / 59.  0.100
libavdevice    59.  0.100 / 59.  0.100
libavfilter     8.  0.101 /  8.  0.101
libswscale      6.  0.100 /  6.  0.100
libswresample   4.  0.100 /  4.  0.100
libpostproc    56.  0.100 / 56.  0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/dev/stdin':
Metadata:
major_brand     : mp42
minor_version   : 0
compatible_brands: mp42mp41isomavc1
creation_time   : 2015-08-07T09:13:02.000000Z
Duration: 00:00:30.53, start: 0.000000, bitrate: N/A
Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 480x270 [SAR 1:1 DAR 16:9], 301 kb/s, 30 fps, 30 tbr, 30 tbn (default)
Metadata:
creation_time   : 2015-08-07T09:13:02.000000Z
handler_name    : L-SMASH Video Handler
vendor_id       : [0][0][0][0]
encoder         : AVC Coding
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 112 kb/s (default)
Metadata:
creation_time   : 2015-08-07T09:13:02.000000Z
handler_name    : L-SMASH Audio Handler
vendor_id       : [0][0][0][0]
Output #0, mp4, to 'pipe:':
Metadata:
major_brand     : mp42
minor_version   : 0
compatible_brands: mp42mp41isomavc1
encoder         : Lavf59.0.100
Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 480x270 [SAR 1:1 DAR 16:9], q=2-31, 301 kb/s, 30 fps, 30 tbr, 15360 tbn (default)
Metadata:
creation_time   : 2015-08-07T09:13:02.000000Z
handler_name    : L-SMASH Video Handler
vendor_id       : [0][0][0][0]
encoder         : AVC Coding
Stream mapping:
**2021-05-14T21:32:09.639203+00:00** app[worker.1]: Stream #0:0 -> #0:0 (copy)
**2021-05-14T22:12:36.527864+00:00** heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=desolate-inlet-50581.herokuapp.com request_id=cc985185-6ba7-4530-95f8-f4512f465039 fwd="5.122.192.170" dyno= connect= service= status=503 bytes= protocol=https
2021-05-14T22:12:37.303089+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" host=desolate-inlet-50581.herokuapp.com request_id=f26b18a5-30ac-41e2-9b63-8f945b746b12 fwd="5.122.192.170" dyno= connect= service= status=503 bytes= protocol=https
2021-05-14T22:13:39.737155+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=desolate-inlet-50581.herokuapp.com request_id=12a28261-d746-4067-ab4b-05d3e2e8c379 fwd="5.122.192.170" dyno= connect= service= status=503 bytes= protocol=https
2021-05-14T22:13:40.372446+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" host=desolate-inlet-50581.herokuapp.com request_id=c2e2ebc8-9fb2-4d30-8876-2fede3dfd141 fwd="5.122.192.170" dyno= connect= service= status=503 bytes= protocol=https


    


  • Process videos on Azure VM

    6 mars 2017, par sebastian.roibu

    I am building an application that will process uploaded video. Each uploaded video will be trimmed into multiple shorter parts and all the cuts will be concatenated to create a highlight of the original file. All the processing is done with ffmpeg.

    I am using Azure File Storage, to upload the videos and be able to access them via Samba layer.
    I also have an Azure VM where I mounted the shared folders.

    What is the best approach on the worker ?

    • Should I build a console app and run it as a windows server inside an azure VM ?

    • Is there another way of doing things ?

    I am looking for a way that can be scaled up in production.

    If there another way of doing everything I described above ?

  • Converting MP3/MP4 to WAV in the Frontend Using ffmpegwasm with Next.js Results in Module Not Found Error

    31 mars 2024, par ryuma

    I'm attempting to use ffmpegwasm in a Next.js project to convert MP3 or MP4 files to WAV format directly in the frontend. However, I encounter a "Module not found" error during the process. I have made sure to use the latest version of Next.js. Below is the error message and the code snippet where the issue occurs. I'm seeking assistance to resolve this problem, as it has become quite troubling.

    


    error

    


    ./node_modules/@ffmpeg/ffmpeg/dist/esm/classes.js:104:27 Module not found
  102 |         if (!this.#worker) {
  103 |             this.#worker = classWorkerURL ?
> 104 |                 new Worker(new URL(classWorkerURL, import.meta.url), {
      |                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  105 |                     type: "module",
  106 |                 }) :
  107 |                 // We need to duplicated the code here to enable webpack


    


    "use client"&#xA;&#xA;import { FFmpeg } from "@ffmpeg/ffmpeg"&#xA;import { fetchFile, toBlobURL } from "@ffmpeg/util"&#xA;import React, { useEffect, useRef, useState } from "react"&#xA;&#xA;export default function TestPage() {&#xA;  const [loaded, setLoaded] = useState(false)&#xA;  const ffmpegRef = useRef(new FFmpeg())&#xA;  const messageRef = useRef(null)&#xA;&#xA;  useEffect(() => {&#xA;    load()&#xA;  }, [])&#xA;&#xA;  const load = async () => {&#xA;    const baseURL = "https://unpkg.com/@ffmpeg/core@0.12.6/dist/umd"&#xA;    const ffmpeg = ffmpegRef.current&#xA;    ffmpeg.on("log", ({ message }) => {&#xA;      if (messageRef.current) messageRef.current.innerHTML = message&#xA;      console.log(message)&#xA;    })&#xA;&#xA;    await ffmpeg.load({&#xA;      coreURL: await toBlobURL(`${baseURL}/ffmpeg-core.js`, "text/javascript"),&#xA;      wasmURL: await toBlobURL(`${baseURL}/ffmpeg-core.wasm`, "application/wasm"),&#xA;    })&#xA;    setLoaded(true)&#xA;  }&#xA;&#xA;  const convertToWav = async ({ target: { files } }) => {&#xA;    const ffmpeg = ffmpegRef.current&#xA;    const file = files[0]&#xA;&#xA;    await ffmpeg.writeFile("input.mp4", await fetchFile(file))&#xA;    await ffmpeg.exec(["-i", "input.mp4", "output.wav"])&#xA;    const data = await ffmpeg.readFile("output.wav")&#xA;&#xA;    const url = URL.createObjectURL(new Blob([data.buffer], { type: "audio/wav" }))&#xA;    const link = document.createElement("a")&#xA;    link.href = url&#xA;    link.setAttribute("download", "output.wav")&#xA;    document.body.appendChild(link)&#xA;    link.click()&#xA;  }&#xA;&#xA;  return (&#xA;    <div>&#xA;      {loaded ? (&#xA;        &lt;>&#xA;          <input type="file" accept="audio/mp3,video/mp4" />&#xA;          <p ref="{messageRef}"></p>&#xA;        >&#xA;      ) : (&#xA;        <button>Load ffmpeg-core</button>&#xA;      )}&#xA;    </div>&#xA;  )&#xA;}&#xA;&#xA;

    &#xA;

    Attempted Solutions :

    &#xA;

    I've ensured that I'm using the latest version of Next.js.&#xA;I've tried various configurations for the ffmpeg instance.

    &#xA;

    Questions :

    &#xA;

    How can I resolve the "Module not found" error when using ffmpegwasm with Next.js ?&#xA;Are there any specific configurations or setups within Next.js that I need to be aware of to successfully use ffmpegwasm ?&#xA;Any guidance or assistance with this issue would be greatly appreciated. Thank you in advance for your help.

    &#xA;