Recherche avancée

Médias (91)

Autres articles (71)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, 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 (...)

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (11066)

  • What is the proper syntax to use ffmpeg to stream H.264 using RTSP over an HTTP tunnel ?

    1er décembre 2017, par NewtownGuy

    I’m trying to send an H.264 video stream at 10 fps over rtsp over an http tunnel so the video can be accessed remotely through a firewall and ideally, using only a single port for all communications. I can’t just use rtsp because it needs one open port on which the stream is requested, which is fine, but it opens two server ports that it chooses randomly for the video stream and they can’t be mapped through the router to the world — a common problem.

    I tried VLC but it won’t let me control the server ports that it opens. ffmpeg seems to have more capability selecting ports, but I can’t get the syntax right. Here’s the command I’m using, where my H.264 stream at 10 fps comes from a pipe, /home/vout1, and I tried limiting the server ports in case it won’t let me just use one port for everything :

    root@Z-1:~# ffmpeg -r 10 -i /home/vout1 -f rtsp -rtsp_transport http -min_port 25000 -max_port 25009 rtsp://localhost:8554

    Here’s the result, where I’ve placed the errors messages in bold :

    ffmpeg version 3.2.4-static http://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2017 the FFmpeg developers built with gcc 5.4.1 (Debian 5.4.1-5) 20170205 configuration : —enable-gpl
    — enable-version3 —enable-static —disable-debug —disable-ffplay —disable-indev=sndio —disable-outdev=sndio —cc=gcc-5 —enable-fontconfig —enable-frei0r —enable-gnutls —enable-gray —enable-libass —enable-libfreetype —enable-libfribidi —enable-libmp3lame —enable-libopencore-amrnb —enable-libopencore-amrwb —enable-libopus —enable-librtmp —enable-libsoxr —enable-libspeex —enable-libtheora —enable-libvidstab —enable-libvo-amrwbenc —enable-libvorbis —enable-libvpx —enable-libwebp —enable-libx264 —enable-libxvid
    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
    libswscale 4. 2.100 / 4. 2.100
    libswresample 2. 3.100 / 2. 3.100
    libpostproc 54. 1.100 / 54. 1.100
    Input #0, h264, from ’/home/vout1’ :
    Duration : N/A, bitrate : N/A
    Stream #0:0 : Video : h264 (High), yuv420p(progressive), 960x540, 25 fps, 25 tbr, 1200k tbn, 50 tbc
    [rtsp @ 0x3d68b30] Unsupported lower transport method, only UDP and TCP are supported for output.
    Could not write header for output file #0 (incorrect codec parameters ?) : Invalid argumentStream mapping :
    Stream #0:0 -> #0:0 (h264 (native) -> mpeg4 (native))
    Last message repeated 1 times

    ffmpeg sees the stream because it got the resolution right. But it thinks my stream is the default 25 fps, but I specified -r 10 to say the frame rate is only 10 fps. Second, the stream is not being created.

    What is the proper command line syntax and how can I make ffmpeg use one port for everything, even if I can only have one stream ?

    Thank you in advance for your help.

  • I cannot add subtitles to MP4 using FFmpeg

    14 janvier 2024, par Nau

    I have a video called test_video.mp4 downloaded from YouTube

    


    enter image description here

    


    This is the information of the video obtained by running ffmpeg -i test_video.mp4 :

    


    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test_video.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.19.102
  Duration: 00:00:17.62, start: 0.000000, bitrate: 265 kb/s
    Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 640x480 [SAR 1:1 DAR 4:3], 138 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
    Metadata:
      handler_name    : ISO Media file produced by Google Inc.
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      handler_name    : ISO Media file produced by Google Inc.


    


    I have also a file with subtitles called test_sub.srt :

    


    1
00:00:01,000 --> 00:00:05,000
Hello

