Recherche avancée

Médias (16)

Mot : - Tags -/mp3

Autres articles (80)

  • Other interesting software

    13 avril 2011, par

    We don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
    The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
    We don’t know them, we didn’t try them, but you can take a peek.
    Videopress
    Website : http://videopress.com/
    License : GNU/GPL v2
    Source code : (...)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

  • L’utiliser, en parler, le critiquer

    10 avril 2011

    La première attitude à adopter est d’en parler, soit directement avec les personnes impliquées dans son développement, soit autour de vous pour convaincre de nouvelles personnes à l’utiliser.
    Plus la communauté sera nombreuse et plus les évolutions seront rapides ...
    Une liste de discussion est disponible pour tout échange entre utilisateurs.

Sur d’autres sites (6315)

  • FFMPEG add text frames to the start of video

    12 février 2016, par Ryan

    I have some videos either in mp4 or webm format, and I’d like to use ffmpeg to add 4 seconds to the start of each video to display some text in the center with no sound.

    Some other requirements :

    • try to avoid re-encoding the video
    • need to maintain the quality (resolution, bitrate, etc)
    • (optional) to make the text fade in/out

    I am new to ffmpeg and any help will be appreciated.

    thanks in advance

    Example ffprobe information for mp4 below :

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mp4':
     Metadata:
       major_brand : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf55.33.100
     Duration: 00:00:03.84, start: 0.042667, bitrate: 1117 kb/s
    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720, 1021 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
    Metadata:
     handler_name    : VideoHandler
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 140 kb/s (default)
    Metadata:
     handler_name    : SoundHandler

    Example webm

    Input #0, matroska,webm, from 'input.webm':
     Metadata:
     encoder         : Lavf55.33.100
    Duration: 00:00:03.80, start: 0.000000, bitrate: 1060 kb/s
      Stream #0:0(eng): Video: vp8, yuv420p, 1280x720, SAR 1:1 DAR 16:9, 30 fps, 30 tbr, 1k tbn, 1k tbc (default)
      Stream #0:1(eng): Audio: vorbis, 48000 Hz, stereo, fltp (default)

    Screenshot from joined.mp4

    Screenshot for step 3 console

  • ffmpeg : fix implementation of updated input start time

    21 octobre 2022, par Gyan Doshi
    ffmpeg : fix implementation of updated input start time
    

    The current adjustment of input start times just adjusts the tsoffset.
    And it does so, by resetting the tsoffset to nullify the new start time.
    This leads to breakage of -copyts, ignoring of input_ts_offset, breaking
    of -isync as well as breaking wrap correction.

    Fixed by taking cognizance of these parameters, and by correcting start times
    just before sync offsets are applied.

    • [DH] fftools/ffmpeg.c
    • [DH] fftools/ffmpeg.h
    • [DH] fftools/ffmpeg_demux.c
    • [DH] fftools/ffmpeg_opt.c
  • How to use a Pipe between two processes in Process.Start

    4 juin 2015, par Zed Machine

    I have to run this command line using VB.NET :

    "H :\videotest\test.vpy" - -y | "H :\Release\data\bin64\ffmpeg.exe" -hwaccel auto -y -i - -map 0:v:0 -c:v libx265 -crf 20.0 -preset 5 -x265-params level=0:profile=undefined:pmode:no-pme:pme:no-high-tier:ref=3:bframes=4:open-gop:keyint=250:min-keyint=25:b-adapt=2:bframe-bias=0:rc-lookahead=20:no-scenecut:b-pyramid:me=hex:subme=2:merange=57:temporal-mvp:weightp:no-weightb:max-merge=2:no-weightb:no-rect:no-amp:vbv-bufsize=0:vbv-maxrate=0:vbv-init=0.9:no-strict-cbr:qcomp=0.6:qstep=4:aq-mode=1:aq-strength=1.0:cutree:no-early-skip:min-cu-size=8:ctu=64:no-fast-cfb:ipratio=1.4:pbratio=1.3:cbqpoffs=0:crqpoffs=0:rd=3:psy-rd=0.3:psy-rdoq=1:no-b-intra:no-fast-intra:rdoq-level=1:no-tskip:no-tskip-fast:cu-lossless:tu-intra-depth=1:tu-inter-depth=1:strong-intra-smoothing:no-constrained-intra:nr-intra=0:nr-inter=0:qblur=0.5:cplxblur=20:signhide:sar=16
    "H :\videotest\outputawdwd.mkv"

    vspipe.exe runs the test.vpy script and applies filters to or resizes video input, then the output is piped to ffmpeg for the encoding.

    If I use a normal Process declaration with vspipe it gives the following error :

    Unknown argument : |

    From the command line the script works well. I suspect that means that I have to manually pipe between vspipe and ffmpeg.

    Is it possible to manually pipe output from one process to another ? Must I do it manually ?

    Here is my function to start process :

    executablepath = "H:\Project\VapourSynth\core64\vspipe.exe"

    params = "H:\videotest\test.vpy" - -y | "H:\Release\data\bin64\ffmpeg.exe" -hwaccel auto -y -i - -map 0:v:0 -c:v libx265 -crf 20.0 -preset 5 -x265-params level=0:profile=undefined:pmode:no-pme:pme:no-high-tier:ref=3:bframes=4:open-gop:keyint=250:min-keyint=25:b-adapt=2:bframe-bias=0:rc-lookahead=20:no-scenecut:b-pyramid:me=hex:subme=2:merange=57:temporal-mvp:weightp:no-weightb:max-merge=2:no-weightb:no-rect:no-amp:vbv-bufsize=0:vbv-maxrate=0:vbv-init=0.9:no-strict-cbr:qcomp=0.6:qstep=4:aq-mode=1:aq-strength=1.0:cutree:no-early-skip:min-cu-size=8:ctu=64:no-fast-cfb:ipratio=1.4:pbratio=1.3:cbqpoffs=0:crqpoffs=0:rd=3:psy-rd=0.3:psy-rdoq=1:no-b-intra:no-fast-intra:rdoq-level=1:no-tskip:no-tskip-fast:cu-lossless:tu-intra-depth=1:tu-inter-depth=1:strong-intra-smoothing:no-constrained-intra:nr-intra=0:nr-inter=0:qblur=0.5:cplxblur=20:signhide:sar=16 "H:\videotest\outputawdwd.mkv"

    Private Sub CreateJobProcess(ByVal Name, ByVal executablepath, ByVal params)

       Try

           If Not jobs_processes.ContainsKey(Name) Then

               Dim Proc As New Process

               Proc.StartInfo.UseShellExecute = False
               Proc.StartInfo.CreateNoWindow = True
               Proc.StartInfo.RedirectStandardError = True
               Proc.StartInfo.FileName = "" & executablepath & ""
               Proc.StartInfo.Arguments = params

               'start process
               Proc.Start()

               'add new process to dictionary
               jobs_processes.Add(Name, Proc)

               'TEMP
               My.Settings.giobbe -= 1

               'start background workers for statistics
               If Not ConversionStats.IsBusy Then
                   ConversionStats.WorkerSupportsCancellation = True
                   ConversionStats.RunWorkerAsync()
               End If

               If Not UpdateListJob.IsBusy Then
                   UpdateListJob.WorkerSupportsCancellation = True
                   UpdateListJob.RunWorkerAsync()
               End If

           End If

       Catch ex As Exception
           Me.Invoke(New MethodInvoker(Sub() Logbox.AppendText(Environment.NewLine & ">Program exception:" & Environment.NewLine & ex.Message & Environment.NewLine)))
           MsgBox(ex.Message)
       End Try
    End Sub

    Update :

    This is the block I have changed, this function get job name and parameters for the job that needs to be created, then it saves the process in a dictionary.

                 Dim Proc As New Process

                   Proc.StartInfo.UseShellExecute = False
                   Proc.StartInfo.CreateNoWindow = True
                   Proc.StartInfo.RedirectStandardError = True
                   Proc.StartInfo.FileName = "cmd"
                   Proc.StartInfo.Arguments = params

                   'start process
                   Proc.Start()

                   'add new process to dictionary
                   jobs_processes.Add(Name, Proc)

                   'TEMP
                   My.Settings.giobbe -= 1

                   'start background workers for statistics
                   If Not ConversionStats.IsBusy Then
                       ConversionStats.WorkerSupportsCancellation = True
                       ConversionStats.RunWorkerAsync()
                   End If

                   If Not UpdateListJob.IsBusy Then
                       UpdateListJob.WorkerSupportsCancellation = True
                       UpdateListJob.RunWorkerAsync()
                   End If

    then i have a backgroundworker ( ConversionStats ) that get stderr from every process in the dictionary and print them into textboxes :

              'take current selected process and set streamreader
               Dim tmpproc As Process = jobs_processes(CurrentJob)
               Dim ffmpeg_stats As StreamReader
               Dim stdoutput As String = ""

               'something that verify if the job is started

               If statejob = 1 Then    'if job is working

                   'take stderr from ffmpeg
                   ffmpeg_stats = tmpproc.StandardError
                   stdoutput = ffmpeg_stats.ReadLine()

                   If stdoutput IsNot Nothing Then 'if ffmpeg stderr is not nothing

                       'IF FFMPEG IS RETURNING STATS
                       If stdoutput.Contains("frame=") Or stdoutput.Contains("size=") Then

    so this is my code...
    but now with cmd getting standarderror with streamreader result in taking a string "Invalid Handle." this is an error from cmd stderr or there is a problem with the streamreader ?

    UPDATE 2

    I have even tried to start a clean cmd process declaring only parameters but the result is just the console with main infos.

    Microsoft Windows [Versione 6.3.9600]
    (c) 2013 Microsoft Corporation. Tutti i diritti riservati.

    H :\Project\bin\Release>

    this is the code to clarify :

                   Dim Proc As New Process

                   Proc.StartInfo.FileName = "cmd"
                   Proc.StartInfo.Arguments = params

                   'start process
                   Proc.Start()

    SO AGAIN THERE IS SOMEONE WHO CAN GUIDE ME HOW TO PIPE/REDIRECT STDOUTPUT FROM ONE PROCESS (vspipe.exe) TO THE STDIN OF ANOTHER PROCESS (ffmpeg.exe) ?