
Recherche avancée
Médias (91)
-
#3 The Safest Place
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#4 Emo Creates
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#2 Typewriter Dance
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#1 The Wires
11 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
ED-ME-5 1-DVD
11 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
Revolution of Open-source and film making towards open film making
6 octobre 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (75)
-
Gestion des droits de création et d’édition des objets
8 février 2011, parPar défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;
-
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
Supporting all media types
13 avril 2011, parUnlike 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 (9810)
-
Error using FFmpeg.wasm for audio files in react : "ffmpeg.FS('readFile', 'output.mp3') error. Check if the path exists"
25 février 2021, par Rayhan MemonI'm currently building a browser-based audio editor and I'm using ffmpeg.wasm (a pure WebAssembly/JavaScript port of FFmpeg) to do it.


I'm using this excellent example, which allows you to uploaded video file and convert it into a gif :


import React, { useState, useEffect } from 'react';
import './App.css';

import { createFFmpeg, fetchFile } from '@ffmpeg/ffmpeg';
const ffmpeg = createFFmpeg({ log: true });

function App() {
 const [ready, setReady] = useState(false);
 const [video, setVideo] = useState();
 const [gif, setGif] = useState();

 const load = async () => {
 await ffmpeg.load();
 setReady(true);
 }

 useEffect(() => {
 load();
 }, [])

 const convertToGif = async () => {
 // Write the file to memory 
 ffmpeg.FS('writeFile', 'test.mp4', await fetchFile(video));

 // Run the FFMpeg command
 await ffmpeg.run('-i', 'test.mp4', '-t', '2.5', '-ss', '2.0', '-f', 'gif', 'out.gif');

 // Read the result
 const data = ffmpeg.FS('readFile', 'out.gif');

 // Create a URL
 const url = URL.createObjectURL(new Blob([data.buffer], { type: 'image/gif' }));
 setGif(url)
 }

 return ready ? (
 
 <div classname="App">
 { video && 

 }


 <input type="file" />> setVideo(e.target.files?.item(0))} />

 <h3>Result</h3>

 <button>Convert</button>

 { gif && <img src="http://stackoverflow.com/feeds/tag/{gif}" width="250" style='max-width: 300px; max-height: 300px' />}

 </div>
 )
 :
 (
 <p>Loading...</p>
 );
}

export default App;



I've modified the above code to take an mp3 file recorded in the browser (recorded using the npm package 'mic-recorder-to-mp3' and passed to this component as a blobURL in the global state) and do something to it using ffmpeg.wasm :


import React, { useContext, useState, useEffect } from 'react';
import Context from '../../store/Context';
import Toolbar from '../Toolbar/Toolbar';
import AudioTranscript from './AudioTranscript';

import { createFFmpeg, fetchFile } from '@ffmpeg/ffmpeg';

//Create ffmpeg instance and set 'log' to true so we can see everything
//it does in the console
const ffmpeg = createFFmpeg({ log: true });

const AudioEditor = () => {
 //Setup Global State and get most recent recording
 const { globalState } = useContext(Context);
 const { blobURL } = globalState;

 //ready flag for when ffmpeg is loaded
 const [ready, setReady] = useState(false);

 const [outputFileURL, setOutputFileURL] = useState('');

 //Load FFmpeg asynchronously and set ready when it's ready
 const load = async () => {
 await ffmpeg.load();
 setReady(true);
 }

 //Use UseEffect to run the 'load' function on mount
 useEffect(() => {
 load();
 }, []);

 const ffmpegTest = async () => {
 //must first write file to memory as test.mp3
 ffmpeg.FS('writeFile', 'test.mp3', await fetchFile(blobURL));

 //Run the FFmpeg command
 //in this case, trim file size down to 1.5s and save to memory as output.mp3
 ffmpeg.run('-i', 'test.mp3', '-t', '1.5', 'output.mp3');

 //Read the result from memory
 const data = ffmpeg.FS('readFile', 'output.mp3');

 //Create URL so it can be used in the browser
 const url = URL.createObjectURL(new Blob([data.buffer], { type: 'audio/mp3' }));
 setOutputFileURL(url);
 }

 return ready ? ( 
 <div>
 <audiotranscript></audiotranscript>
 <toolbar></toolbar>
 <button>
 Edit
 </button>
 {outputFileURL && 
 
 }
 </div>
 ) : (
 <div>
 Loading...
 </div>
 )
}

export default AudioEditor;



This code returns the following error when I press the edit button to call the ffmpegTest function :



