Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP

Autres articles (103)

  • D’autres logiciels intéressants

    12 avril 2011, par

    On ne revendique pas d’être les seuls à faire ce que l’on fait ... et on ne revendique surtout pas d’être les meilleurs non plus ... Ce que l’on fait, on essaie juste de le faire bien, et de mieux en mieux...
    La liste suivante correspond à des logiciels qui tendent peu ou prou à faire comme MediaSPIP ou que MediaSPIP tente peu ou prou à faire pareil, peu importe ...
    On ne les connais pas, on ne les a pas essayé, mais vous pouvez peut être y jeter un coup d’oeil.
    Videopress
    Site Internet : (...)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

Sur d’autres sites (5776)

  • HEVC to mp4 video converter

    7 juillet 2023, par Rahul Ranjan

    While converting files HEVC to mp4 using python the error is comming by ffmpeg. I have used moviepy to convert video to mp4 formate.

    


    Used moviepy Package to convert but throwing error

    


    import os
from moviepy.editor import VideoFileClip

def convert_to_mp4(input_file, output_file):
    try:
        clip = VideoFileClip(input_file)
        codec = 'libx264'  # Default codec is libx264
        if clip.reader.codec_name == 'hevc':
            codec = 'libx265'
        clip.write_videofile(output_file, codec=codec, audio_codec='aac')
        return True
    except Exception as e:
        print(f"Error converting video: {str(e)}")
        return False

def upload_and_convert(input_file_path, output_folder):
    if os.path.exists(input_file_path):
        # Convert to MP4
        mp4_file_path = os.path.join(output_folder, 'converted2.mp4')
        success = convert_to_mp4(input_file_path, mp4_file_path)

        if success:
            print(f"Conversion successful. MP4 saved at {mp4_file_path}")
            return mp4_file_path  # Return the path of the converted MP4 file
        else:
            print("Failed to convert the video.")
            return None
    else:
        print("Input file not found.")
        return None

input_file_path = '/Downloads/sample-hevc-file.hevc'
output_folder = '/Downloads'
download_link = upload_and_convert(input_file_path, output_folder)

if download_link:
    print(f"Download the converted MP4 file here: {download_link}")


    


    Error

    


    rror converting video: MoviePy error: failed to read the duration of file C:/Users/kjrah/Downloads/sample-hevc-file.hevc.
Here are the file infos returned by ffmpeg:

ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 9.2.1 (GCC) 20200122
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
Input #0, hevc, from 'C:/Users/kjrah/Downloads/sample-hevc-file.hevc':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: hevc (Main), yuv420p(tv), 320x240 [SAR 1:1 DAR 4:3], 15 fps, 15 tbr, 1200k tbn, 15 tbc
At least one output file must be specified

Failed to convert the video.


    


    Throwing this error except HEVC mostly files are working fine.

    


  • Is there a way to extract every nth frame from an online video without downloading the entire video ?

    13 avril 2018, par Arif

    I’m looking for a website or app that lets you to download individual frames from a video as jpg without downloading the full thing. If there is no such website or app, is it possible via ffmpeg ?

  • Adding Subtitles to a VAAPI/QSV 10bit Accelerated Transcode

    17 juin 2023, par Enverex

    I've been converting some of my BluRays to watch on a streaming machine elsewhere in the house but I'm having trouble when it comes to burning subtitles, or more specifically, I'm having trouble figuring out what FFMPEG wants from me to make the process actually work.

    


    It's easy enough to do this in software, but I'm using hardware decoding and encoding and that's where the complexity seems to come from (VAAPI/QSV for decoding, QSV AV1 for encoding).

    


    I can use the following when dealing with SDR content :

    


    -vf "scale_vaapi=w='min(1920,iw)':h=-8:mode=nl_anamorphic:format=p010le:extra_hw_frames=120,hwmap=derive_device=qsv,format=qsv"


    


    And the following when dealing with HDR content :

    


    -vf "scale_vaapi=w='min(1920,iw)':h=-8:mode=nl_anamorphic:format=p010le,tonemap_vaapi=format=p010le:t=bt709:m=bt709:p=bt709:extra_hw_frames=120,hwmap=derive_device=qsv,format=qsv"


    


    But I cannot, in the hundreds of permutations I've tried now, find a single way to shoehorn subtitle baking into the process. I'm using SRT files for simplicity, so I just need to add subtitles=blah.srt somewhere to get it to work, but the crux of the issue is knowing where in the chain it needs to go and more importantly, what supporting arguments it needs with it (e.g. hwupload, hwdownload, and their associated switches, etc).

    


    Pretty much every single attempt just results in :

    


    


    Impossible to convert between the formats supported by the filter 'graph 0 input from stream 0:0' and the filter 'auto_scale_0'
Error reinitializing filters !
Failed to inject frame into filter network : Function not implemented

    


    


    So, what am I missing ?