Recherche avancée

Médias (91)

Autres articles (106)

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

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

Sur d’autres sites (14068)

  • How to copy a file open from open dialog to other location in vb.net

    4 juillet 2017, par Silvia Fonseca

    I have start a new application that converts video to image and then image to gif
    every thing is ok if i put my video in side of the same folder but if i not put my video in the same folder of the project the ffmpeg its says no such file or directory. wen i click to chose my file with openfiledialog , how can i copy or move my chose video to the correct directory in this case C :\avitogifconverter

    I have try to move the file to other location but wen i try to move the file to a different location its say i can not find the directory but the directory exist. what i have miss here this is the code

    This is my code

    Imports System.Diagnostics
    Imports System.ComponentModel
    Imports System
    Imports System.IO
    Imports System.IO.Compression
    Imports System.Windows.Forms
    Imports System.Net

    Public Class Form1
    Dim fpsx = 10
    Dim video = ""
    Dim startInfo As New ProcessStartInfo("ffmpeg.exe")
    Dim frame As Long 'individual frames
    Dim tempdir As String = "C:\avitogifconverter\" ' images temp directory
    Dim DestPath As String = "C:\avitogifconverter\"
    Public Declare Auto Function FindWindowNullClassName Lib "user32.dll" Alias "FindWindow" (ByVal lpClassname As Integer, ByVal lpWindownName As String) As Integer
    Dim Counter As Integer = 0

    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
       My.Computer.FileSystem.CreateDirectory(tempdir)
       TextBox1.Text = "exp:-->video.avi or webm or flv"
       TextBox1.Clear()
       TextBox2.Text = fpsx


    End Sub


    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
       fpsx = TextBox2.Text
       TextBox2.Text = fpsx

       Dim p As Process = Process.Start("cmd", "/k ffmpeg.exe -i " + TextBox1.Text + " -framerate 5/1 -filter:v fps=" + TextBox2.Text + " C:\avitogifconverter\out%02d.jpg")
       p.WaitForExit()

       If p.HasExited Then
           MsgBox("The Extraction Are Finish...")
       End If

    End Sub

    Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick

    End Sub

    Private Sub Button2_Click(sender As Object, e As EventArgs)

    End Sub

    Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click


       If (OpenFileDialog1.ShowDialog = Windows.Forms.DialogResult.OK) Then
           'TextBox1.Text = OpenFileDialog1.FileName
           'TextBox1.Text = System.IO.Path.GetFileName(OpenFileDialog1.FileName)
           TextBox1.Text = System.IO.Path.GetDirectoryName(OpenFileDialog1.FileName)
           Dim newdialog As New OpenFileDialog()
           If newdialog.ShowDialog() = DialogResult.OK Then
               System.IO.File.Copy(newdialog.FileName, tempdir)
               MessageBox.Show(System.IO.Path.GetDirectoryName(newdialog.FileName) & "\" & System.IO.Path.GetFileName(newdialog.FileName))
           End If
       End If
       If TextBox1.Text = Nothing Then
           Return
       End If
       If TextBox1.Text <> Nothing Then
           'My.Computer.FileSystem.CopyFile(TextBox1.Text, DestPath)
       End If

    End Sub

    Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click
       Dim args As String 'declare args
       args = " -i C:\avitogifconverter\out%02d.jpg -r 10 C:\avitogifconverter\out.gif "
       'args = " -i C:\avitogifconverter\out%02d.jpg -c:v libx264 -r 30 -pix_fmt yuv420p C:\avitogifconverter\out.mp4 "
       Dim proc As New Process
       Dim proci As New ProcessStartInfo
       proci.FileName = My.Application.Info.DirectoryPath & "\ffmpeg.exe"
       proci.Arguments = args
       proci.WindowStyle = ProcessWindowStyle.Hidden
       proci.CreateNoWindow = True
       proci.UseShellExecute = False
       proc.StartInfo = proci
       proc.Start()
       Do Until proc.HasExited = True
           Me.Text = "Saving"
       Loop
       Me.Text = "your video done"

       MsgBox("Done")
       Dim directoryName As String = "C:\avitogifconverter\"
       For Each deleteFile In Directory.GetFiles(directoryName, "*.jpg", SearchOption.TopDirectoryOnly)
           File.Delete(deleteFile)
       Next

       'IO.Directory.Delete(tempdir, True)
    End Sub

    Private Sub Button5_Click(sender As Object, e As EventArgs) Handles Button5.Click
       Form2.Show()

    End Sub
    End Class
  • Using Node.js module fluent-ffmpeg to convert video but my files end up corrupt

    28 juin 2017, par El Guapo

    i am writing a node based media encoding tool and have found a few good node packages that will help me to do this, but the output files are either totally corrupt or it only encodes half the video.

    The main node package i am using is fluent-ffmpeg, and i am trying it with the following code :

    var ffmpeg = require('fluent-ffmpeg');

    var proc = new ffmpeg({ source: 'uploads/robocop-tlr1_h480p.mov', nolog: false})
     .withVideoCodec('libx264')
     .withVideoBitrate(800)
     .withAudioCodec('libvo_aacenc')
     .withAudioBitrate('128k')
     .withAudioChannels(2)
     .toFormat('mp4')
     .saveToFile('output/robocop.mp4',
       function(retcode, error){
           console.log('file has been converted succesfully');
    });

    There is not a problem with the source video as i encoded it just fine using FFmpeg normally with the following comand line string (i run it from a batch file) :

    "c:\ffmpeg\bin\ffmpeg.exe" -i %1 -acodec libvo_aacenc -b:a 128k -ac 2 -vcodec libx264 -b:v 800k -f mp4 "../output/robocop2.mp4"

    Any ideas what i am doing wrong here ?

  • working ffmpeg command fails when using in nginx with rtmp module

    7 juin 2017, par Rafael Linux User

    I have a tested code I did in a "bash" file. It works perfect on shell. I change only params to get it to work with nginx rtmp module, but ffmpeg says always and understandable error. This is the code :

    exec_push ffmpeg -re -y -i rtmp://localhost:1935/live/$name  \
                               -c:v libx264 -c:a aac  \
                               -g 24 -keyint_min 24   -preset veryfast -tune zerolatency -movflags +faststart -vsync passthrough  \
                               -filter_complex '[0:v]format=pix_fmts=yuv420p,split=3[in1][in2][in3];[in1]scale=320:-2[320x];[in2]scale=640:-2[HQ640x];[in3]scale=1280:-2[HD1280x];[0:a]aresample=44100[audio]'  \
                               -map '[320x]'       -profile:v baseline -level 3.0 -crf 31 -maxrate 170k -bufsize 170k      -f mp4 rtmp://localhost:1935/rtmp_hls/$name_320x  \
                               -map '[HQ640x]'     -profile:v baseline -level 3.1 -crf 25 -maxrate 1000k -bufsize 1000k    -f mp4 rtmp://localhost:1935/rtmp_hls/$name_HQ640x  \
                               -map '[HD1280x]'    -profile:v main -level 3.1 -crf 19 -maxrate 4000k -bufsize 4000k        -f mp4 rtmp://localhost:1935/rtmp_hls/$name_HD1280x  \
                               -map '[audio]'      -b 128k                                                                 -f mp4 rtmp://localhost:1935/rtmp_hls/$name_audio 2>>/var/www/html/ffmpeg-live-output-$name.log;

    And this is the error launched by mmpeg

    ffmpeg version 3.2.4-1~bpo8+1 Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 4.9.2 (Debian 4.9.2-10)
     configuration: --prefix=/usr --extra-version='1~bpo8+1' --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --disable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
     libavutil      55. 34.101 / 55. 34.101
     libavcodec     57. 64.101 / 57. 64.101
     libavformat    57. 56.101 / 57. 56.101
     libavdevice    57.  1.100 / 57.  1.100
     libavfilter     6. 65.100 /  6. 65.100
     libavresample   3.  1.  0 /  3.  1.  0
     libswscale      4.  2.100 /  4.  2.100
     libswresample   2.  3.100 /  2.  3.100
     libpostproc    54.  1.100 / 54.  1.100
    [flv @ 0x55e430547740] video stream discovered after head already parsed
    [flv @ 0x55e430547740] audio stream discovered after head already parsed
    Input #0, flv, from 'rtmp://localhost:1935/live/directo':
     Metadata:
       Server          : NGINX RTMP (github.com/sergey-dryabzhinsky/nginx-rtmp-module)
       displayWidth    : 1280
       displayHeight   : 720
       fps             : 24
       profile         :
       level           :
     Duration: 00:00:00.00, start: 26.023000, bitrate: N/A
       Stream #0:0: Video: h264 (Constrained Baseline), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], 24.42 fps, 24 tbr, 1k tbn, 48 tbc
       Stream #0:1: Audio: aac (LC), 44100 Hz, mono, fltp
    [NULL @ 0x55e4305e0b40] Unable to find a suitable output format for '
    '

    : Invalid argument

    Does anyone could help me ?

    Thank you