I've experimented, and when I tweak the culprit line of code to :


const data = ffmpeg.FS('readFile', 'test.mp3');



the function runs without error, simply returning the input file. So I assume there must be something wrong with ffmpeg.run() line not storing 'output.mp3' in memory perhaps ? I can't for the life of me figure out what's going on...any help would be appreciated !


-
How to build FFmpeg with Apple Symbols ?
22 septembre 2021, par Meh.MOVED FROM : https://superuser.com/questions/1676856/how-to-build-ffmpeg-with-apple-symbols?noredirect=1#comment2572799_1676856


I'm trying to build
FFmpeg 3.2.4
withOpenSSL >= 2.0.7
(3.0.0) from source so I can use it's binaries to build Dolphin-Emu.

I just do this :
./configure --enable-gnutls
and when I build withmake -j5
(-j5 speeds up the process) thenmake install
. When I use it in compiling Dolphin , I get an error somewhat like this :

Undefined symbols for architecture x86_64:
 "_kCVImageBufferColorPrimaries_ITU_R_709_2", referenced from:
 _vtenc_init in libavcodec.a(videotoolboxenc.o)
 _vtenc_init in libavcodec.a(videotoolboxenc.o)
 "_kVDADecoderConfiguration_SourceFormat", referenced from:
 "_kCVImageBufferTransferFunction_ITU_R_2020", referenced from:
 _ff_vda_create_decoder in libavcodec.a(vda_h264.o)
 _vtenc_init in libavcodec.a(videotoolboxenc.o)
 "_kVDADecoderConfiguration_avcCData", referenced from:
 "_CMBlockBufferCopyDataBytes", referenced from:
 _ff_vda_create_decoder in libavcodec.a(vda_h264.o)
 _vtenc_frame in libavcodec.a(videotoolboxenc.o)
 "_kCVImageBufferYCbCrMatrixKey", referenced from:
 _vtenc_init in libavcodec.a(videotoolboxenc.o)
 _vtenc_send_frame in libavcodec.a(videotoolboxenc.o)
 "_SSLSetCertificate", referenced from:
 _tls_open in libavformat.a(tls_securetransport.o)
 "_CMTimeMake", referenced from:
 _vtenc_send_frame in libavcodec.a(videotoolboxenc.o)
 "_kCVPixelBufferWidthKey", referenced from:
 _vtenc_init in libavcodec.a(videotoolboxenc.o)
 "_VDADecoderCreate", referenced from:
 _ff_vda_create_decoder in libavcodec.a(vda_h264.o)
 "_kVTProfileLevel_H264_High_4_2", referenced from:
 _vtenc_init in libavcodec.a(videotoolboxenc.o)
 "_kCVPixelBufferIOSurfacePropertiesKey", referenced from:
 _ff_vda_create_decoder in libavcodec.a(vda_h264.o)
 "_kVTProfileLevel_H264_Baseline_1_3", referenced from:
 _vtenc_init in libavcodec.a(videotoolboxenc.o)
(example)



These
_kV(blahblahblah)
symbols are provided by Apple... under<coremedia></coremedia>CoreMedia.h>
so my mac should DEFINITELY have this. OpenSSL version is 3.0.0 as there's an error about_SSLSetCertificate
not existing.

Does anyone have any ideas why this is throwing undefined symbols for existing symbols ? (My FFmpeg is compiled by
clang
whenever I use make, and I use gnutls(installed by brew) which should rely on openssl3.0)

Xcode version : 11.3.1 (Only has macos 10.15 SDK)


Linker command to link Dolphin and FFmpeg w/ OpenSSL binaries/libs


