Recherche avancée

Médias (0)

Mot : - Tags -/publication

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

Autres articles (111)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

Sur d’autres sites (8768)

  • Auto-Transcode/Compress .mkv to .mp4 on Qnap TS-251+

    9 novembre 2020, par DarkDiamond

    I rip my DVDs with MakeMKV in order to be able to watch them on my TV, as I do not have a DVD-player that supports any output connector that fit into my TV as the TV is relatively new whereas the DVD-player is quite old. (As I only use the rips for my personal entertainment and do not share them there is absolutely no copyright problem).

    


    The problem with the output files is the extreme size as they are the raw data from the disk. Now I would like these files to be compressed into a .mp4 file as soon as they are finished. The problem is that the file is created before everything is in it, so I probably need to write it into a local drive and copy it to its destination later. Then I will copy them to my Qnap NAS TS-251+.

    


    There I want it do be compressed into a much smaller .mp4 file (usually the .mp4s are a sixth of the original size). I found something using ffmpeg, so I just need a script that does this for me. I do not mind to use a Docker machine for it, but I do not know how to do it. I found this :

    


    ffmpeg -i input.mkv -c:v -crf 18 -preset veryslow -c:a copy out.mp4 here.

    


    I also found this video, so I know it is in theory possible, I just do not know how to realise it.

    


    In case you ask why I want to use the Qnap NAS, it allows hardware acceleration, whereas my laptop does not.

    


  • ffmpeg:Unable to broadcast to live stream from webcam

    13 mai 2020, par gbenga ogunbule

    I have this code that I believe should be able to grab from webcam and broadcast a live stream i.e. Users will be able to watch or stream live what there admin is doing at that moment in time.

    



    I have this code for it

    



    C:\Apache24\htdocs\v­ideo\assets\ffmpeg\b­in>ffmpeg -f dshow -i video="HP Webcam" -c:v libx264 -preset ultrafast -tune zerolatency -r 10 -async 1 -c:a libmp3lame -b:a 24k -ar 22050 -bsf:v h264_mp4toannexb -maxrate 750k -bufsize 3000k -f mpegt s C:\Apache24\htdocs\v­ideo\assets\uploads\­videos\en.mp4


    



    Also notice I use the absolute path mpegt s C:\Apache24\htdocs\v­ideo\assets\uploads\­videos\en.mp4 instead localhost/video/assets/uploads/videos/en.mp4 and the reason is because, when I use the latter, it is recording the video into the folder where I run the command.

    



    And this is the HTML code I wrote for it.

    



    <video width="320" height="240" controls="controls">&#xA;  <source src="assets/uploads/videos/en.mp4" type="video/mp4">&#xA;Your browser does not support the video tag.&#xA;</source></video>&#xA;

    &#xA;&#xA;

    How do I online streaming using ffmpeg

    &#xA;

  • FFMPEG and Matplotlib for animations - strange outputs ?

    27 juin 2020, par user13132640

    I'm trying to create animations using FFMPEG and matplotlib. Using the below code, I am creating the FFMpeg writer, and then using a loop, writing a series of graphs to the animation. However, the outputs I'm getting are very strange ; sometimes, when I watch the .mp4 file, the first 5 seconds are blank, then the video "ends" (the playback time on my media player says that it's complete), and at that point, my animation shows up. Other times, some frames are missing or skipped. I've tried searching around, but frankly I haven't found anyone with similar issues.

    &#xA;

    I just installed the latest version of FFMpeg today.

    &#xA;

    FFMpegWriter = manimation.writers[&#x27;ffmpeg&#x27;]&#xA;metadata = dict(title=&#x27;Animation test&#x27;, artist=&#x27;name&#x27;)&#xA;writer = FFMpegWriter(fps=1, metadata=metadata) # 1 frames per second, each year is 1 second&#xA;

    &#xA;

    Then, the plotting part...(I've excluded the code where I setup the fig, ax etc.)

    &#xA;

    with writer.saving(fig, "animation.mp4", dpi=200):&#xA;    year = "2005"&#xA;    for i in range(4):&#xA;&#xA;        d1_plot = d1[d1[&#x27;Year&#x27;].str.contains(year, na=False)]&#xA;        ax.scatter(d1_plot["Lat"], d1_plot["Long"], c=&#x27;g&#x27;, s=d1_plot["Size"], transform=ccrs.PlateCarree())&#xA;        ax.set_title(year)&#xA;        writer.grab_frame()&#xA;        year = str(int(year)&#x2B;1)&#xA;

    &#xA;