Recherche avancée

Médias (1)

Mot : - Tags -/ogg

Autres articles (30)

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

  • Possibilité de déploiement en ferme

    12 avril 2011, par

    MediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
    Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...)

  • Contribute to translation

    13 avril 2011

    You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
    To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
    MediaSPIP is currently available in French and English (...)

Sur d’autres sites (6266)

  • FFMPEG — Error when trying to concat multiple files with and without audio

    7 août 2020, par Philban

    Ok so thanks to a fellow user I have the following FFMPEG command that concats 4 videos together. Now if I use this command with 4 video files that all have audio everything works ! However, if 1 or more of the videos do not have sound I get a "matches no streams" error.

    


    Can someone spot whats wrong here please ?

    


    Video Input 1 - No Audio so adding the anullsrc
Video 2 - Has Audio
Video 3 - No Audio
Video 4 - Has Audio

    


    ffmpeg -i noSound1.mp4 -i story1.mp4 -i noSound2.mp4 -i story2.mp4 -t 0.1 -f lavfi -i anullsrc=channel_layout=stereo -filter_complex 
"[0:v]scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2,setsar=1,fps=30,format=yuv420p[v0]; 
 [1:v]scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2,setsar=1,fps=30,format=yuv420p[v1]; 
 [2:v]scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2,setsar=1,fps=30,format=yuv420p[v2]; 
 [3:v]scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2,setsar=1,fps=30,format=yuv420p[v3]; 
 [0:a]aformat=sample_rates=48000:channel_layouts=stereo[a0]; 
 [1:a]aformat=sample_rates=48000:channel_layouts=stereo[a1]; 
 [2:a]aformat=sample_rates=48000:channel_layouts=stereo[a2]; 
 [3:a]aformat=sample_rates=48000:channel_layouts=stereo[a3]; 
 [v0][a0][v1][a1][v2][a2][v3][a3]concat=n=4:v=1:a=1[v][a]" 
-map "[v]" -map "[a]" -c:v libx264 -c:a aac -movflags +faststart testOutput.mp4


    


    Here is the error :

    


    Stream specifier ':a' in filtergraph description [0:v]scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2,setsar=1,fps=30,format=yuv420p[v0];  [1:v]scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2,setsar=1,fps=30,format=yuv420p[v1];  [2:v]scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2,setsar=1,fps=30,format=yuv420p[v2];  [3:v]scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2,setsar=1,fps=30,format=yuv420p[v3];  [0:a]aformat=sample_rates=48000:channel_layouts=stereo[a0];  [1:a]aformat=sample_rates=48000:channel_layouts=stereo[a1];  [2:a]aformat=sample_rates=48000:channel_layouts=stereo[a2];  [3:a]aformat=sample_rates=48000:channel_layouts=stereo[a3];  [v0][a0][v1][a1][v2][a2][v3][a3]concat=n=4:v=1:a=1[v][a] matches no streams.


    


    Now a slightly separate question. If I have N input videos where i do not know if they have sound or not, is there a way I can have a loop that does the above without having massive amounts of command lines ?
Many thanks !

    


  • ffmpeg : concat videos with different number of streams

    3 juillet 2021, par qurban

    I'm having trouble with concatenating two videos with different number of streams. Please see the number of streams in both the videos below :

    


    video 1 :

    


      Metadata:
    creation_time   : 2021-07-02T10:23:13.000000Z
  Duration: 00:00:08.38, start: 0.000000, bitrate: 24739 kb/s
    Stream #0:0(eng): Video: mjpeg (Baseline) (jpeg / 0x6765706A), yuvj420p(pc, bt470bg/unknown/unknown), 1920x1080 [SAR 1:1 DAR 16:9], 24736 kb/s, 24 fps, 24 tbr, 2400 tbn, 2400 tbc (default)
    Metadata:
      creation_time   : 2021-07-02T10:23:13.000000Z
      handler_name    : Libquicktime Video Media Handler
      encoder         : libquicktime-1.1.1
      timecode        : 00:00:30:15
    Stream #0:1(eng): Data: none (tmcd / 0x64636D74), 0 kb/s (default)
    Metadata:
      creation_time   : 2021-07-02T10:23:13.000000Z
      handler_name    : Libquicktime Time Code Media Handler
      reel_name       : Untitled
      timecode        : 00:00:30:15


    


    Video 2 :

    


    Metadata:
    creation_time   : 2021-07-02T10:23:28.000000Z
  Duration: 00:00:08.33, start: 0.000000, bitrate: 26411 kb/s
    Stream #0:0(eng): Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz, 2 channels, s16, 1536 kb/s (default)
    Metadata:
      creation_time   : 2021-07-02T10:23:28.000000Z
      handler_name    : Libquicktime Sound Media Handler
    Stream #0:1(eng): Video: mjpeg (Baseline) (jpeg / 0x6765706A), yuvj420p(pc, bt470bg/unknown/unknown), 1920x1080 [SAR 1:1 DAR 16:9], 24872 kb/s, 24 fps, 24 tbr, 2400 tbn, 2400 tbc (default)
    Metadata:
      creation_time   : 2021-07-02T10:23:28.000000Z
      handler_name    : Libquicktime Video Media Handler
      encoder         : libquicktime-1.1.1
      timecode        : 00:00:39:00
    Stream #0:2(eng): Data: none (tmcd / 0x64636D74), 0 kb/s (default)
    Metadata:
      creation_time   : 2021-07-02T10:23:28.000000Z
      handler_name    : Libquicktime Time Code Media Handler
      reel_name       : Untitled
      timecode        : 00:00:39:00


    


    So, clearly the video 1 has two streams and video 2 has three streams. Could someone please let me know how can I concatenate them ?

    


    I have tried :