/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -O3 -DNDEBUG -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -mmacosx-version-min=10.14.0 -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/usr/local/lib -Wl,-dead_strip,-dead_strip_dylibs CMakeFiles/dolphin-nogui.dir/Platform.cpp.o CMakeFiles/dolphin-nogui.dir/PlatformHeadless.cpp.o CMakeFiles/dolphin-nogui.dir/MainNoGUI.cpp.o -o ../../../Binaries/dolphin-emu-nogui ../Core/libcore.a ../UICommon/libuicommon.a ../../../Externals/cpp-optparse/libcpp-optparse.a ../VideoBackends/Null/libvideonull.a ../VideoBackends/OGL/libvideoogl.a ../VideoBackends/Software/libvideosoftware.a ../VideoBackends/Vulkan/libvideovulkan.a ../VideoCommon/libvideocommon.a ../Core/libcore.a ../VideoBackends/Null/libvideonull.a ../VideoBackends/OGL/libvideoogl.a ../VideoBackends/Software/libvideosoftware.a ../VideoBackends/Vulkan/libvideovulkan.a ../VideoCommon/libvideocommon.a ../AudioCommon/libaudiocommon.a /usr/local/lib/libpulse.dylib ../../../Externals/soundtouch/libSoundTouch.a ../../../Externals/FreeSurround/libFreeSurround.a ../../../Externals/cubeb/libcubeb.a -framework AudioUnit -framework CoreAudio -framework CoreServices ../DiscIO/libdiscio.a /usr/lib/libbz2.dylib ../../../Externals/liblzma/liblzma.a ../../../Externals/zstd/libzstd.a ../InputCommon/libinputcommon.a -framework Carbon -framework ForceFeedback /usr/local/lib/libSDL2.dylib -framework Cocoa ../../../Externals/SFML/libsfml-network.a ../../../Externals/SFML/libsfml-system.a ../../../Externals/LZO/liblzo2.a -framework CoreServices -framework IOBluetooth ../../../Externals/mGBA/mgba/libmgba.a -framework Foundation -lm ../../../Externals/hidapi/libhidapi.a ../../../Externals/glslang/libglslang.a ../../../Externals/xxhash/libxxhash.a ../../../Externals/imgui/libimgui.a /usr/local/lib/libavformat.a /usr/local/lib/libavcodec.a /usr/local/lib/libswscale.a /usr/local/lib/libavutil.a ../Common/libcommon.a ../../../Externals/enet/libenet.a ../../../Externals/mbedtls/library/libmbedtls.a ../../../Externals/mbedtls/library/libmbedx509.a ../../../Externals/mbedtls/library/libmbedcrypto.a /usr/lib/libcurl.dylib /usr/lib/libiconv.dylib ../../../Externals/libpng/libpng.a -framework AppKit ../../../Externals/miniupnpc/libminiupnpc.a ../../../Externals/pugixml/libpugixml.a ../../../Externals/fmt/libfmt.a ../../../Externals/Bochs_disasm/libbdisasm.a ../../../Externals/libusb/libusb.a -framework CoreFoundation -framework IOKit /usr/lib/libobjc.dylib ../../../Externals/minizip/libminizip.a /usr/lib/libz.dylib ../../../Externals/discord-rpc/src/libdiscord-rpc.a -lpthread -framework AppKit 



-
How to resolve FFmpeg undefined symbols error when using libavformat in Dolphin
24 septembre 2021, par Meh.MOVED FROM : https://superuser.com/questions/1676856/how-to-build-ffmpeg-with-apple-symbols?noredirect=1#comment2572799_1676856


I'm trying to build
FFmpeg 3.2.4
withOpenSSL >= 2.0.7
(3.0.0) from source so I can use it's binaries to build Dolphin-Emu.

I just do this :
./configure --enable-gnutls
and when I build withmake -j5
(-j5 speeds up the process) thenmake install
. When I use it in compiling Dolphin , I get an error somewhat like this :

Undefined symbols for architecture x86_64:
 "_kCVImageBufferColorPrimaries_ITU_R_709_2", referenced from:
 _vtenc_init in libavcodec.a(videotoolboxenc.o)
 _vtenc_init in libavcodec.a(videotoolboxenc.o)
 "_kVDADecoderConfiguration_SourceFormat", referenced from:
 "_kCVImageBufferTransferFunction_ITU_R_2020", referenced from:
 _ff_vda_create_decoder in libavcodec.a(vda_h264.o)
 _vtenc_init in libavcodec.a(videotoolboxenc.o)
 "_kVDADecoderConfiguration_avcCData", referenced from:
 "_CMBlockBufferCopyDataBytes", referenced from:
 _ff_vda_create_decoder in libavcodec.a(vda_h264.o)
 _vtenc_frame in libavcodec.a(videotoolboxenc.o)
 "_kCVImageBufferYCbCrMatrixKey", referenced from:
 _vtenc_init in libavcodec.a(videotoolboxenc.o)
 _vtenc_send_frame in libavcodec.a(videotoolboxenc.o)
 "_SSLSetCertificate", referenced from:
 _tls_open in libavformat.a(tls_securetransport.o)
 "_CMTimeMake", referenced from:
 _vtenc_send_frame in libavcodec.a(videotoolboxenc.o)
 "_kCVPixelBufferWidthKey", referenced from:
 _vtenc_init in libavcodec.a(videotoolboxenc.o)
 "_VDADecoderCreate", referenced from:
 _ff_vda_create_decoder in libavcodec.a(vda_h264.o)
 "_kVTProfileLevel_H264_High_4_2", referenced from:
 _vtenc_init in libavcodec.a(videotoolboxenc.o)
 "_kCVPixelBufferIOSurfacePropertiesKey", referenced from:
 _ff_vda_create_decoder in libavcodec.a(vda_h264.o)
 "_kVTProfileLevel_H264_Baseline_1_3", referenced from:
 _vtenc_init in libavcodec.a(videotoolboxenc.o)
