Recherche avancée

Médias (1)

Mot : - Tags -/sintel

Autres articles (22)

  • Librairies et logiciels spécifiques aux médias

    10 décembre 2010, par

    Pour un fonctionnement correct et optimal, plusieurs choses sont à prendre en considération.
    Il est important, après avoir installé apache2, mysql et php5, d’installer d’autres logiciels nécessaires dont les installations sont décrites dans les liens afférants. Un ensemble de librairies multimedias (x264, libtheora, libvpx) utilisées pour l’encodage et le décodage des vidéos et sons afin de supporter le plus grand nombre de fichiers possibles. Cf. : ce tutoriel ; FFMpeg avec le maximum de décodeurs et (...)

  • Other interesting software

    13 avril 2011, par

    We don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
    The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
    We don’t know them, we didn’t try them, but you can take a peek.
    Videopress
    Website : http://videopress.com/
    License : GNU/GPL v2
    Source code : (...)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

Sur d’autres sites (6118)

  • Anomalie #3816 (Nouveau) : Compatiblité avec PHP 7.0.9 et 5.6.24 et les fonctions "expected to be ...

    10 août 2016

    Suite à http://forum.spip.net/fr_264848.html#forum264908

    Apparemment SPIP et PHP 7.0.9 génère une page blanche.

    D’après Tatu, il faudrait modifier le paramètre de la fonction f_queue() à la ligne 246 du fichier "spip/ecrire/inc/pipelines.php"

    Ainsi la fonction :
    function f_queue(&$texte)
    Devient :
    function f_queue($texte)

    D’après Luc, cela pourrait venir de https://bugs.php.net/bug.php?id=72698

    Si c’est le cas, il faudrait faire une revue du code et chercher les appels de type &$

  • Very basic Moviepy script failing to run

    1er juillet 2018, par cem akbulut

    So, I have this very basic script that concatenates two videos, and adds a background sound.

    def intro():

       voiceoverIntro = AudioFileClip(audio[3]) #get path for intro.mp3


       introVideo = []
       temp = p1vid + p2vid + p3vid

       for x in temp: # add product videos to introVideo if they are longer than intro.mp3
           x = VideoFileClip(x)

           if x.duration >= voiceoverIntro.duration:
               introVideo.append(x)


       if len(introVideo) >= 1:

           #Get the video and turn off its volume
           introBg = introVideo[0].volumex(0).resize((1280,720))
           introBg = introBg.set_audio(voiceoverIntro).set_duration(voiceoverIntro.duration)


           introBg.reader.close()
           introBg.audio.reader.close_proc()

           return introBg

    And this function creates the second clip

    def productThreeOpener(productName):
       opener3 = VideoFileClip("media/number3.mp4").volumex(0).resize((1280,720))



       text = TextClip(productName,fontsize=60,color='white', font="Dekar")\
           .set_pos(("right", "center"))\
           .set_duration(3)\
           .set_start(2)\
           .crossfadein(1)\
           .crossfadeout(1)\
           .margin(right=200,opacity=0)

       opener3 = CompositeVideoClip([opener3, text])

       return opener3

    Now we just concatenate the two outputs

    final_clip = concatenate_videoclips([intro, productThreeOpener], method="compose")

    final_clip.resize((1280, 720)).write_videofile("output/intro.mp4", threads=8, fps=24, progress_bar=False)

    Running the code above returns this error ;

    Traceback (most recent call last):
    [MoviePy] >>>> Building video output/intro.mp4
     File "C:/Users/Akbulut/PycharmProjects/youtubeVideoEditor/vidEditor/sandbox.py", line 145, in <module>
    [MoviePy] Writing audio in introTEMP_MPY_wvf_snd.mp3
       final_clip.write_videofile("output/intro.mp4", threads=8, fps=24, progress_bar=False)
     File "", line 2, in write_videofile
     File "C:\Program Files\Python36\lib\site-packages\moviepy\decorators.py", line 54, in requires_duration
       return f(clip, *a, **k)
     File "", line 2, in write_videofile
     File "C:\Program Files\Python36\lib\site-packages\moviepy\decorators.py", line 137, in use_clip_fps_by_default
       return f(clip, *new_a, **new_kw)
     File "", line 2, in write_videofile
     File "C:\Program Files\Python36\lib\site-packages\moviepy\decorators.py", line 22, in convert_masks_to_RGB
       return f(clip, *a, **k)
     File "C:\Program Files\Python36\lib\site-packages\moviepy\video\VideoClip.py", line 318, in write_videofile
       progress_bar=progress_bar)
     File "", line 2, in write_audiofile
     File "C:\Program Files\Python36\lib\site-packages\moviepy\decorators.py", line 54, in requires_duration
       return f(clip, *a, **k)
     File "C:\Program Files\Python36\lib\site-packages\moviepy\audio\AudioClip.py", line 213, in write_audiofile
       progress_bar=progress_bar)
     File "", line 2, in ffmpeg_audiowrite
     File "C:\Program Files\Python36\lib\site-packages\moviepy\decorators.py", line 54, in requires_duration
       return f(clip, *a, **k)
     File "C:\Program Files\Python36\lib\site-packages\moviepy\audio\io\ffmpeg_audiowriter.py", line 165, in ffmpeg_audiowrite
       ffmpeg_params=ffmpeg_params)
     File "C:\Program Files\Python36\lib\site-packages\moviepy\audio\io\ffmpeg_audiowriter.py", line 71, in __init__
       self.proc = sp.Popen(cmd, **popen_params)
     File "C:\Program Files\Python36\lib\subprocess.py", line 594, in __init__
       _cleanup()
     File "C:\Program Files\Python36\lib\subprocess.py", line 205, in _cleanup
       res = inst._internal_poll(_deadstate=sys.maxsize)
     File "C:\Program Files\Python36\lib\subprocess.py", line 1025, in _internal_poll
       if _WaitForSingleObject(self._handle, 0) == _WAIT_OBJECT_0:
    OSError: [WinError 6] İşleyici geçersiz
    Exception ignored in: <bound method="method" of="of" object="object" at="at" 0x0000000a885019b0="0x0000000a885019b0">>
    Traceback (most recent call last):
     File "C:\Program Files\Python36\lib\site-packages\moviepy\audio\io\ffmpeg_audiowriter.py", line 134, in __del__
       self.close()
     File "C:\Program Files\Python36\lib\site-packages\moviepy\audio\io\ffmpeg_audiowriter.py", line 122, in close
       if self.proc:
    AttributeError: 'FFMPEG_AudioWriter' object has no attribute 'proc'

    Process finished with exit code 1
    </bound></module>

    I strictly followed MoviePY installation guide, installed it and all of its dependencies about 2 days ago. I work on a 64b Windows machine. Python version 3.6.1

    I’ve been stuck with this error for over a day now, and I don’t know what to try.. Any help/advice is highly appreciated.

    Thanks.

  • Working directory in Dockerfile is not what is expected to be

    31 mai 2022, par user1765862

    I have following Dockerfile

    &#xA;

    FROM public.ecr.aws/lambda/dotnet:6 AS base&#xA;&#xA;FROM mcr.microsoft.com/dotnet/sdk:6.0-bullseye-slim as build&#xA;WORKDIR /src&#xA;COPY ["AWSServerless.csproj", "AWSServerless/"]&#xA;RUN dotnet restore "AWSServerless/AWSServerless.csproj"&#xA;&#xA;WORKDIR "/src/AWSServerless"&#xA;COPY . .&#xA;RUN dotnet build "AWSServerless.csproj" --configuration Release --output /app/build&#xA;&#xA;FROM build AS publish&#xA;&#xA;RUN apt-get update &amp;&amp; apt-get install -y apt-utils libgdiplus libc6-dev&#xA;&#xA;RUN apt-get install -y ffmpeg&#xA;&#xA;RUN dotnet publish "AWSServerless.csproj" \&#xA;            --configuration Release \ &#xA;            --runtime linux-x64 \&#xA;            --self-contained false \ &#xA;            --output /app/publish \&#xA;            -p:PublishReadyToRun=true  &#xA;&#xA;FROM base AS final&#xA;WORKDIR /var/task&#xA;&#xA;CMD ["AWSServerless::AWSServerless.LambdaEntryPoint::FunctionHandlerAsync"]&#xA;COPY --from=publish /app/publish .&#xA;

    &#xA;

    As per ffmpeg docs In order to use ffmpeg I need to set its binary folder&#xA;for example with

    &#xA;

    {&#xA;  "BinaryFolder": "/var/task",&#xA;  "TemporaryFilesFolder": "/tmp"&#xA;}&#xA;

    &#xA;

    Error

    &#xA;

    &#xA;

    An error occurred trying to start process './ffmpeg' with working&#xA;directory '/var/task'. No such file or directory

    &#xA;

    &#xA;

    What is the working directory here ?

    &#xA;

    Update :&#xA;Actual error is being thrown when I try to execute following command (FFMpegCore package) from my api controller

    &#xA;

    public class MyController : ControllerBase&#xA;{&#xA;    public async Task<string> Get()&#xA;    {    &#xA;         await FFMpegArguments&#xA;               .FromPipeInput(new StreamPipeSource(myfile))&#xA;               .OutputToPipe(new StreamPipeSink(outputStream), options => options&#xA;                  .WithVideoCodec("vp9")&#xA;                  .ForceFormat("webm"))&#xA;                  .ProcessAsynchronously();&#xA;         ...&#xA;    }    &#xA;}&#xA;</string>

    &#xA;