Recherche avancée

Médias (0)

Mot : - Tags -/interaction

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (18)

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

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

Sur d’autres sites (3217)

  • Ffmpeg outputting empty mp4 files for video concatenation command [closed]

    25 janvier 2024, par nonsequiter

    When I run the following Ffmpeg command it produces empty mp4 files as an output.

    


    The command takes segments of a video as inputs, crops each input at particular locations, and then concatenates them (for complex filter see appendices) :

    


    ffmpeg -ss 551.389000 -t 47.292417 -i ./testo.mp4 -ss 598.681417 -t 34.217583 -i ./testo.mp4 
-y -filter_complex "" -map "[video-output]" -map "[audio-output]"
-vcodec libx264 -r 59.94005994005994 -b:v 6890k -movflags faststart ./out.mp4


    


    I have used this command for thousands of videos, but for this particular video it causes this empty mp4 files. Depending on the specific regions of the video that I specify as inputs, sometimes the command works without issues. The inputs supplied for this video are valid, as the video is 15mins or so.

    


    Here are the relevant output logs for the video (see appendices for all other input/output) :

    


    [vost#0:0/libx264 @ 0xfae9410] No filtered frames for output stream, trying to initialize anyway.
[aost#0:1/aac @ 0xfaeab60] No filtered frames for output stream, trying to initialize anyway.
frame=    0 fps=0.0 q=0.0 size=       0kB time=N/A bitrate=N/A speed=N/A    
[mp4 @ 0xfae88d0] Starting second pass: moving the moov atom to the beginning of the file
[out#0/mp4 @ 0xfae87d0] video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
[out#0/mp4 @ 0xfae87d0] Output file is empty, nothing was encoded(check -ss / -t / -frames parameters if used)
frame=    0 fps=0.0 q=0.0 Lsize=       0kB time=N/A bitrate=N/A speed=N/A    
[libx264 @ 0xfae9790] final ratefactor: 17.79
[aac @ 0xfaeaee0] Qavg: nan


    


    Main insights from outputs :

    


      

    • The output tbn is 1000k (usually 60k)
    • 


    • "No filtered frames for output stream" for both video and audio outputs.
    • 


    


    Things I have tried :

    


      

    • I have a feeling its to do with the video frame-rate, so I tried using several permutations of commands like fps_mode, video_track_timescale, copytb, and enc_time_base.
    • 


    • Unsetting output fps
    • 


    • Changing input locations (this works)
    • 


    • Removing the complex filter makes no difference (details not removed for history)
    • 


    


    Appendices

    


    Here is the ffprobe input for the video, which was downloaded from YouTube :

    


    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/tmp/video.mp4':
Metadata:
  major_brand     : isom
  minor_version   : 512
  compatible_brands: isomiso2avc1mp41
  encoder         : Lavf60.16.100
Duration: 00:14:31.44, start: 0.000000, bitrate: 939 kb/s
Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 6848 kb/s, 59.94 fps, 59.94 tbr, 60k tbn (default)
  Metadata:
    handler_name    : ISO Media file produced by Google Inc.
    vendor_id       : [0][0][0][0]
Stream #0:1[0x2](eng): Audio: opus (Opus / 0x7375704F), 48000 Hz, stereo, fltp, 105 kb/s (default)
  Metadata:
    handler_name    : SoundHandler
    vendor_id       : [0][0][0][0]


    


    Ffmpeg output format, note the very high tbn value (usually this is 60k) :

    


    Output #0, mp4, to './out.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf60.16.100
  Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv420p(progressive), 608x1080 [SAR 1:1 DAR 76:135], q=2-31, 6890 kb/s, 59.94 fps, 1000k tbn
    Metadata:
      encoder         : Lavc60.31.102 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/6890000 buffer size: 0 vbv_delay: N/A
  Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s
    Metadata:
      encoder         : Lavc60.31.102 aac


    


    Complex filter :

    


    [0:a]asetpts=PTS-STARTPTS[audio-input-0]; # set pts for audio of input 1
[0:v]setpts=PTS-STARTPTS[post-label-0]; # set pts for video of input 2
[post-label-0]crop=608:1080:461:0[post-crop-0]; # crop input 1
[1:a]asetpts=PTS-STARTPTS[audio-input-1]; # set pts for audio of input 1
[1:v]setpts=PTS-STARTPTS[post-label-1]; # set pts for video of input 2
[post-label-1]crop=608:1080:539:0[post-crop-1]; # crop input 2
[post-crop-0][post-crop-1]concat=n=2:v=1:a=0[post-merge]; # concat video streams
[audio-input-0][audio-input-1]concat=n=2:v=0:a=1[audio-merged]; #concat audio streams
[post-merge]scale=608:1080,setsar=1[post-scale]; # scale video output
[post-scale]null[video-output]; # relabel
[audio-merged]anull[audio-output] # relabel


    


    Full command log can be found here : https://pastebin.com/5CpnaUvg

    


  • Remove parts of a video automagically without reencode ?

    21 août 2022, par Sam

    I'm looking for a way to remove automatically the opening and ending parts of a video (credits) without reencode.

    


    If you need an example, take Game of Thrones : I'd need a way to automatically remove the GoT opening (with the theme music) and the ending part (with the credits and the HBO logo part).

    


    FFmpeg can do that, but the cut has to be manual and happens only at keyframes... which isn't precise enough for me.

    


    I thought that maybe there is a tool that allows to scan a video, and remove a part between two input frames (the start of opening frame, the end of opening frame)... etc, same thing for Ending.

    


    Thanks for the help !

    


  • Set up basic Batch or Node.JS prompts for FFMPEG ?

    18 août 2016, par ErraticFox

    I have some game clips from Nvidia shadow play that I like to casually shorten and / or turn them into webms or keep them as mp4s. I use the same ffmpeg line for them. I do slightly change the line because of the input file, start time, and output file.

    How could I set up something like a batch file (I was thinking maybe node as well) where it just asks for the input file, start time, and output file ?

    The current ffmpeg command line I use is like this :
    ffmpeg -i desktop.mp4 -ss 00:01:50 -b 900000 -vf scale=640:trunc(ow/a/2)*2 output.webm