(example)



These
_kV(blahblahblah)
symbols are provided by Apple... under<coremedia></coremedia>CoreMedia.h>
so my mac should DEFINITELY have this. OpenSSL version is 3.0.0 as there's an error about_SSLSetCertificate
not existing.

Does anyone have any ideas why this is throwing undefined symbols for existing symbols ? (My FFmpeg is compiled by
clang
whenever I use make, and I use gnutls(installed by brew) which should rely on openssl3.0)

Xcode version : 11.3.1 (Only has macos 10.15 SDK)


Linker command to link Dolphin and FFmpeg w/ OpenSSL binaries/libs


/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -O3 -DNDEBUG -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -mmacosx-version-min=10.14.0 -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/usr/local/lib -Wl,-dead_strip,-dead_strip_dylibs CMakeFiles/dolphin-nogui.dir/Platform.cpp.o CMakeFiles/dolphin-nogui.dir/PlatformHeadless.cpp.o CMakeFiles/dolphin-nogui.dir/MainNoGUI.cpp.o -o ../../../Binaries/dolphin-emu-nogui ../Core/libcore.a ../UICommon/libuicommon.a ../../../Externals/cpp-optparse/libcpp-optparse.a ../VideoBackends/Null/libvideonull.a ../VideoBackends/OGL/libvideoogl.a ../VideoBackends/Software/libvideosoftware.a ../VideoBackends/Vulkan/libvideovulkan.a ../VideoCommon/libvideocommon.a ../Core/libcore.a ../VideoBackends/Null/libvideonull.a ../VideoBackends/OGL/libvideoogl.a ../VideoBackends/Software/libvideosoftware.a ../VideoBackends/Vulkan/libvideovulkan.a ../VideoCommon/libvideocommon.a ../AudioCommon/libaudiocommon.a /usr/local/lib/libpulse.dylib ../../../Externals/soundtouch/libSoundTouch.a ../../../Externals/FreeSurround/libFreeSurround.a ../../../Externals/cubeb/libcubeb.a -framework AudioUnit -framework CoreAudio -framework CoreServices ../DiscIO/libdiscio.a /usr/lib/libbz2.dylib ../../../Externals/liblzma/liblzma.a ../../../Externals/zstd/libzstd.a ../InputCommon/libinputcommon.a -framework Carbon -framework ForceFeedback /usr/local/lib/libSDL2.dylib -framework Cocoa ../../../Externals/SFML/libsfml-network.a ../../../Externals/SFML/libsfml-system.a ../../../Externals/LZO/liblzo2.a -framework CoreServices -framework IOBluetooth ../../../Externals/mGBA/mgba/libmgba.a -framework Foundation -lm ../../../Externals/hidapi/libhidapi.a ../../../Externals/glslang/libglslang.a ../../../Externals/xxhash/libxxhash.a ../../../Externals/imgui/libimgui.a /usr/local/lib/libavformat.a /usr/local/lib/libavcodec.a /usr/local/lib/libswscale.a /usr/local/lib/libavutil.a ../Common/libcommon.a ../../../Externals/enet/libenet.a ../../../Externals/mbedtls/library/libmbedtls.a ../../../Externals/mbedtls/library/libmbedx509.a ../../../Externals/mbedtls/library/libmbedcrypto.a /usr/lib/libcurl.dylib /usr/lib/libiconv.dylib ../../../Externals/libpng/libpng.a -framework AppKit ../../../Externals/miniupnpc/libminiupnpc.a ../../../Externals/pugixml/libpugixml.a ../../../Externals/fmt/libfmt.a ../../../Externals/Bochs_disasm/libbdisasm.a ../../../Externals/libusb/libusb.a -framework CoreFoundation -framework IOKit /usr/lib/libobjc.dylib ../../../Externals/minizip/libminizip.a /usr/lib/libz.dylib ../../../Externals/discord-rpc/src/libdiscord-rpc.a -lpthread -framework AppKit