Recherche avancée

Médias (1)

Mot : - Tags -/belgique

Autres articles (11)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

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

  • Monitoring de fermes de MediaSPIP (et de SPIP tant qu’à faire)

    31 mai 2013, par

    Lorsque l’on gère plusieurs (voir plusieurs dizaines) de MediaSPIP sur la même installation, il peut être très pratique d’obtenir d’un coup d’oeil certaines informations.
    Cet article a pour but de documenter les scripts de monitoring Munin développés avec l’aide d’Infini.
    Ces scripts sont installés automatiquement par le script d’installation automatique si une installation de munin est détectée.
    Description des scripts
    Trois scripts Munin ont été développés :
    1. mediaspip_medias
    Un script de (...)

Sur d’autres sites (3028)

  • ffmpeg : Using tee with segmenter

    17 juillet 2024, par Lev

    I'm trying to use a tee to output my stream into 1min segments and into a file at the same time. Here's my command :

    



    ffmpeg -i "rtsp://${cameraIp}:554/axis-media/media.amp?videocodec=h264&resolution=1280x720&fps=15" -c copy -map 0 \
-f tee "[f=ssegment:segment_time=60:segment_format=mp4:reset_timestamps=1:r=15] ${rootPath}/${storeId}-${location}-%03d.mp4 \
| /tmp/${cameraIp}.mkv"


    



    Individually (without tee) both outputs work fine. So I can either output into segmented files or into a non-segmented file. But with the tee I get this error :

    



    


    [stream_segment,ssegment @ 0x217ece0] Failed to open segment '
 /etc/cida/diagnostics/vid/780801-99-000.mp4' [tee @ 0x217d820] Slave
 '[f=ssegment:segment_time=60:segment_format=mp4:reset_timestamps=1:r=15]
 /etc/cida/diagnostics/vid/780801-99-%03d.mp4' : error writing header :
 No such file or directory

    


    



    See full command output below. Any suggestions ?

    



    


    ffmpeg version 3.3 Copyright (c) 2000-2017 the FFmpeg developers
    
 built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1 14.04.3) configuration :
 —extra-libs=-ldl —prefix=/opt/ffmpeg —mandir=/usr/share/man —enable-avresample —disable-debug —enable-nonfree —enable-gpl —enable-version3 —enable-libopencore-amrnb —enable-libopencore-amrwb —disable-decoder=amrnb —disable-decoder=amrwb —enable-libpulse —enable-libfreetype —enable-gnutls —enable-libx264 —enable-libx265 —enable-libfdk-aac —enable-libvorbis —enable-libmp3lame —enable-libopus —enable-libvpx —enable-libspeex —enable-libass —enable-avisynth —enable-libsoxr —enable-libxvid —enable-libvidstab —enable-libwavpack —enable-nvenc libavutil 55. 58.100 / 55. 58.100 libavcodec 57. 89.100 / 57. 89.100 libavformat 57. 71.100 / 57. 71.100 libavdevice 57. 6.100 / 57. 6.100 libavfilter 6. 82.100 / 6. 82.100 libavresample 3. 5. 0 / 
 3. 5. 0 libswscale 4. 6.100 / 4. 6.100 libswresample 2. 7.100 / 2. 7.100 libpostproc 54. 5.100 / 54. 5.100 Input #0, rtsp, from 'rtsp ://10.83.245.7:554/axis-media/media.amp ?videocodec=h264&resolution=1280x720&fps=15' :
 Metadata :
 title : Session streamed with GStreamer
 comment : rtsp-server Duration : N/A, start : 0.080011, bitrate : N/A
 Stream #0:0 : Video : h264 (Main), yuvj420p(pc, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], 25 tbr, 90k tbn, 180k tbc
 [stream_segment,ssegment @ 0x217ece0] Failed to open segment '
 /etc/cida/diagnostics/vid/780801-99-000.mp4' [tee @ 0x217d820] Slave
 '[f=ssegment:segment_time=60:segment_format=mp4:reset_timestamps=1:r=15]
 /etc/cida/diagnostics/vid/780801-99-%03d.mp4' : error writing header :
 No such file or directory [tee @ 0x217d820] Slave muxer #0 failed,
 aborting. Could not write header for output file #0 (incorrect codec
 parameters ?) : No such file or directory Stream mapping : Stream #0:0
 -> #0:0 (copy)
 Last message repeated 1 times

    


    


  • Slideshow video created by ffmpeg with scale+pad+vstack filters only contains one image

    28 juin 2017, par user3011750
    $ ls -1 *.jpg
    1.jpg # could be any size, here is 210×315
    2.jpg # could be any size, here is 480x480
    3.jpg # could be any size, here is 480x480

    $ ls -1 *.png
    bg.png # 480x160

    $ ffmpeg -y -r 0.5 -pattern_type glob -i '*.jpg' -i bg.png -filter_complex 'scale=iw*min(480/iw\,480/ih):ih*min(480/iw\,480/ih),pad=480:480:(480-iw*min(480/iw\,480/ih))/2:(480-ih*min(480/iw\,480/ih))/2,vstack' -vsync vfr -c:v libx264 -pix_fmt yuv420p out.mp4

    ...

    $ ffprobe out.mp4
    ffprobe version 3.3.2 Copyright (c) 2007-2017 the FFmpeg developers
     built with Apple LLVM version 8.1.0 (clang-802.0.42)
     configuration: --prefix=/usr/local/Cellar/ffmpeg/3.3.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libfreetype --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --disable-lzma --enable-vda
     libavutil      55. 58.100 / 55. 58.100
     libavcodec     57. 89.100 / 57. 89.100
     libavformat    57. 71.100 / 57. 71.100
     libavdevice    57.  6.100 / 57.  6.100
     libavfilter     6. 82.100 /  6. 82.100
     libavresample   3.  5.  0 /  3.  5.  0
     libswscale      4.  6.100 /  4.  6.100
     libswresample   2.  7.100 /  2.  7.100
     libpostproc    54.  5.100 / 54.  5.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'out.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf57.71.100
     Duration: 00:00:02.00, start: 0.000000, bitrate: 152 kb/s
       Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 480x640 [SAR 1:1 DAR 3:4], 149 kb/s, 0.50 fps, 0.50 tbr, 16384 tbn, 1 tbc (default)
       Metadata:
         handler_name    : VideoHandler

    The video size 480x640 is correct, but it only lasts 2 seconds, only contains the first image 1.jpg, please tell me how I can solve this problem ?

    -------

  • ffmpeg saves only first frame

    2 juin 2021, par DuDa

    I generated rotating pictures in Python and now I want to create an animation from it using ffmpeg. But the generated video includes only the first frame (viewed in VLC) and is way to small (half the size of one png) for all 36 pictures. What am I doing wrong ? Thank you.

    


    command in shell : ffmpeg -framerate 5 -i "./mov/movie%03d.png" -y "movie.mp4"

    


    Files in Folder mov :

    


      

    • movie000.png
    • 


    • movie010.png
    • 


    • ..
    • 


    • movie350.png
    • 


    


    ffmpeg version ffmpeg-20170620-ae6f6d4-win64-static

    


    output

    


    ffmpeg version N-86537-gae6f6d4 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 7.1.0 (GCC)
  configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --e
