Recherche avancée

Médias (91)

Autres articles (36)

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

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (6218)

  • Merging 3 separate commands into one that re-encodes a video, extracts a thumbnail, delete original and rename new video in subdirectories

    16 janvier 2017, par Ali Samii

    I am trying to execute a find bash command to process hundreds of video files that are all named video-original.mp4 but are in subdirectories of a parent directory.

    Here’s an example of the directory structure :

    videos
    ├── 01a
    │   └── video-original.mp4
    ├── 01b
    │   └── video-original.mp4
    ├── 02a
    │   └── video-original.mp4
    ├── 02b
    │   └── video-original.mp4
    ├── 03a
    │   └── video-original.mp4
    └── 03b
       └── video-original.mp4

    I am using the following command :

    find ./ -name 'video-original.mp4' -exec bash -c 'ffmpeg -i "$0" -f mp4 -vcodec libx264 -preset veryslow -profile:v high -acodec aac -movflags faststart video.mp4 -hide_banner' {} \;

    The problem I am having is that it is saving the file video.mp4 in the parent videos directory, instead of in the subdirectory next to the original video-original.mp4

    Afterwards, I want to delete the file video-original.mp4. Currently, my process entails waiting for all the videos to be reencoded, and then once complete, issuing a separate command to delete the file video-original.mp4 :

    find ./ -name 'video-original.mp4' -exec bash -c 'rm -rf "$0"' {} \;

    And my final step would be to extract a screenshot of the new video.mp4 at 10 seconds and save it as thumbnail.jpg. Again, I am currently doing that as a separate step that I execute after the previous two steps are completed.

    find ./ -name 'video.mp4' -exec bash -c 'ffmpeg -i "$0" -ss 00:00:10 -vframes 1 thumbnail.jpg' {} \;

    What I would like to do is combine these three steps into a single command so the end result will be :

    videos
    ├── 01a
    │   ├── thumbnail.jpg
    │   └── video.mp4
    ├── 01b
    │   ├── thumbnail.jpg
    │   └── video.mp4
    ├── 02a
    │   ├── thumbnail.jpg
    │   └── video.mp4
    ├── 02b
    │   ├── thumbnail.jpg
    │   └── video.mp4
    ├── 03a
    │   ├── thumbnail.jpg
    │   └── video.mp4
    └── 03b
       ├── thumbnail.jpg
       └── video.mp4

    Finally, it would be great to save that as a bash script and include it in my path in /usr/local/bin or ~/bin as an executable so I could just issue the command reencode and it would run. Would be even better if the input file could have any video file, for example, random_name.mp4 or random_name.mov or random_name.webm, basically any video file (but skipping video.mp4 at the encoding step).

  • Convert video to exactly the same stream type of other video in ffmpeg

    14 avril 2014, par user1750371

    Maybe this is a silly question, didn't manage to find a clear answer anywhere.

    I need to use ffmpeg to convert a given video to exactly the same format another video has, including bitrate, video and audio codecs... everything. The goal is to concat both videos into a single file, independently of the original formats.

    Is there an easy way to do this or do I have to build a complex command line input specifying all parameters ?

    The concat demuxer is not enough... maybe something with filter_complex ?

    Thanks and sorry for the bother.

  • FFMPEG trim video resulting not moving videos and black video with audio

    13 juin 2023, par Rafliii

    I tried to trim my video based on start and end time with the following code :

    


    ffmpeg -ss 02:06:30.500 -to 02:06:32.417 -i movie.mp4 -c copy output.mp4

    


    The output video is not moving video and some of them are black videos with audio. What should I do ?

    


    enter image description here

    


    What should I do ?