Recherche avancée

Médias (0)

Mot : - Tags -/flash

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

Autres articles (106)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

Sur d’autres sites (9953)

  • How to run a command in python with file paths containing spaces ?

    24 juillet 2023, par tomatochan

    I'm developing a program in Python that requires the use of FFMPEG. In one step, I need to create a video from a text file containing the list of images (path and duration) that need to be assembled to make a video. To do this, I use the following code :

    


    cmd = [ffmpeg, "-y", "-f", "concat", "-safe", "0", "-i", tmp, "-c:v", "libx264", "-r", "25", "-pix_fmt", "yuv420p", out]
subprocess.run(cmd)
# os.system(" ".join(cmd)) # returns same error


    


    What returns the error : The syntax of the file, directory or volume name is incorrect.

    


    I know that paths can be problematic when they contain spaces, and as my username has one, I've taken care to quote the paths in such a way that :

    


    ffmpeg = '"C:\Users\John Doe\Documents\ffmpeg\bin\ffmpeg.exe"'
tmp = '"C:\Users\John Doe\Desktop\path\to\file.txt"'
out = '"C:\Users\John Doe\Desktop\path\to\video.mp4"'


    


    When I print(" ".join(cmd)), this is what I get in my terminal :

    


    "C:\Users\John Doe\Documentsffmpeg\binffmpeg.exe" -y -f concat -safe 0 -i "C:\Users\John Doe\Desktop\path\to\file.txt" -c:v libx264 -r 25 -pix_fmt yuv420p "C:\Users\John Doe\Desktop\path\to\video.mp4"


    


    However, the problem persists.
Has anyone ever had this problem and managed to solve it ?

    


    I've also tried the method where you have to escape the spaces (taking care to replace the \ with / and then the with \ ) but nothing works... The error persists.

    


    For your information, here are the contents of one of my .txt files

    


    file C:\Users\John Doe\Desktop\path\to\image_1.png
duration 0.04
file C:\Users\John Doe\Desktop\path\to\image_2.png
duration 0.04
file C:\Users\John Doe\Desktop\path\toimage_3.png
duration 0.04


    


    When I quote the paths in the .txt files

    


      

    • subprocess gives me the error :
PermissionError: [WinError 5] Access denied
    • 


    • os.system gives me the error :
    • 


    


    C:\Users\John' is not recognized as an internal or external command, an executable program or a command file.
The syntax of the file, directory or volume name is incorrect.


    


  • Android Samsung Galaxy S2 / S3 device bitmap rendering to ImageView issue

    18 décembre 2014, par Steve

    I am stuck in a very strange Bitmap rendering issue with Samsung Android devices. Let me discuss in brief what I have done.

    I am taking frame from a video and rendering it in a ImageView using ffmpeg. Following code gives me a bitmap object in return from JNI callback.

       img_convert_ctx = sws_getContext(pCodecCtx->width,
               pCodecCtx->height, pCodecCtx->pix_fmt, target_width,
           target_height, PIX_FMT_RGB24, SWS_BICUBIC, NULL, NULL,NULL);

       sws_scale(img_convert_ctx,(const uint8_t* const *)
           pFrame->data,pFrame->linesize, 0, pCodecCtx->height,pFrameRGB->data,
    pFrameRGB->linesize);

    Next, I’m just setting the Bitmap to ImageView. Now the issue is the Bitmap I get is rendering very well in maximum devices except Samsung S2/S3.

    A>Working well In :- Screen Shot 1

    1. Nexus 4
    2. HTC One / HTC One x
    3. LG Optimus
    4. Sony Experia
    5. Samsung Galaxy S Plus / Samsung Exhibit (Android 2.3)

    Issue With :-
    B>Samsung Galaxy S2 & S3 : The second screen shot.

    For Case B, A part of the video is rendering at the right side if you notice.

    I have tried saving the Bitmap I get from JNI as jpg in SD card and read that again to set the ImageView and it works. I Don’t understand what is going wrong with the raw Bitmap that I get from JNI callback, is it with Samsung S2 Hardware ? Please someone help me on this.

    With Nexus 4/HTC/XOLO/Sony/Samsung S plus

    With Samsung S3/S3

  • How to capture region screen with Watermark using FFmpeg on Mac ? [duplicate]

    25 janvier 2021, par Yong Ju

    I was tried to capture region screen using FFmpeg on Mac.
So, I ran some command line for it.

    


    ffmpeg -f avfoundation -i "0" -vf "crop=500:500:400:800" -pix_fmt yuv420p -y -r 25 out.mov


    


    Now, I want to capture region screen with watermark.
I don't know how to configure command line for it.
If you have good experience in this field, Please advice me.