Recherche avancée

Médias (91)

Autres articles (35)

  • L’espace de configuration de MediaSPIP

    29 novembre 2010, par

    L’espace de configuration de MediaSPIP est réservé aux administrateurs. Un lien de menu "administrer" est généralement affiché en haut de la page [1].
    Il permet de configurer finement votre site.
    La navigation de cet espace de configuration est divisé en trois parties : la configuration générale du site qui permet notamment de modifier : les informations principales concernant le site (...)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

Sur d’autres sites (5736)

  • FFMPEG screen grab of windows desktop and then exporting to multiple bandwidth ts and m3u8 files with master playlist

    26 juillet 2018, par Tank Daniels

    Forgive me as this is my first post as I’m really stuck and need help. My boss needs me to screen capture a windows desktop as input and be able to output at least four outputs dependent on bandwidth. Each output "Stream"(im guessing is the right terminology) must have its own .ts files and .m3u8 files, along with a master m3u8 playlist that lists the four individual m3u8 files.

    Every attempt ive made only produces a master m3u8 file with a single listing of an output stream. (Code enclosed below).

    The end result I need to produce is to have a master m3u8 that can go into a webpage that can stream mp4 hls of the users screen grab and that video output will be changed dependant upon the users bandwidth available. If you can please help me with any advice I will be eternally grateful as I need to impress my new boss in my new job, and I’ve been working on this for ages now with no joy.

    Example :
    This is what I need it to look like.

    What the M3U8 needs to look like

    Example :
    This is what it actually looks like now.

    What the current M3U8 actually looks like when i run my code

    Below is the code I am currently using. Please help.

    ffmpeg -f dshow -i video="UScreenCapture":audio="virtual-audio-capturer" -master_pl_name master.m3u8 -master_pl_publish_rate 30 -tune fastdecode -vf scale=w=640:h=360:force_original_aspect_ratio=decrease -c:a aac -ar 48000 -c:v h264 -crf 20 -sc_threshold 0 -g 48 -keyint_min 48 -hls_time 4 -hls_playlist_type vod  -b:v 800k -maxrate 856k -bufsize 1200k -b:a 96k -hls_segment_filename 360p_%03d.ts 360p.m3u8 -master_pl_name master.m3u8 -master_pl_publish_rate 30 -vf scale=w=842:h=480:force_original_aspect_ratio=decrease -c:a aac -ar 48000 -c:v h264 -crf 20 -sc_threshold 0 -g 48 -keyint_min 48 -hls_time 4 -hls_playlist_type vod -b:v 1400k -maxrate 1498k -bufsize 2100k -b:a 128k -hls_segment_filename 480p_%03d.ts 480p.m3u8 -master_pl_name master.m3u8 -master_pl_publish_rate 30 -vf scale=w=1280:h=720:force_original_aspect_ratio=decrease -c:a aac -ar 48000 -c:v h264 -crf 20 -sc_threshold 0 -g 48 -keyint_min 48 -hls_time 4 -hls_playlist_type vod -b:v 2800k -maxrate 2996k -bufsize 4200k -b:a 128k -hls_segment_filename 720p_%03d.ts 720p.m3u8 -master_pl_name master.m3u8 -master_pl_publish_rate 30 -vf scale=w=1920:h=1080:force_original_aspect_ratio=decrease -c:a aac -ar 48000 -c:v h264 -crf 20 -sc_threshold 0 -g 48 -keyint_min 48 -hls_time 4 -hls_playlist_type vod -b:v 5000k -maxrate 5350k -bufsize 7500k -b:a 192k -hls_segment_filename 1080p_%03d.ts 1080p.m3u8

    Many Thanks for looking. Chris.

  • Revision 663916cea7 : SVC improvements These changes were originally made in the Stratacaster team-re

    12 octobre 2013, par Ivan Maltz

    Changed Paths :
     Modify /libs.mk


     Add /test/svc_test.cc


     Modify /test/test.mk


     Modify /vp9/common/vp9_onyx.h


     Modify /vp9/encoder/vp9_onyx_if.c


     Modify /vp9/vp9_cx_iface.c


     Modify /vp9_spatial_scalable_encoder.c


     Modify /vpx/exports_enc


     Add /vpx/src/svc_encodeframe.c


     Add /vpx/svc_context.h


     Modify /vpx/vp8cx.h


     Modify /vpx/vpx_codec.mk



    SVC improvements

    These changes were originally made in the Stratacaster team-review repository

    commit e114bffcd82ad74c3696ec58e13c0ac895d6c82d
    Author : Charles 'Buck' Krasic <ckrasic@google.com>
    Date : Mon Oct 14 16:52:13 2013 -0700

    Make dummy frame handling a bit more explicit, fixing bug
    with single layer encodes.

    Squashed commit of the following :

    commit 1ebbfd976c0fadb02bf1ea562a2d0e3f0206daad
    Merge : ac468dd 54e88b7
    Author : Ivan Maltz <ivanmaltz@google.com>
    Date : Fri Oct 11 17:29:58 2013 -0700

    Move SVC code from vp9_spatial_scalable_encoder to libvpx module accessible
    from ffmpeg

    commit 54e88b78b160becc9569fc3c6cb6b0a8c95dc357
    Author : Ivan Maltz <ivanmaltz@google.com>
    Date : Tue Oct 8 09:08:40 2013 -0700

    common svc encoding code for sample app and ffmpeg

    added svc_encodeframe.c, svc_context.h, svc_test.cc

    vp9_spatial_scalable_encoder uses vpx_svc_encode

    commit 5616ec8e2e3d3e8d277333d8a9242f6c70151162
    Merge : 4528014 e29137d
    Author : Ivan Maltz <ivanmaltz@google.com>
    Date : Tue Oct 8 08:47:58 2013 -0700

    Merge branch 'master' into stratacaster

    commit 45280148450b1f3d61e390df8aadedf85cd5bce1
    Merge : bb2b675 1ab60f7
    Author : Sujeevan Rajayogam <sujee@google.com>
    Date : Fri Oct 4 10:22:31 2013 -0700

    Merge branch 'master' into stratacaster

    commit bb2b675e595dc9bfc8551e963edf56800c3aea61
    Author : Sujeevan Rajayogam <sujee@google.com>
    Date : Wed Oct 2 12:37:26 2013 -0700

    Track individual frame sizes and psnrs instead of averages.

    commit c6d303b714795c81e7ceb4173967115c9f8ff5b7
    Merge : fa87df9 3583087
    Author : Sujeevan Rajayogam <sujee@google.com>
    Date : Fri Sep 27 10:05:35 2013 -0700

    Merge branch 'master' into stratacaster

    commit fa87df94fba923d9f7aeb8ae20c6e15f777e00b5
    Merge : bf22d71 3c465af
    Author : Sujeevan Rajayogam <sujee@google.com>
    Date : Thu Sep 26 16:10:31 2013 -0700

    Merge branch 'master' into stratacaster

    commit bf22d7144895a82e0c348ac177c8a261b9e2b88e
    Author : Sujeevan Rajayogam <sujee@google.com>
    Date : Thu Sep 26 11:10:34 2013 -0700

    Parameterized quantizer, 16th scalefactors, more logging, enabled single
    layer encodes to generate baseline.

    commit ceffd7e6025b765f9886b5ea0f324248aa37e327
    Author : Sujeevan Rajayogam <sujee@google.com>
    Date : Thu Sep 19 10:04:49 2013 -0700

    - Include new mode for 3 layer I frame with 5 total layers.
    - Refactor svc api.

    Change-Id : Ie4d775e21e006fa597d884c59488dc999478e9b5

  • Error decoding stream invalid data found

    10 avril 2018, par bluemoon odd

    I have a software that first extract a video to jpg photo
    than we can insert any text or image auto in all jpg files
    extracted before than i try to rebuild the video with that images but
    its seems my frames extracted after to insert the text on it and re save the each file again with string option so i will have the output 0 , 1, 2 , 3 , etc.
    But wen i try to rebuild the video its look like the photo are not well encoded, how can i solve this error
    And Here is the image of the ffmpeg error
    ffmpeg error
    this is the code i use to rebuild the video with ffmpeg

    Public Class Form3
    Dim frame As Long 'individual frames
    Dim tempdir As String = "C:\mediapubisert\" ' images temp directory

    Private Sub SaveFileDialog1_FileOk(sender As Object, e As System.ComponentModel.CancelEventArgs) Handles SaveFileDialog1.FileOk
       Dim args As String 'declare args
       args = "-r 1/.1 -i " &amp; tempdir &amp; "\%01d.jpg -c:v libx264 -r 30 -pix_fmt yuv420p " &amp; Chr(34) &amp; SaveFileDialog1.FileName &amp; Chr(34) 'set ffmpeg arguments
       Dim proc As New Process
       Dim proci As New ProcessStartInfo
       proci.FileName = My.Application.Info.DirectoryPath &amp; "\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 = "Media Pub Insert"

       MsgBox("Done")

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

    Private Sub renameFilesInFolder()
       Dim sourcePath As String = "C:\mediapubisert\"
       Dim searchPattern As String = "*.jpg"
       Dim i As Integer = 0
       For Each fileName As String In Directory.GetFiles(sourcePath, searchPattern, SearchOption.AllDirectories)
           File.Move(Path.Combine(sourcePath, fileName), Path.Combine(sourcePath, "" &amp; i &amp; ".JPG"))
           i += 1
       Next
    End Sub

    Private Sub Form3_Load(sender As Object, e As EventArgs) Handles MyBase.Load
       If (Not System.IO.Directory.Exists(tempdir)) Then
           System.IO.Directory.CreateDirectory(tempdir)
       End If
       renameFilesInFolder()
    End Sub

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

    End Sub

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
       SaveFileDialog1.ShowDialog()
    End Sub


    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
       renameFilesInFolder()
    End Sub

    End Class