Recherche avancée

Médias (0)

Mot : - Tags -/protocoles

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (96)

  • MediaSPIP Core : La Configuration

    9 novembre 2010, par

    MediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
    Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...)

  • MediaSPIP Player : problèmes potentiels

    22 février 2011, par

    Le lecteur ne fonctionne pas sur Internet Explorer
    Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
    Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

Sur d’autres sites (9674)

  • ffmpeg segmentation filter don't works with strftime filename template

    24 juillet 2020, par Ksnadr Renderon

    I try to run ffmpeg with segment filter and timestamp filename template :

    


     ffmpeg -f v4l2 -framerate 30 -video_size 960x720 -i /dev/video0  -f segment  -segment_time 5  -reset_timestamps 1 -segment_format mp4 -strftime 1 out%Y-%m-%d_%H-%M-%S.mp4


    


    and i got error :

    


    Invalid segment filename template 'out%Y-%m-%d_%H-%M-%S.mp4'


    


    I have read a lot of posts and questions in the internet with the same arguments (after input, which is specific) and people says that this works. What wrong with my command ?

    


    UPD : add full ffmpeg log

    


    root@nanopiair:~# ffmpeg -f v4l2 -framerate 30 -video_size 960x720 -i /dev/video0  -f segment  -segment_time 5  -reset_timestamps 1 -segment_format mp4 -strftime 1 out%Y-%m-%d_%H-%M-%S.mp4
ffmpeg version git-2015-01-22-f86a076 Copyright (c) 2000-2014 the FFmpeg developers
  built on Jul 22 2020 12:02:39 with gcc 8 (Debian 8.3.0-6)
  configuration: --prefix=/usr --enable-nonfree --enable-gpl --enable-vdpau --enable-libx264 --enable-libv4l2 --enable-libfreetype --enable-libfontconfig --enable-libfribidi
  libavutil      54.  6.100 / 54.  6.100
  libavcodec     56.  0.101 / 56.  0.101
  libavformat    56.  2.100 / 56.  2.100
  libavdevice    56.  0.100 / 56.  0.100
  libavfilter     5.  0.102 /  5.  0.102
  libswscale      3.  0.100 /  3.  0.100
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  0.100 / 53.  0.100
Input #0, video4linux2,v4l2, from '/dev/video0':
  Duration: N/A, start: 2548.007454, bitrate: 248832 kb/s
    Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 960x720, 248832 kb/s, 30 fps, 30 tbr, 1000k tbn, 1000k tbc
[libx264 @ 0x201bec0] using cpu capabilities: ARMv6 NEON
[libx264 @ 0x201bec0] profile High, level 3.1
[libx264 @ 0x201bec0] 264 - core 142 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=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_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 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
[mp4 @ 0x2507bd0] Invalid segment filename template 'out%Y-%m-%d_%H-%M-%S.mp4'
Output #0, segment, to 'out%Y-%m-%d_%H-%M-%S.mp4':
  Metadata:
    encoder         : Lavf56.2.100
    Stream #0:0: Video: h264 (libx264), yuv420p, 960x720, q=-1--1, 30 fps, 30 tbn, 30 tbc
    Metadata:
      encoder         : Lavc56.0.101 libx264
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument


    


  • How to initialize the AV format context from NetworkStream rather than url ?

    23 juillet 2020, par Ahmad

    I'm using FFmpeg.AutoGen to encode catpured frames :
