Recherche avancée

Médias (91)

Autres articles (54)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

  • 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

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

Sur d’autres sites (3792)

  • The Mystery of the No such file or directory exception

    22 avril 2022, par JohnWick

    No idea what's going on here. Set a breakpoint after the for of loop in the following function. temp/concat.txt exists but the following exception is thrown :

    


    


    Uncaught Error Error : ffmpeg exited with code 1 : temp/concat.txt : No
such file or directory

    


    


    Outputting stderr gives a bit more info :

    


    


    [concat @ 000001e2e30124c0] Impossible to open
'temp/concat.txt#voiceover #funny #fall #lol.mp4' index.js:19
temp/concat.txt : No such file or directory

    


    


    And here is the contents of concat.txt, standard ffmpeg concat demuxer format :

    


    file '#voiceover #funny #fall #lol.mp4'
file 'part 2 repost 🙄 #fyp #funny @jordond262 @princemoonjq add my snap heroicdw333.mp4'
file 'This is my hair wet wet WOAHHH #GrowUpWithMe #fyp #foryoupage #love #funny #puppy #goldenretriever #cute #dog #wetwet.mp4'
file 'POV calling your friends when your 90#FootlongShuffle #GhostMode #funny #grandma  #fyp #halloween #collegegotmelike #tiktok #foryoupage.mp4'
file 'Sam Ki Singing Kaisi Lgi 😂😜 insta-samayranarula #foryou #trending #lockdown #queen_samayra #tiktokindia #funny #gharbaithoindia 🏠 #comedyindia.mp4'
file 'Reply to @juswa646  #fyp#funny #relatable.mp4'
file 'RaNdOm ViDeOs! #fy #fypシ #viral #meme #funny #xyzbca #funnyvideos #randomvideo.mp4'
file 'Reply to @bratzdoll.maya what should I do next 🙄 #fyp #foryoupage #leethe4th #memes #tall #funny #lol.mp4'
file 'Part 2 #fyp #foryou #viral #foryoupageofficiall #funny #trending.mp4'
file 'Lmfao 😂 (via @danibreezy01) #lmao #lmfao #funny #cousins #family #fyp #foryou #foryoupage.mp4'
file 'When you are a clumsy kitty #trend #joke #Khaleesi #funny #kittensoftiktok #foryou #fyp #foryoupage #cute #catsoftiktok.mp4'
file 'Tag That Friend That Always Be Falling Asleep 😂 #foryou #funny #fail #nap #sleep #pennsylvania #SHEINcares #viral #trending #meme #memes #foryoupage.mp4'
file '#funny #funnyvideos #girlfriend #crzy #Birdshit.mp4'
file 'He forgot he was a dog.                #dog #fyp #talkingdog #cute #pet #funny.mp4'
file 'Bad Day #part1 #badday #falling #funny #memes #viral #jokes #comedy #trending #fyp #foryou #share #likes #us #uk #xyzbca  #epic #pourtoi #fail #wee.mp4'
file 'I think he got offended ( #catsoftiktok #fyp #funny #catlover #MyJob #yellow #foryoupage.mp4'
file 'They took OFF today 🐶🤠🐶 #joshbutlertv #roxyandremi #funny #comedy #dogs #viral #memes.mp4'
file 'Had to make sure momma was there #funny #fyp #raccoons #love #bff #foryoupage #ThisorThatSBLV.mp4'
file 'That\'s not how you get out... #mysterymakers #escaperoom #foryou #fyp #crazystory #friends #funny #crazy #teammate.mp4'


    


    The function throwing the exception.

    


    async function makeCompilation(paths, outPath) {
  for (const filePath of paths) {
    await fs.appendFile(
      "temp/concat.txt",
      `file '${path.basename(filePath).replace("'", "\\'")}'${os.EOL}`
    );
  }
  return new Promise((resolve, reject) => {
    ffmpeg("temp/concat.txt")
      .inputOptions(["-f concat", "-safe 0"])
      .outputOption("-c copy")
      .on("stderr", (line) => console.log(line))
      .on("end", async () => {
        await fs.rm("temp/concat.txt");
        resolve();
      })
      .save(outPath);
  });
}


    


  • Can't link FFMPEG dynamically to VS 2019 project

    10 février 2021, par Maya Sela

    I downloaded the source code of FFMPEG 3.4.8 and built with MSVC as such :
    
After unzipping, open x86_x64 Cross Tools Command Prompt for VS 2019 and run msys2_shell.cmd. From there, run
    
./configure --toolchain=msvc --arch=x86_64 --enable-yasm --enable-asm --enable-shared --disable-static
and
make

    
I then created a new project in VS 2019.
    