nable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --
enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv
--enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-li
bfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug -
-enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enabl
e-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-li
bsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolam
e --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx
 --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable
-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-zlib
  libavutil      55. 66.100 / 55. 66.100
  libavcodec     57. 99.100 / 57. 99.100
  libavformat    57. 73.100 / 57. 73.100
  libavdevice    57.  7.100 / 57.  7.100
  libavfilter     6. 94.100 /  6. 94.100
  libswscale      4.  7.101 /  4.  7.101
  libswresample   2.  8.100 /  2.  8.100
  libpostproc    54.  6.100 / 54.  6.100
Input #0, image2, from './mov/movie%03d.png':
  Duration: 00:00:00.20, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: png, rgba(pc), 1152x864 [SAR 2834:2834 DAR 4:3], 5 tbr,
5 tbn, 5 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (png (native) -> h264 (libx264))
Press [q] to stop, [?] for help
No pixel format specified, yuv444p for H.264 encoding chosen.
Use -pix_fmt yuv420p for compatibility with outdated media players.
[libx264 @ 00000000003ec140] using SAR=1/1
[libx264 @ 00000000003ec140] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
AVX FMA3 BMI2 AVX2
[libx264 @ 00000000003ec140] profile High 4:4:4 Predictive, level 3.2, 4:4:4 8-b
it
[libx264 @ 00000000003ec140] 264 - core 150 r2833 df79067 - H.264/MPEG-4 AVC cod
ec - Copyleft 2003-2017 - http://www.videolan.org/x264.html - options: cabac=1 r
ef=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed
_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pski
p=1 chroma_qp_offset=4 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decim
ate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_a
dapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=5
scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60
qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'movie.mp4':
  Metadata:
    encoder         : Lavf57.73.100
    Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv444p, 1152x8
64 [SAR 1:1 DAR 4:3], q=-1--1, 5 fps, 10240 tbn, 5 tbc
    Metadata:
      encoder         : Lavc57.99.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
frame=    1 fps=0.0 q=23.0 Lsize=      19kB time=00:00:00.00 bitrate=1581142.9kb
its/s speed=0.00138x
video:18kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing ov
erhead: 4.403838%
[libx264 @ 00000000003ec140] frame I:1     Avg QP:17.26  size: 17865
[libx264 @ 00000000003ec140] mb I  I16..4: 29.6% 56.0% 14.5%
[libx264 @ 00000000003ec140] 8x8 transform intra:56.0%
[libx264 @ 00000000003ec140] coded y,u,v intra: 11.5% 2.3% 6.3%
[libx264 @ 00000000003ec140] i16 v,h,dc,p: 77% 22%  1%  0%
[libx264 @ 00000000003ec140] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33%  3% 62%  0%  0%
 0%  0%  0%  0%
[libx264 @ 00000000003ec140] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 53% 25% 12%  1%  1%
 2%  1%  2%  1%
[libx264 @ 00000000003ec140] kb/s:714.60