Recherche avancée

Médias (1)

Mot : - Tags -/école

Autres articles (51)

  • 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

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • Les statuts des instances de mutualisation

    13 mars 2010, par

    Pour des raisons de compatibilité générale du plugin de gestion de mutualisations avec les fonctions originales de SPIP, les statuts des instances sont les mêmes que pour tout autre objets (articles...), seuls leurs noms dans l’interface change quelque peu.
    Les différents statuts possibles sont : prepa (demandé) qui correspond à une instance demandée par un utilisateur. Si le site a déjà été créé par le passé, il est passé en mode désactivé. publie (validé) qui correspond à une instance validée par un (...)

Sur d’autres sites (6524)

  • Use ffmpeg to downscale, tonemap, downmix and re encode mkv

    1er février 2021, par nikartz

    I try to use ffmpeg to downscale a 4k and tonemap a 4k HDR mkv to a 1080p SDR mkv with this code :

    


    ffmpeg -i "Input.mkv" -vf zscale=t=linear:npl=100,format=gbrpf32le,zscale=p=bt709,tonemap=tonemap=hable:desat=0,zscale=t=bt709:m=bt709:r=tv,format=yuv420p -c:v hevc_nvenc -b:v 12M -preset slow "Output.mkv"


    


    The problem is, that only the first audio track (of four) is copied to the new mkv and the subtitle tracks are missing :

    


    Input :

    


    Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
Stream #0:1(ger): Audio: eac3, 48000 Hz, 7.1, fltp (default)
Stream #0:2(ger): Audio: dts (DTS-HD MA), 48000 Hz, 7.1, s16p
Stream #0:3(eng): Audio: truehd, 48000 Hz, 7.1, s32 (24 bit)
Stream #0:4(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s
Stream #0:5(ger): Subtitle: subrip (default) (forced)
Stream #0:6(ger): Subtitle: dvd_subtitle, 1920x1080 (forced)
Stream #0:7(ger): Subtitle: hdmv_pgs_subtitle, 1920x1080 (forced)
Stream #0:8(ger): Subtitle: dvd_subtitle, 1920x1080
Stream #0:9(ger): Subtitle: hdmv_pgs_subtitle
Stream #0:10(eng): Subtitle: dvd_subtitle, 1920x1080
Stream #0:11(eng): Subtitle: hdmv_pgs_subtitle


    


    Output :

    


    Stream #0:0: Video: hevc (Main), yuv420p(tv), 3840x2160 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
Stream #0:1(ger): Audio: vorbis, 48000 Hz, 7.1, fltp (default)
Stream #0:2(ger): Subtitle: ass (default) (forced)


    


    I would like to have an mkv as output converts all the audio tracks to aac Stereo (but keeps all four of them), copies the subtitle tracks and tonemaps/downscales the video track.

    


    I have tried to use the -map 0 or -map 0:a:0 -map 0:a:1 ... commands (and some similiar to those, however I seemingly end up with either one audio track, no video track or a video track that is just copied.

    


    I possible, I would also like to use nvenc with a high quality preset, which is the reason for -c:v hevc_nvenc -b:v 12M -preset slow in my command, however I have no idea, if this is done right, since the ouput mkv also as a 4k video track instead of a 1080p. Maybe this is caused by the -c:v because it overrides -vf ? Sorry, I am feeling dumb and am just getting started with ffmpeg.

    


    There is so much information about ffmpeg out there, but it is either too complicated for me, or not answering my questions.

    


    Thanks for your help !

    


  • FFMPEG Conversion Command Produces 360p Video from Picture Input ?

    22 janvier 2021, par Sarah Szabo

    I'm trying to generate a high quality video of the timelapse of the night sky (+stars) that I did last night, but the output video is 360p an missing a lot of detail.

    


    My Fuji X-T200 usually offers a 4K video of the images that it took, but i opted to assemble the images manually so that I wouldn't take up valuable SD card space.

    


    Here is the command :
ffmpeg -framerate 24 -pattern_type glob -i '*.png' -c:v libx265 -r 30 -pix_fmt yuv420p Starlapse.mp4

    


    What command should I use to best assemble the videos in 1080p or 4K ?

    


    EDIT 0 :
Output Video : https://www.youtube.com/watch?v=xbYI98fctrw&feature=youtu.be

    


    Input frame :
enter image description here

    


  • Python ffmpeg won't accept path, why ?

    16 février, par Messaoud dhia

    everytime i launch the code and set the correct path it gives me this error, I tried including ffmpeg path, uninstalling and installing the library back but no luck. I've also tried using diffrent ways to set the path like putting it directly without saving it to a variable, this is getting me crazy please help me with a solution .

    



    

                                                         Code


    



    

    from pytube import *
import ffmpeg

global str
userurl = (input("Enter a youtube video URL : "))
q = str(input("Which quality you want ?  360p,480p,720p,1080p,4K,Flh :")).lower()
yt = YouTube(userurl)
print ("Title of the video : ",yt.title)


def hd1080p():
    print("Downloading a HD 1080p video...")
    v = yt.streams.filter(mime_type="video/mp4", res="1080p", adaptive = True).first().download(filename = "HD1080P.mp4")
    print("Video downloaded")
    yt.streams.filter(mime_type="audio")
    a = yt.streams.get_audio_only()
    print("Downloading audio")
    a.download(filename = "audio.mp4")
    print("audio downloaded")
    input_video = ffmpeg.input("HD1080P.mp4")
    added_audio = ffmpeg.input("audio.mp4").audio.filter('adelay', "1500|1500")

    merged_audio = ffmpeg.filter([input_video.audio, added_audio], 'amix')

    (
        ffmpeg
        .concat(input_video, merged_audio, v=1, a=1)
        .output("mix_delayed_audio.mp4")
        .run(overwrite_output=True)
    )
    

if q == "1080" or q == "1080p":
    hd1080p()
elif q == "720" or q == "720p":
    hd720p()
elif q == "480" or q == "480p":
    l480p()
elif q == "360" or q == "360p":
    l360p()
elif q ==  "4" or q == "4k":
    hd4k()
else:
    print("invalid choice")


    



    

                                                      THE ERROR


    



    

    Traceback (most recent call last):&#xA;  File "c:\Users\messa\Desktop\upcoming project\videodownloader.py", line 65, in <module>&#xA;    hd1080p()&#xA;  File "c:\Users\messa\Desktop\upcoming project\videodownloader.py", line 26, in hd1080p&#xA;    ffmpeg&#xA;  File "E:\Users\messa\AppData\Local\Programs\Python\Python39\lib\site-packages\ffmpeg\_run.py", line 313, in run&#xA;    process = run_async(&#xA;  File "E:\Users\messa\AppData\Local\Programs\Python\Python39\lib\site-packages\ffmpeg\_run.py", line 284, in run_async&#xA;    return subprocess.Popen(&#xA;  File "E:\Users\messa\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 947, in __init__&#xA;    self._execute_child(args, executable, preexec_fn, close_fds,&#xA;  File "E:\Users\messa\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 1416, in _execute_child&#xA;    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,&#xA;FileNotFoundError: [WinError 2] The system cannot find the file specified&#xA;</module>

    &#xA;