Recherche avancée

Médias (91)

Autres articles (65)

  • 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

  • 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

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (10680)

  • How to create video by stitching together images (.png) where the serial on each image file increases by 6

    10 avril 2024, par DataStatsExplorer

    I am trying to create a video (preferably mp4) from a series of png images. However, the name of each image file increases by 6 every frame. For example, I would have depthframe_0000 as the first frame, and depthframe_0001 for the next frame.

    


    There are a few answers that have answered a similar question but I am unable to process the video when the image files are not increasing by 1.

    


    I would like to keep the fps at 5. I am using ffmpeg as the suggested in the answers above but am open to any other suggestion.

    


    The collab code that I have put together is as follows :

    


    import subprocess

# Define the frame rate and the input/output paths
output_fps = 5
input_path = "/content/drive/MyDrive/depth/depthframe_%04d.png"
output_path = "/content/drive/MyDrive/depth.mp4"

# Create a list of the frames
frames = [input_path % i for i in range(0, 2671, 6)]  # Update range as needed

# Write the list of frames to a temporary text file
with open('frames.txt', 'w') as f:
    for frame in frames:
        f.write(f"file '{frame}'\n")

# Create the command
command = [
    "ffmpeg",
    "-f", "concat",
    "-safe", "0",
    "-i", "frames.txt",
    "-c:v", "libx264",
    "-pix_fmt", "yuv420p",
    output_path
]

# Run the command
subprocess.run(command, check=True)


    


  • Heroku ffmpeg buildpack

    20 octobre 2015, par Manuel Quintanilla

    Putting together the video upload section in my rails app and am having some issues with video play on mobile phones. Im using

    paperclip-av-transcoder, s3 and  Heroku

    On my laptop I can visit the page and see the video thumbnails and play the videos only because I have previously installed ffmpeg to my machine.

    Remotely on Heroku I’ve set the appropriate buildpacks for ffmpeg and have run push heroku master to install the buildpacks - Now when I visit the page on my mobile iPhone I don’t get a thumbnail but when I play the video it plays - on the other hand when I visit the page on my Android phone I don’t get a thumbnail and the video dose not play but I can upload mp4s on Android.

    Check out my set up here : Heroku ffmpeg buildpacks for video uploads

    It seems I don’t have the proper buildpack setup or some other heroku setting with ffmpeg.

    Any suggestions ? Thanks in advance !

  • How to convert ffmpeg command to ffmpeg-python

    1er décembre 2020, par Retro Pie

    Hello and thanks for reading.

    


    I have the following command : ffmpeg -i tmp.mp4 -loop 1 -i mask.png -filter_complex "[0:v]split [a][b];[a]transpose=1,crop=720:888:0:196,scale=876:1080,setdar=876/1080 [crop];[b]transpose=1,crop=720:888:0:196,scale=1920:1080,setdar=16/9,avgblur=76 [back];[1:v]alphaextract [mask];[crop][mask]alphamerge [masked];[back][masked]overlay=522:0" "out.mp4

    


    And I would like to convert it to ffmpeg-python syntax. So far I was able to come up with the bellow, but it far from ready :

    


    overlay_file = ffmpeg.input(mask)
(
ffmpeg
.input(tmp).split()
.overlay(overlay_file.hflip())
.alphaextract(),
.alphamerge(),
.output('out.mp4')
.run()
)


    


    Any help will be appreciated.