Recherche avancée

Médias (91)

Autres articles (78)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

Sur d’autres sites (8201)

  • Relocated ffmpeg example files fail

    17 novembre 2020, par CT99

    I'm trying to use some ffmpeg calls in my own program, the basis of which I'm editing the ffmpeg example program remuxing.c. I'm trying to use some of the ffmpeg calls in my own program.

    


    I'm running Ubuntu 18.04.5 on a generic Linux box.

    


    To help better understand what I've done and where I've having problems, I'll out line what I've done and what is not working.

    


    Steps I've successfully completed :

    


    — I've have downloaded the ffmpeg code base and example files

    


    — Next I did a './configure', then 'make', then 'make install' and 'make examples' to make the libraries and examples

    


    — I tested some of the examples and they ran fine from the default install directory

    


    — specifically, when I test remuxing.c in the original ffmpeg downloaded dir — compile and run — it works fine

    


        ./remuxing /data/iphone-h264.m4v /tmp/test15.ts


    


    — this creates a .ts output file that I can test and is readable by vlc

    


    Having ensured that I correctly compiled and tested ffmpeg source and its example files, I next move to working my own program based on the example remuxing.c

    


    — I copied the original remuxing.c into my own test directory structure

    


    — I make it by running this to link in the required ffmpeg libraries (I think)

    


        cc -DLINUX -o remuxing remuxing.c -I ../ffmpeg/libavformat -lavformat -I ../ffmpeg/libavcodec -lavcodec -I ../ffmpeg/libswresample -lswresample -I ../ffmpeg/libavutil -lavutil -lpthread -lm


    


    — however when I try to generate a test16.ts file (to know it is different from the one I created before) I get an error :

    


        ./remuxing /data/iphone-h264.m4v /tmp/test16.ts
    Could not open input file '/data/iphone-h264.m4v’ Error occurred: Invalid data found when processing input


    


    This is the exact same video file the same program converted from the installed doc/examples directory.

    


    QUESTION — why is this happening — what am I doing wrong ?

    


    I guess I may not be properly linking in the ffmpeg libraries ?? — but I'm not sure what I'm doing wrong.

    


    I can also post my makefiles if that would help.

    


    Would be most appreciative for any help — thank you in advance.

    


  • cannot hear audio after saving RTSP stream as ts or avi or mp4 files using ffmpeg command

    28 mai 2022, par ewang

    I am still new to ffmpeg and trying to save RTSP stream from the IP camera (Meraki MV2) via RTSP link (rtsp ://192.168.0.80:9000/live) to local laptop (Windows 10) as ts file, or avi or mp4 files, but none of them can hear sound. In Meraki MV2 camera dashboard audio is enabled
meraki dashboard audio enabled screenshot

    


    And below is the ffmpeg command i used :

    


    ffmpeg -use_wallclock_as_timestamps 1 -rtsp_transport tcp -i rtsp://192.168.0.80:9000/live -f mpegts -b 400k -r 25 -vcodec libx264 -s 640x480 -aspect 4:3 -bufsize 6000k -acodec aac -ab 56k -ac 2 -ar 22050 -bf 0 -level 30 -y record_a_v.ts


    


    In below part of the result log, noticed Steam mapping has a #0:1 -> #0:0 and #0:0 -> #0:1, is it supposed to be crossed or not really ?

    


    Input #0, rtsp, from 'rtsp://192.168.0.80:9000/live':
  Metadata:
    title           : www rtsp live
    comment         : LIVE555 Streaming Media v2017.01.26
  Duration: N/A, start: 1653723857.755958, bitrate: N/A
  Stream #0:0: Audio: aac (LC), 48000 Hz, mono, fltp
  Stream #0:1: Video: h264 (High), yuvj420p(pc, smpte170m, progressive), 1920x1080, 90k tbr, 90k tbn
Stream mapping:
  Stream #0:1 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:0 -> #0:1 (aac (native) -> aac (native))


    


    Here are the last section of the result log :

    


        Last message repeated 4 times
Error while decoding stream #0:0: Invalid argument:00:09.44 bitrate=  79.3kbits/s dup=0 drop=2 speed=1.38x
    Last message repeated 1 times
[aac @ 0000027bec8ee780] Queue input is backward in time
Error while decoding stream #0:0: Invalid argument
[mpegts @ 0000027bee8cfac0] Non-monotonous DTS in output stream 0:1; previous: 868241, current: 867392; changing to 868242. This may result in incorrect timestamps in the output file.
Error while decoding stream #0:0: Invalid argument
    Last message repeated 12 times
Error while decoding stream #0:0: Invalid argument:00:09.90 bitrate= 111.7kbits/s dup=0 drop=2 speed=1.35x
    Last message repeated 6 times
Error while decoding stream #0:0: Invalid argument:00:10.51 bitrate= 121.5kbits/s dup=0 drop=2 speed=1.34x
    Last message repeated 19 times
Error while decoding stream #0:0: Invalid argument:00:11.01 bitrate= 137.9kbits/s dup=0 drop=2 speed=1.31x
    Last message repeated 10 times
Error while decoding stream #0:0: Invalid argument:00:11.51 bitrate= 145.2kbits/s dup=0 drop=2 speed=1.29x
    Last message repeated 9 times
Error while decoding stream #0:0: Invalid argument:00:12.12 bitrate= 154.5kbits/s dup=0 drop=2 speed=1.29x
    Last message repeated 21 times
Error while decoding stream #0:0: Invalid argument:00:12.50 bitrate= 167.7kbits/s dup=0 drop=2 speed=1.26x
    Last message repeated 8 times
Error while decoding stream #0:0: Invalid argument:00:13.08 bitrate= 160.2kbits/s dup=0 drop=2 speed=1.25x
    Last message repeated 11 times
Error while decoding stream #0:0: Invalid argument:00:13.61 bitrate= 154.0kbits/s dup=0 drop=2 speed=1.24x
    Last message repeated 8 times
Error while decoding stream #0:0: Invalid argument:00:14.11 bitrate= 148.5kbits/s dup=0 drop=2 speed=1.23x
    Last message repeated 16 times
Error while decoding stream #0:0: Invalid argument:00:14.61 bitrate= 143.5kbits/s dup=0 drop=2 speed=1.22x
    Last message repeated 10 times
Error while decoding stream #0:0: Invalid argument:00:15.14 bitrate= 138.4kbits/s dup=0 drop=2 speed=1.21x
    Last message repeated 18 times
Error while decoding stream #0:0: Invalid argument:00:15.62 bitrate= 134.2kbits/s dup=0 drop=2 speed= 1.2x
    Last message repeated 6 times
Error while decoding stream #0:0: Invalid argument:00:16.14 bitrate= 129.9kbits/s dup=0 drop=2 speed=1.19x
    Last message repeated 15 times
Error while decoding stream #0:0: Invalid argument:00:16.64 bitrate= 251.9kbits/s dup=0 drop=2 speed=1.19x
    Last message repeated 9 times
Error while decoding stream #0:0: Invalid argument:00:17.11 bitrate= 245.1kbits/s dup=0 drop=2 speed=1.18x
    Last message repeated 15 times
frame=  125 fps=8.3 q=27.0 size=     512kB time=00:00:17.66 bitrate= 237.5kbits/s dup=0 drop=2 speed=1.17x

[q] command received. Exiting.

frame=  125 fps=8.2 q=-1.0 Lsize=     922kB time=00:00:17.75 bitrate= 425.1kbits/s dup=0 drop=2 speed=1.16x
video:843kB audio:2kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 9.064729%
[libx264 @ 0000027bee8cd640] frame I:1     Avg QP:17.27  size: 54983
[libx264 @ 0000027bee8cd640] frame P:124   Avg QP:22.65  size:  6516
[libx264 @ 0000027bee8cd640] mb I  I16..4:  4.2% 60.5% 35.2%
[libx264 @ 0000027bee8cd640] mb P  I16..4:  0.1%  2.4%  0.4%  P16..4: 39.2% 11.9% 10.2%  0.0%  0.0%    skip:35.9%
[libx264 @ 0000027bee8cd640] 8x8 transform intra:77.2% inter:55.0%
[libx264 @ 0000027bee8cd640] coded y,uvDC,uvAC intra: 93.1% 91.5% 65.1% inter: 26.5% 37.1% 6.2%
[libx264 @ 0000027bee8cd640] i16 v,h,dc,p:  8%  2%  8% 81%
[libx264 @ 0000027bee8cd640] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11%  9% 24%  5% 16% 12% 12%  6%  6%
[libx264 @ 0000027bee8cd640] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25%  9% 16%  6% 11% 14%  6%  6%  6%
[libx264 @ 0000027bee8cd640] i8c dc,h,v,p: 64% 12% 20%  5%
[libx264 @ 0000027bee8cd640] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0000027bee8cd640] ref P L0: 77.9% 10.9%  7.7%  3.5%
[libx264 @ 0000027bee8cd640] kb/s:435.85
[aac @ 0000027bec8ee780] Qavg: 65536.000


    


    Can anyone help checking where went wrong ? Thanks

    


  • FFMPEG Failed to Connect to UDP Stream in Kubernetes Pod [closed]

    22 mars, par Nimrod

    I have a pod inside my kubernetes (openshift) cluster. The pod tries to connect to a remote UDP video livestream to read frames to be processed.
I find that the first 2-4 attempts that the programs makes to connect to the stream fail (timeout) but after around 4 attempts the stream can be connected.

    


    It is even more strange to me because there are multiple stream IPs:ports. So there are times when connecting to a IP/Port fails a couple of times at the beginning but afterwards the program has no issue connecting to a various number of stream sources.

    


    My question is does anyone know why this may be happening and if not, I'd appreciate any suggestions as to how to debug the situation and understand better ffmpeg's behaviour.