2
00:00:10,000 --> 00:00:15,000
World


    


    When I run ffmpeg -i test_video.mp4 -i test_sub.srt -map 0:0 -map 0:1 -map 1:0 -c:v copy -c:a copy -c:s mov_text -metadata:s:s:0 language=eng test_out.mp4, soft subtitles are added :

    


    enter image description here

    


    The problem comes when I try to do the same to a bigger video called test2_video.mp4, I run ffmpeg -i test2_video.mp4 -i test_sub.srt -map 0:0 -map 0:1 -map 1:0 -c:v copy -c:a copy -c:s mov_text -metadata:s:s:0 language=eng test2_out.mp4 but subtitles are not added to test2_out.mp4, this is the information of the video when I run ffmpeg -i test2_video.mp4 :

    


    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test2_video.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf57.83.100
  Duration: 00:59:11.08, start: 0.000000, bitrate: 2131 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1997 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      handler_name    : SoundHandler


    


    Why does this happen ?, the version of FFmpeg that I'm running is 4.2.7-0ubuntu0.1

    


  • Getting ffmpeg to work with Heroku

    18 juillet 2020, par scientiffic

    I attempted to install ffmpeg for my Heroku Rails app and now my app is crashing.

    



    I added a buildpack using the following command :

    



    heroku config:add BUILDPACK_URL=https://github.com/shunjikonishi/heroku-buildpack-ffmpeg


    



    After pushing to Heroku, I get the following error according to my logs :

    



    2013-11-17T17:50:44.022351+00:00 heroku[web.1]: Starting process with command `bundle exec rails server -p 47171`
2013-11-17T17:50:46.295602+00:00 app[web.1]: bash: bundle: command not found
2013-11-17T17:50:47.589491+00:00 heroku[web.1]: Process exited with status 127
2013-11-17T17:50:47.597968+00:00 heroku[web.1]: State changed from starting to crashed
2013-11-17T17:50:48.620853+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ (...) fwd="76.118.180.235" dyno= connect= service= status=503 bytes=
2013-11-17T17:50:48.847288+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=(...) fwd="76.118.180.235" dyno= connect= service= status=503 bytes=


    



    When I run heroku run rake db:migrate, I get the error :

    



    Running `rake db:migrate` attached to terminal... up, run.9791&#xA;(in /app)&#xA;rake aborted!&#xA;no such file to load -- bundler/setup&#xA;rubygems/custom_require>:29:in `require&#x27;&#xA;rubygems/custom_require>:29:in `require&#x27;&#xA;/app/config/boot.rb:6:in `<top>&#x27;&#xA;rubygems/custom_require>:29:in `require&#x27;&#xA;rubygems/custom_require>:29:in `require&#x27;&#xA;/app/config/application.rb:1:in `<top>&#x27;&#xA;rubygems/custom_require>:29:in `require&#x27;&#xA;rubygems/custom_require>:29:in `require&#x27;&#xA;/app/Rakefile:5:in `<top>&#x27;&#xA;/usr/local/lib/ruby/1.9.1/rake.rb:2373:in `load&#x27;&#xA;/usr/local/lib/ruby/1.9.1/rake.rb:2373:in `raw_load_rakefile&#x27;&#xA;/usr/local/lib/ruby/1.9.1/rake.rb:2007:in `block in load_rakefile&#x27;&#xA;/usr/local/lib/ruby/1.9.1/rake.rb:2058:in `standard_exception_handling&#x27;&#xA;/usr/local/lib/ruby/1.9.1/rake.rb:2006:in `load_rakefile&#x27;&#xA;/usr/local/lib/ruby/1.9.1/rake.rb:1991:in `run&#x27;&#xA;/usr/local/bin/rake:31:in `<main>&#x27;&#xA;</main></top></top></top>

    &#xA;&#xA;

    When I check the version of bundler I'm using (bundle show bundler), I get :

    &#xA;&#xA;

    /Users/(...).rvm/gems/ruby-1.9.3-p448/gems/bundler-1.3.5/lib/bundler.rb:284: warning: Insecure world writable dir /usr/local in PATH, mode 040777&#xA;/Users/(...)/.rvm/gems/ruby-1.9.3-p448/gems/bundler-1.3.5&#xA;

    &#xA;&#xA;

    How can I solve this problem ?

    &#xA;