Recherche avancée

Médias (1)

Mot : - Tags -/Christian Nold

Autres articles (27)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • MediaSPIP Core : La Configuration

    9 novembre 2010, par

    MediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
    Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...)

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

Sur d’autres sites (3400)

  • Concatenating Video Files using FFMPEG YUV issue

    3 novembre 2015, par SpoiledTechie.com

    I am concatenating three videos with FFMPEG.

    The 1st and 3rd video of the concatenation were pulled from an AVI file using FFMPEG and converted into MP4.

    Their codec information is below.

    enter image description here

    The 2nd video in the concatenation is compiled using FFMPEG. I am compiling frames with FFMPEG to create this video.

    Its codec information is below.

    enter image description here
    As you can see, the videos share the same codec, resolution and frame rate.

    The only thing they don’t share is the Decoded format. One being 4:4:4 and one being 4:2:2

    I think I understand what YUV means from this link, https://msdn.microsoft.com/en-us/library/windows/desktop/dd391027%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396

    When I concatenate these three videos together, using concat demuxer, it works, but when I try to watch the final video, the video shows the first file playing just right, then the 2nd video in the final video shows up BLANK and the third video plays just fine as well.

    So my question is, how do I concat 3 MP4 files, but change what seems to be the decoded format for the 2nd video to 4:2:2. When I compile the frames, I imagine I can change the YUV format, but I don’t know how just yet.

  • FFmpeg : MD5 hash of M3U8 playlists generated from same input video with different segment durations (after applying video filter) don't match

    30 juillet 2020, par Saurabh P Bhandari

    Here are a few commands I am using to convert and transize a video in MP4 format to a M3U8 playlist.

    


    For a given input video (MP4 format), generate multiple video segments with segment duration 30 seconds.

    


    ffmpeg -loglevel error -i input.mp4 -dn -sn -an -c:v copy -bsf:v h264_mp4toannexb -copyts -start_at_zero -f segment -segment_time 30 30%03d.mp4 -dn -sn -vn -c:a copy audio.aac


    


    Apply a video filter (in this case scaling) on each segment and convert it to a M3U8 format.

    


    ls 30*.mp4 | parallel 'ffmpeg -loglevel error -i {} -vf scale=-2:144 -hls_list_size 0 {}.m3u8'


    


    Store the list of m3u8 files generated in list.txt in this format file 'segment-name.m3u8'

    


    for f in 30*.m3u8; do echo "file '$f'" >> list.txt; done


    


    Using concat demuxer, combine all segment files (which are in M3U8 format) and the audio to get one final m3u8 playlist pointing to segments with duration of 10 seconds.

    


    ffmpeg -loglevel error -f concat -i list.txt -i audio.aac -c copy -hls_list_size 0 -hls_time 10 output_30.m3u8


    



    


    I can change the segment duration in the first step from 30 seconds to 60 seconds, and compare the MD5 hash of the final M3U8 playlist generated in both the cases using this command :

    


    ffmpeg -loglevel error -i <input m3u8="m3u8" playlist="playlist" /> -f md5 -&#xA;

    &#xA;

    The MD5 hash of the output files differ, i.e., video streams of output_30.m3u8 and output_60.m3u8 are not the same.

    &#xA;

    Can anyone elaborate on this ?

    &#xA;

    (I expected the MD5 hash to be the same)

    &#xA;

  • ffmpeg fail to run when converting file in window "Error opening output" [closed]

    8 juillet, par Lyhourt Te

    In my Windows 11, I use this code to use ffmpeg to convert video from one type to another type. The code is simple, it just loops and finds the target file extension and runs ffmpeg to convert the video&#xA;This code used to work just fine, but now it's not working anymore. I think it maybe because of the Windows 11 security update.

    &#xA;

    import os&#xA;import subprocess&#xA;&#xA;def convert_ts_to_mp4(folder_path):&#xA;    # Ensure the folder exists&#xA;    if not os.path.isdir(folder_path):&#xA;        print(f"Folder &#x27;{folder_path}&#x27; does not exist.")&#xA;        return&#xA;    &#xA;    # Loop through files in the folder&#xA;    for filename in os.listdir(folder_path):&#xA;        if filename.endswith(".ts"):  # Check if the file is a .ts file&#xA;            print("read file:", filename)&#xA;            ts_file = os.path.join(folder_path, filename)&#xA;            mp4_file = os.path.join(folder_path, filename.replace(".ts", ".mp4"))&#xA;            &#xA;            print("ts file:", ts_file)&#xA;            print("mp4 file:", mp4_file)&#xA;            &#xA;            # Run ffmpeg command&#xA;            command = ["ffmpeg", "-i", ts_file, mp4_file]&#xA;            subprocess.run(command, check=True)&#xA;            print(f"Converted: {filename} -> {os.path.basename(mp4_file)}")&#xA;&#xA;if __name__ == "__main__":&#xA;    folder_path = os.path.dirname(os.path.abspath(__file__)) # Change this to your actual folder path&#xA;    convert_ts_to_mp4(folder_path)&#xA;

    &#xA;

    The error :

    &#xA;

    Input #0, mpegts, from &#x27;C:\Users\chhor\Downloads\Video\script\python-script-for-automation\1.ts&#x27;:&#xA;  Duration: 00:44:25.20, start: 1.440000, bitrate: 3095 kb/s&#xA;  Program 1&#xA;    Metadata:&#xA;      service_name    : Service01&#xA;      service_provider: FFmpeg&#xA;  Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, progressive), 1920x872 [SAR 959:960 DAR 959:436], 25 fps, 25 tbr, 90k tbn, start 1.480000&#xA;  Stream #0:1[0x101](und): Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 130 kb/s, start 1.440000&#xA;[out#0/mp4 @ 0000014f60d66d80] Error opening output C:\Users\chhor\Downloads\Video\script\python-script-for-automation\new.mp4: No such file or directory&#xA;Error opening output file C:\Users\chhor\Downloads\Video\script\python-script-for-automation\new.mp4.&#xA;Error opening output files: No such file or directory&#xA;Traceback (most recent call last):&#xA;  File "C:\Users\chhor\Downloads\Video\script\python-script-for-automation\ts.py", line 27, in <module>&#xA;    convert_ts_to_mp4(folder_path)&#xA;  File "C:\Users\chhor\Downloads\Video\script\python-script-for-automation\ts.py", line 22, in convert_ts_to_mp4&#xA;    subprocess.run(command, check=True)&#xA;  File "C:\ProgramData\anaconda3\Lib\subprocess.py", line 571, in run&#xA;    raise CalledProcessError(retcode, process.args,&#xA;subprocess.CalledProcessError: Command &#x27;[&#x27;ffmpeg&#x27;, &#x27;-i&#x27;, &#x27;C:\\Users\\chhor\\Downloads\\Video\\script\\python-script-for-automation\\1.ts&#x27;, &#x27;C:\\Users\\chhor\\Downloads\\Video\\script\\python-script-for-automation\\new.mp4&#x27;]&#x27; returned non-zero exit status 4294967294.&#xA;</module>

    &#xA;