Recherche avancée

Médias (0)

Mot : - Tags -/diogene

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

Autres articles (95)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • Le plugin : Gestion de la mutualisation

    2 mars 2010, par

    Le plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
    Installation basique
    On installe les fichiers de SPIP sur le serveur.
    On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
    On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
    < ?php (...)

Sur d’autres sites (9370)

  • Playback / recording problems

    3 novembre 2024, par Wessiez

    The code I'm working on gives me some errors. This results in frame lost when recording.

    &#xA;

    The overview : A video is paused in the first frame. When the motion sensor is detected the video is playing a scary scene. After that it pauses again on the first frame.&#xA;At the same time when motion is detected the camera starts recording the reaction of the poeple watching the scary scene.

    &#xA;

    This is my code :

    &#xA;

    from gpiozero import MotionSensor&#xA;from time import sleep&#xA;from picamera2 import Picamera2&#xA;from picamera2.encoders import H264Encoder&#xA;from picamera2.outputs import FfmpegOutput&#xA;import vlc&#xA;import datetime&#xA;&#xA;# Creating Instance class object&#xA;vlc_instance = vlc.Instance()&#xA;player = vlc_instance.media_player_new()&#xA;player.set_fullscreen(True)&#xA;  &#xA;# Define Motion Sensor&#xA;pir = MotionSensor(4)&#xA;&#xA;# Camera&#xA;camera = Picamera2()&#xA;video_config = camera.create_video_configuration()&#xA;camera.configure(video_config)&#xA;camera.rotation = 180&#xA;encoder = H264Encoder(bitrate=10000000)&#xA;output = FfmpegOutput(&#x27;/home/wessie/Halloween/Recordings/&#x27; &#x2B; datetime.datetime.now().strftime(&#x27;%Y-%m-%d_%H.%M.%S.h264&#x27;))&#xA;&#xA;print("Sensor loading")&#xA;pir.wait_for_no_motion()&#xA;sleep(.1)&#xA;player.set_mrl("/home/wessie/Halloween/ScareMedia/FemaleScare.mp4")&#xA;player.play()&#xA;sleep(.1)&#xA;&#xA;while True:&#xA;    try:&#xA;        print("Ready")&#xA;        pir.wait_for_motion()&#xA;        sleep(.1)&#xA;        print("Motion detected")&#xA;        sleep(.1)&#xA;        player.set_mrl("/home/wessie/Halloween/ScareMedia/FemaleScare.mp4")&#xA;        player.play()&#xA;        sleep(.1)&#xA;        camera.start_recording(encoder, output)&#xA;        sleep(12)&#xA;        camera.stop_recording()&#xA;        while player.get_state() in playing:&#xA;            sleep(.1)&#xA;            continue        &#xA;        print("Finished")&#xA;        sleep(.1)&#xA;    except KeyboardInterrupt:&#xA;        break&#xA;    except:&#xA;        continue&#xA;

    &#xA;

    After "Motion detected" the message is :&#xA;"Application provided invalid non monotonically increasing dts to muxer in stream 0 :"

    &#xA;

    I've tried to cleanup this code, but everything I do results in other errors.

    &#xA;

    Is the code in the right order ? The scary scene seems to work, but the recording is not 100%

    &#xA;

  • HEVC/H.265 interlaced format support in ffmpeg or VLC

    30 décembre 2020, par Ernestas Gruodis

    "Music Box Russia" channel over satellite transmits in HEVC 1920x1080 25fps interlaced - and after recording VLC recognizes file as 50 fps, and resolution 1920x540 - half a height. But on satellite tuner the player works fine - it plays a file as 1920x1080 25fps... When we can expect support for HEVC/H.265 interlaced ? Here is recorded file (Garry Grey & Eva Miller - wtf). Also - a lot of lost frames in VLC player statistics..

    &#xA;

    EDIT :

    &#xA;

    I found some interesting info how in HEVC the interlace video content can be indicated here :

    &#xA;

    &#xA;

    Unlike to H.264/AVC, interlace-dedicated coding in HEVC is not exist :

    &#xA;

      &#xA;
    • No mixed frame-field interaction (like PAFF in H.264/AVC)
    • &#xA;

    • No interlace scanning of transform coefficients
    • &#xA;

    • No correction MVX[1] (or y-component of MV) if current and reference pictures are in different polarity (top-bottom or&#xA;bottom-top).
    • &#xA;

    &#xA;

    However, in HEVC the interlace video content can be indicated&#xA;(signaled in VPS/SPS and pic_timing SEI messages the latter are&#xA;transmitted for every picture in the sequence). Interlace-related&#xA;setting :

    &#xA;

      &#xA;
    • in VPS/SPS set general_interlaced_source_flag=1 and general_progressive_source_flag=0. Indeed, the HEVC standard says :

      &#xA;

      if general_progressive_source_flag is equal to 0 and&#xA;general_interlaced_source_flag is equal to 1, the source scan type of&#xA;the pictures in the CVS should be interpreted as interlaced only.

      &#xA;

    • &#xA;

    • in VPS/SPS set general_frame_only_constraint_flag=0

      &#xA;

    • &#xA;

    • in SPS VUI set field_seq_flag=1 and frame_field_info_present_flag=1. Notice that if these flags are ON&#xA;then picture timing SEIs shall be present for each picture.

      &#xA;

    • &#xA;

    • transmission of Picture Timing SEI per picture with the following parameters :

      &#xA;

      source_scan_type = 0 to indicate interlace mode&#xA;for top field picture signal pict_struct=1 and for bottom field picture pict_struct=2

      &#xA;

    • &#xA;

    &#xA;

    &#xA;

    Perhaps it is possible to pass these parameters to ffmpeg/vlc before playing a file ?

    &#xA;

  • Receive RTSP stream within docker container

    12 août 2021, par Wayne

    I am trying to decode a camera rtsp stream using ffmpeg_libs within a ubuntu docker container. The ffmpeg debug output seems to show that it successfully negotiates the rtsp-digest authentication (ie. RTSP/1.0 200 OK), and receives an SPS (nalu 7) and PPS (nalu 8), but nothing after that. It times out, retries, etc. That doesn’t really make sense to me.

    &#xA;&#xA;

    The same code compiled and run locally (not in docker) works fully.

    &#xA;&#xA;

    Also, if I decode a file, the code works fine both locally and in docker container. So, the basic ffmpeg_lib decode is working. The difficulty is with the stream interface running in docker.

    &#xA;&#xA;

    Is there additional authentication through the docker interface, or maybe port access, or something ? I’m not much of a networking guy, so I’m really lost at this point.

    &#xA;&#xA;

    The ffmpeg logs is below, and my docker run command is :

    &#xA;&#xA;

    docker run -it --name VideoRx videorx:latest (also tried with -p 554)&#xA;

    &#xA;&#xA;

    Any help will be very much appreciated.
    &#xA;Thanks,&#xA;Wayne

    &#xA;&#xA;

    avformat_version(): 3756900  Build: 3756900  Ident: Lavf57.83.100&#xA;avformat_open_input(): rtsp://admin:public_pwd@192.168.1.237&#xA;Probing rtsp score:100 size:0&#xA;[tcp @ 0x56263b430a20] No default whitelist set&#xA;[rtsp @ 0xaddr1] Sending:&#xA;OPTIONS rtsp://192.168.1.237:554 RTSP/1.0&#xA;&#xA;... [snipped]&#xA;Initial authentication handshake (OPTIONS, DESCRIBE, SETUP).&#xA;All success, server replies: &#x27;RTSP/1.0 200 OK&#x27;&#xA;....&#xA;&#xA;[rtsp @ 0xaddr1] Sending:&#xA;PLAY rtsp://192.168.1.237:554/ RTSP/1.0&#xA;Range: npt=0.000-&#xA;CSeq: 5&#xA;User-Agent: Lavf57.83.100&#xA;Session: 420467284&#xA;Authorization: Digest username="admin", realm="IP Camera(C1003)", nonce="129b254c8da4e0ffb530f64f79938bcd", uri="rtsp://192.168.1.237:554/", response="82c6c0f1fadea3739846866e8e50e855"&#xA;&#xA;--&#xA;[rtsp @ 0xaddr1] line=&#x27;RTSP/1.0 200 OK&#x27; &#xA;[rtsp @ 0xaddr1] line=&#x27;CSeq: 5&#x27;&#xA;[rtsp @ 0xaddr1] line=&#x27;Session:        420467284&#x27;&#xA;[rtsp @ 0xaddr1] line=&#x27;RTP-Info: url=rtsp://192.168.1.237:554/trackID=1;seq=43938;rtptime=4022155312&#x27;&#xA;[rtsp @ 0xaddr1] line=&#x27;Date:  Thu, Aug 02 2018 15:53:00 GMT&#x27;&#xA;[rtsp @ 0xaddr1] line=&#x27;&#x27;&#xA;avformat_open_input(): Success erc: 0&#xA;avformat_find_stream_info()&#xA;[h264 @ 0xaddr2] nal_unit_type: 7, nal_ref_idc: 3&#xA;[h264 @ 0xaddr2] nal_unit_type: 8, nal_ref_idc: 3&#xA;[rtsp @ 0xaddr1] UDP timeout, retrying with TCP &#xA;[rtsp @ 0xaddr1] ...&#xA;... Stalls waiting for additional packets&#xA;

    &#xA;