https://github.com/Ruslan-B/FFmpeg.AutoGen

    


    I send the encoded packets through NetworkStream to another program using TCP Client/Server application, using this code :

    


     //Send size and encoded packet
 _stream.Write(BitConverter.GetBytes(pPacket->size), 0, 4);
 using (var packetStream = new UnmanagedMemoryStream(pPacket->data, pPacket->size)) 
        packetStream.CopyTo(_stream);


    


    At the server-side, after UTF8 encoding, I receive content like this :

    


    


    gd ?r@ ?/ ?a 2&#xF;1 ?   h?C?,?  ????E???H??,? ?#??x264 - core 160 - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - http://www.videolan.org/x264.html - options: cabac=1 ref=16 deblock=1:0:0 analyse=0x3:0x133 me=umh subme=10 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=24 chroma_me=1 trellis=2 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=11 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=8 b_pyramid=2 b_adapt=2 b_bias=0 direct=3 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=60 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 ?  e??   ??S?T????M?.O ??Ea???Q&#xF;?OI??X?????[?P???42=h??M?K? ??{?@c;?t?&#xB;??Ke?>???? ?2 ??&#xB; ?\qXEvg ???U A ?X ??q/&#xB;(?? ?L ?_c ?g ?X ?c(To ?k ?Y ?-F ???R ?] ??U ?&#xA; ;|=r ????\U ???2 ?g ??> ??½ ?7 ?A&#xE; ?1W9 ???A ??&#xF; ?_L ??P ?) ?&#xF;M ????q/ ?L ??) : ??< ??8d/* ?&#xF; ?^ ??} ?B ?H ?_8C[y ???CY ?QM(J ???1<3% ?K ?F ;Q3Q ????&#xA; ??jy&#xF;J" ???y]k ?m ?^} ???S ????h ?&#xF;3 ????EP ???pw ???q ?jKp ???h ?????

    &#xA;

    &#xA;

    My problem is, how to initialize the AV format context with this data, and decode the received packet to recover the original frame ?

    &#xA;

    _pFormatContext = ffmpeg.avformat_alloc_context();&#xA;ffmpeg.avformat_open_input(&amp;pFormatContext, url, null, null).ThrowExceptionIfError();&#xA;

    &#xA;

    As problem exactly is, ffmpeg.avformat_open_input takes URL as an input, not byte[]. If _pFormatContext can be initialized using the received data, things are resolved, but HOW ?

    &#xA;

  • Unable to find a suitable output format for 'ffmpeg' I/flutter (29205) : ffmpeg : Invalid argument

    24 juillet 2020, par Abhijit Rajmane

    I'm trying to mix two audio files using flutter_ffmpeg : 0.2.10 but I get

    &#xA;

    [NULL @ 0xd77d4400] Unable to find a suitable output format for &#x27;ffmpeg&#x27;&#xA;I/flutter (29205): ffmpeg: Invalid argument&#xA;&#xA;code : &#xA;String file1= _localPath&#x2B;"/file1.m4a";&#xA;String file2= _localPath&#x2B;"/file2.mp3";&#xA;String output= _localPath&#x2B;"/abhijit.wav";&#xA;&#xA;String finalPath= "ffmpeg -i "&#x2B; file1 &#x2B;" -i "&#x2B;file2&#x2B;" -filter_complex amix=inputs=2:duration=first:dropout_transition=0 "&#x2B;output;&#xA;&#xA;console ffmpeg&#x27;s message...&#xA;I/flutter (29205):   libavutil      56. 38.100 / 56. 38.100&#xA;I/flutter (29205):   libavcodec     58. 65.102 / 58. 65.102&#xA;I/flutter (29205):   libavformat    58. 35.101 / 58. 35.101&#xA;I/flutter (29205):   libavdevice    58.  9.103 / 58.  9.103&#xA;I/flutter (29205):   libavfilter     7. 70.101 /  7. 70.101&#xA;I/flutter (29205):   libswscale      5.  6.100 /  5.  6.100&#xA;I/flutter (29205):   libswresample   3.  6.100 /  3.  6.100&#xA;I/flutter (29205): Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;/storage/emulated/0/Android/data/com.arthenica.flutter.ffmpeg.FlutterFFmpegExample/files/Download/file1.m4a&#x27;:&#xA;I/flutter (29205):   Metadata:&#xA;I/flutter (29205):     major_brand     : mp42&#xA;I/flutter (29205):     minor_version   : 1&#xA;I/flutter (29205):     compatible_brands: isommp41mp42&#xA;I/flutter (29205):     creation_time   : 2020-07-09T15:42:47.000000Z&#xA;I/flutter (29205):   Duration: 00:12:12.26, start: 0.000000, bitrate: 61 kb/s&#xA;I/flutter (29205):     Stream #0:0(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 60 kb/s (default)&#xA;I/flutter (29205):     Metadata:&#xA;I/flutter (29205):       creation_time   : 2020-07-09T15:42:47.000000Z&#xA;I/flutter (29205):       handler_name    : Core Media Audio&#xA;I/flutter (29205): Input #1, mp3, from &#x27;/storage/emulated/0/Android/data/com.arthenica.flutter.ffmpeg.FlutterFFmpegExample/files/Download/file2.mp3&#x27;:&#xA;I/flutter (29205):   Metadata:&#xA;I/flutter (29205):     artist          : SoundHelix&#xA;I/flutter (29205):     genre           : Techno&#xA;I/flutter (29205):     encoder         : Lavf58.20.100&#xA;I/flutter (29205):   Duration: 00:00:23.12, start: 0.011995, bitrate: 192 kb/s&#xA;I/flutter (29205):     Stream #1:0: Audio: mp3, 44100 Hz, stereo, fltp, 192 kb/s&#xA;I/flutter (29205):     Metadata:&#xA;I/flutter (29205):       encoder         : Lavf&#xA;I/flutter (29205): [NULL @ 0xd77d4400] Unable to find a suitable output format for &#x27;ffmpeg&#x27;&#xA;I/flutter (29205): ffmpeg: Invalid argument&#xA;I/flutter (29205): "&#xA;I/flutter (29205): New FFmpeg pipe: /data/user/0/com.arthenica.flutter.ffmpeg.FlutterFFmpegExample/cache/mf_pipe_7&#xA;I/flutter (29205): FFmpeg process exited with rc 1&#xA;

    &#xA;

    Please check command of FFmpeg and suggest me if any correction occur, Unable to find a suitable output format for 'ffmpeg' I/flutter (29205) : ffmpeg : Invalid argument&#xA;I have no idea about this error please help me

    &#xA;