In Properties > C/C++ > General > Additional Include Directories :
    
(Where all the headers are)

    


    E:\ffmpeg-3.4.8\libavutil
E:\ffmpeg-3.4.8\libavcodec
E:\ffmpeg-3.4.8\libavdevice
E:\ffmpeg-3.4.8\libavfilter
E:\ffmpeg-3.4.8\libavresample
E:\ffmpeg-3.4.8\libpostproc
E:\ffmpeg-3.4.8\libswscale
E:\ffmpeg-3.4.8\libswresample
E:\ffmpeg-3.4.8\libavformat


    


    In Properties > Linker > General > Additional Library Directories :
    
(Where the .lib files are)

    


    E:\ffmpeg-3.4.8\libavutil
E:\ffmpeg-3.4.8\libavcodec
E:\ffmpeg-3.4.8\libavdevice
E:\ffmpeg-3.4.8\libavfilter
E:\ffmpeg-3.4.8\libavresample
E:\ffmpeg-3.4.8\libpostproc
E:\ffmpeg-3.4.8\libswscale
E:\ffmpeg-3.4.8\libswresample
E:\ffmpeg-3.4.8\libavformat


    


    In Properties > Linker > Input > Additional Dependencies :

    


    avcodec.lib
avdevice.lib
avfilter.lib
avformat.lib
swresample.lib
swscale.lib


    


    For good measure, I copied the .dll files of each library to the Release folder of the project. There is one source file I am trying to build and run :

    


    &#xA;extern "C" {&#xA;#include <libavformat></libavformat>avformat.h>&#xA;}&#xA;&#xA;int main() {&#xA;    AVFormatContext* pFormatContext = avformat_alloc_context();&#xA;}&#xA;

    &#xA;

    The result is as follows :

    &#xA;

    1>------ Build started: Project: FFMPEG_example, Configuration: Release x64 ------&#xA;1>Source.cpp&#xA;1>Source.obj : error LNK2001: unresolved external symbol avformat_alloc_context&#xA;1>C:\Users\maya.s\source\repos\FFMPEG_example\x64\Release\FFMPEG_example.exe : fatal error LNK1120: 1 unresolved externals&#xA;1>Done building project "FFMPEG_example.vcxproj" -- FAILED.&#xA;========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========&#xA;

    &#xA;

    Does anyone have an idea ?
    &#xA;Thanks !

    &#xA;

  • Turn image sequence into video with transparency

    5 juillet 2020, par Cody Hatch

    I've got what seems like it should be a really simple problem, but it's proving much harder than I expected. Here's the issue :

    &#xA;&#xA;

    I've got a fairly large image sequence consisting of numbered frames (output from Maya, for what its worth). The images are currently in Targa (.tga) format, but I could convert them to PNGs or other arbitrary format if that matters. The important thing is, they've got an alpha channel.

    &#xA;&#xA;

    What I want to do is programatically turn them into a video clip. The format doesn't really matter, but it needs to be lossless and have an alpha channel. Uncompressed video in a Quicktime container would probably be ideal.

    &#xA;&#xA;

    My initial thought was ffmpeg, but after wasting most of a day on it it seems it's got no support at all for alpha channels. Either I'm missing something, or the underlying libavcodec just doesn't do it.

    &#xA;&#xA;

    So, what's the right way here ? A command line tool like ffmpeg would be nice, but any solution that runs on Windows and could be called from a script would be fine.

    &#xA;&#xA;

    Note : Having an alpha chanel in your video isn't actually all that uncommon, and it's really useful if you want to composite it on top of another video clip or a still image. As far as I know uncompressed video, the Quicktime Animation codec, and the Sorenson Video 3 codec all support tranparency, and I've heard H.264 does as well. All we're really talking about is 32-bit color depth, and that's pretty widely supported ; both Quicktime .mov files and Windowss .avi files can handle it, and probably a lot more too.

    &#xA;&#xA;

    Quicktime Pro is more than happy to turn an image sequence into a 32-bit .mov file. Hit export, change color depth to "Millions of Colors+", select the Animation codec, crank the quality up to 100, and there you are - losslessly compressed video, with an alpha chanel, and it'll play back almost anywhere since the codec has been part of Quicktime since version 1.0. The problem is, Quicktime Pro doesn't have any sort of command-line interface (at least on Windows). ffmpeg supports encoding using the Quicktime Animation codec (which it calls qtrle), but it only supports a bit-depth of 24 bits.

    &#xA;&#xA;

    The issue isn't finding a video format that supports an alpha channel. Quicktime Animation would be ideal, but even uncompressed video should work. The problem is finding a tool that supports it.

    &#xA;