ffmpeg -y -f concat -safe 0 -i /path/to/files.txt -codec copy /path/to/output.mov

    


    But it gives the following error :

    


    [concat @ 0x12dfd00] Could not find codec parameters for stream 1 (Unknown: none): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, concat, from '/path/to/files.txt':
  Duration: N/A, start: 0.000000, bitrate: 24736 kb/s
    Stream #0:0(eng): Video: mjpeg (Baseline) (jpeg / 0x6765706A), yuvj420p(pc, bt470bg/unknown/unknown), 1920x1080 [SAR 1:1 DAR 16:9], 24736 kb/s, 24 fps, 24 tbr, 2400 tbn, 2400 tbc
    Metadata:
      creation_time   : 2021-07-02T10:23:13.000000Z
      handler_name    : Libquicktime Video Media Handler
      encoder         : libquicktime-1.1.1
      timecode        : 00:00:30:15
    Stream #0:1: Unknown: none
Output #0, mov, to '/path/to/output.mov':
  Metadata:
    encoder         : Lavf58.29.100
    Stream #0:0(eng): Video: mjpeg (Baseline) (jpeg / 0x6765706A), yuvj420p(pc, bt470bg/unknown/unknown), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 24736 kb/s, 0.04 fps, 24 tbr, 19200 tbn, 2400 tbc
    Metadata:
      creation_time   : 2021-07-02T10:23:13.000000Z
      handler_name    : Libquicktime Video Media Handler
      encoder         : libquicktime-1.1.1
      timecode        : 00:00:30:15
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[concat @ 0x12dfd00] New (null) stream 0:2 at pos:27508735 and DTS:0.223333s
frame=  601 fps=0.0 q=-1.0 Lsize=   26856kB time=00:05:33.90 bitrate= 658.9kbits/s speed=1.07e+04x    
video:26852kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.015271%


    


    In my situation, sometimes the videos have same number of streams and sometimes different number of streams (with only video stream or with both video and audio streams). Ideally, I'm looking for an ffmpeg command which works in both situations. Is it possible ?

    


  • FFMPEG segmented radio stream shows incorrect duration after a concat

    27 juillet 2021, par darbid

    On MacOS using Automator I am recording a radio stream. I thought the best way to do this so as to avoid an internet drop out was to segment it as follows.

    


    /opt/homebrew/Cellar/ffmpeg/4.4_2/bin/ffmpeg -i http://s2.viastreaming.net:7100 -t 02:10:00 -c copy -f segment -segment_time 1800 -segment_list /Volumes/BackUp/Radio/segmentlist.txt -segment_list_entry_prefix "file /Volumes/BackUp/Radio/" /Volumes/BackUp/Radio/Segments_%d.m4a


    


    I then bring it all together with the following command.

    


    /opt/homebrew/Cellar/ffmpeg/4.4_2/bin/ffmpeg -f concat -safe 0 -i /Volumes/BackUp/Radio/segmentlist.txt -c copy /Volumes/BackUp/Radio/capture.m4a


    


    Looking at the get info of the capture.m4a file it shows a duration of 2 hours 10 minutes, however, when I play it in for example iTunes it shows exactly 5:10. It also shows 5:10 for example in Emby (a local media server solution).

    


    Can someone please point me in the right direction on fixing my ffmpeg commands ?