Recherche avancée

Médias (91)

Autres articles (47)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

Sur d’autres sites (7780)

  • lavc/vp8dsp : rework R-V V idct_dc_add4y

    2 juin 2024, par Rémi Denis-Courmont
    lavc/vp8dsp : rework R-V V idct_dc_add4y
    

    DCT-related FFmpeg functions often add an unsigned 8-bit sample to a
    signed 16-bit coefficient, then clip the result back to an unsigned
    8-bit value. RISC-V has no signed 16-bit to unsigned 8-bit clip, so
    instead our most common sequence is :
    VWADDU.WV
    set SEW to 16 bits
    VMAX.VV zero # clip negative values to 0
    set SEW to 8 bits
    VNCLIPU.WI # clip values over 255 to 255 and narrow

    Here we use a different sequence which does not require toggling the
    vector type. This assumes that the wide addend vector is biased by
    - 128 :
    VWADDU.WV
    VNCLIP.WI # clip values to signed 8-bit and narrow
    VXOR.VX 0x80 # flip sign bit (convert signed to unsigned)

    Also the VMAX is effectively replaced by a VXOR of half-width. In this
    function, this comes for free as we anyway add a constant to the wide
    vector in the prologue.

    On C908, this has no observable effects. On X60, this improves
    microbenchmarks by about 20%.

    • [DH] libavcodec/riscv/vp7dsp_rvv.S
    • [DH] libavcodec/riscv/vp8dsp_rvv.S
  • ffmpeg with libopenh264 Is blurry [closed]

    11 septembre 2023, par Devin Dixon

    I am trying get live streaming using libopenh264 near the quality of libx264, but I am running into the quality issues. Here is a live stream standing still :

    


    no_blurry

    


    And here is image when there is fast movement :

    


    blurry

    


    The only documentation I've been able to find on options for libopenh264 is here : https://support.medialooks.com/hc/en-us/articles/360000210192-H-264-encoding-options

    


    Which give these values :

    


    





    


    


    


    


    


    



    


    


    


    


    


    


    


    


    


    


    


    


    


    


    


    


    


    


    


    


    


    


    


    


    


    Name Default value Description
    slices 0 Set the number of slices, used in the parallelized encoding. This is only used when slice_mode is set to ‘fixed’
    slice_mode auto Set slice mode.Possible values:fixedrowmbautodyn
    loopfilter 1 Enable loop filter, if set to 1. To disable set a value of 0.
    max_nal_size 0 Set maximum NAL size in bytes.
    allow_skip_frames 0 Allow skipping frames to hit the target bitrate if set to 1.

    


    


    But it seems options like slice_mode is incorrect, and playing around with options like slices and max_nal_size don't do anything. Here is my ffmpeg command :

    


    ffmpeg -y  -i pipe:0 -vf "scale=1920:1080:out_color_matrix=bt709" -color_primaries bt709 -color_trc bt709 -colorspace bt709 -c:v libopenh264 -b:v 9000k  -profile:v high -slices 10 -allow_skip_frames 1 -b_strategy 0 -maxrate 12000k -bufsize 9000k -pix_fmt yuv420p -r 60 -g 120 -c:a aac -b:a 256k -ac 2 -ar 44100  -af afftdn -f tee -map 0 "[f=flv]${data.stream.invirtu_rtmp_broadcast_endpoint}?sign=${data.stream.invirtu_rtmp_broadcast_key}|[f=mp4]${escapedTempFilePath}"`;


    


    Question :
    
Are there any other options I can be testing for libopenh264 to improve the quality ?

    


  • Why ffmpeg hangs encoding a void audio track ?

    23 août 2023, par SkizZO

    I've googled an entire day experimenting all possible solutions, but noone had worked.
I have 2 HIK dvr (one is prehistoric vith analogic video). I've made a bash script to retrieve X seconds (as input) of the DVR stored videos (it cut seconds if video ends early) ; also record X seconds of Live view (used for saving Motion Alert in Home assistant).

    


    All works well, BUT i have some issues, and the big one is that when the video has no audio, the download hangs at 9.96 seconds for the old device, and 9.97sec for the new (damn !).

    


    Now let's look at the commands and the logs.

    


    Command : this works with cams with audio, but hangs if cam has an audio silent track ?

    


    makejob=$(ffmpeg -fflags +genpts -y -ac 1 -channel_layout mono -rtsp_transport tcp -hide_banner -loglevel info -err_detect ignore_err -i  "rtsp://$user:$dvrpasswd@$dvraddress:554/ISAPI/streaming/tracks/${camnumber}01?starttime=$starttime&endtime=$endTime" -map 0:v -map 0:a? -ar 44100 -filter:a "volume=$volume" -t $seconds -acodec aac -vcodec copy $filepathname)


    


    (A) result Cam with audio : errors too, but works recording both video and audio

    


    Downloading from DVR BeB-DVR a 7 seconds video of the CAM CAMERA-1 recorded from 2023-08-19 10:10:10
Input #0, rtsp, from 'rtsp://$user:$dvrpasswd@$dvraddress:554/ISAPI/streaming/tracks/101?starttime=20230819T101010Z&endtime=20230819T101020Z':
  Metadata:
    title           : HIK Media Server V4.32.116
    comment         : HIK Media Server Session Description : standard
  Duration: 462428:22:56.-75, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: h264 (Baseline), yuvj420p(pc, bt709, progressive), 1920x1080, 25 fps, 25 tbr, 90k tbn, 180k tbc
    Stream #0:1: Audio: pcm_mulaw, 8000 Hz, mono, s16, 64 kb/s
Output #0, mp4, to '/home/pi/hikdwn/downloaded/BeB-DVR-CAMERA-1-2023-08-19-h01010-(10s).mp4':
  Metadata:
    title           : HIK Media Server V4.32.116
    comment         : HIK Media Server Session Description : standard
    encoder         : Lavf57.56.101
    Stream #0:0: Video: h264 (Baseline) ([33][0][0][0] / 0x0021), yuvj420p(pc, bt709, progressive), 1920x1080, q=2-31, 25 fps, 25 tbr, 90k tbn, 90k tbc
    Stream #0:1: Audio: aac (LC) ([64][0][0][0] / 0x0040), 44100 Hz, mono, fltp, 69 kb/s
    Metadata:
      encoder         : Lavc57.64.101 aac
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (pcm_mulaw (native) -> aac (native))
Press [q] to stop, [?] for help
[mp4 @ 0x212a9d0] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
frame=  175 fps= 33 q=-1.0 Lsize=    1708kB time=00:00:07.00 bitrate=1998.8kbits/s speed=1.34x
video:1643kB audio:60kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.350157%
[aac @ 0x212cf00] Qavg: 111.884
Download completed!


    


    (B) result Cam withouth audio (on both DVRs) : hangs before completing the download, the file saved is 0kb

    


    (B) on DVR1 (newer one) hangs

    


    Input #0, rtsp, from 'rtsp://$user:$dvrpasswd@$dvraddress:554/ISAPI/streaming/tracks/501?starttime=20230819T101010Z&endtime=20230819T101020Z':
  Metadata:
    title           : HIK Media Server V4.32.116
    comment         : HIK Media Server Session Description : standard
  Duration: 462428:23:09.-90, start: 0.020000, bitrate: N/A
    Stream #0:0: Video: hevc (Main), yuv420p(tv), 2560x1440, 50 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1: Audio: pcm_mulaw, 8000 Hz, mono, s16, 64 kb/s
Output #0, mp4, to '/home/pi/hikdwn/downloaded/BeB-DVR-CAMERA-5-2023-08-19-h01010-(10s).mp4':
  Metadata:
    title           : HIK Media Server V4.32.116
    comment         : HIK Media Server Session Description : standard
    encoder         : Lavf57.56.101
    Stream #0:0: Video: hevc (Main) ([35][0][0][0] / 0x0023), yuv420p(tv), 2560x1440, q=2-31, 50 fps, 25 tbr, 90k tbn, 90k tbc
    Stream #0:1: Audio: aac (LC) ([64][0][0][0] / 0x0040), 44100 Hz, mono, fltp, 69 kb/s
    Metadata:
      encoder         : Lavc57.64.101 aac
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (pcm_mulaw (native) -> aac (native))
Press [q] to stop, [?] for help
frame=  251 fps=149 q=-1.0 size=       0kB time=00:00:09.97 bitrate=   0.0kbits/s speed=5.94x


    


    (B) on DVR2 (older) hangs with errors also

    


    Input #0, rtsp, from 'rtsp://$user:$dvrpasswd@$dvraddress:554/ISAPI/streaming/tracks/501?starttime=20230819T101010Z&endtime=20230819T101020Z':
  Metadata:
    title           : HIK Media Server V3.1.4
    comment         : HIK Media Server Session Description : standard
  Duration: 97123:37:11.-81, start: 0.240000, bitrate: N/A
    Stream #0:0: Video: h264 (Baseline), yuv420p(progressive), 352x288, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1: Audio: pcm_mulaw, 8000 Hz, mono, s16, 64 kb/s
Output #0, mp4, to '/home/pi/hikdwn/downloaded/HomeDVR-VIALE-2023-08-19-h01010-(10s).mp4':
  Metadata:
    title           : HIK Media Server V3.1.4
    comment         : HIK Media Server Session Description : standard
    encoder         : Lavf57.56.101
    Stream #0:0: Video: h264 (Baseline) ([33][0][0][0] / 0x0021), yuv420p(progressive), 352x288, q=2-31, 25 fps, 25 tbr, 90k tbn, 90k tbc
    Stream #0:1: Audio: aac (LC) ([64][0][0][0] / 0x0040), 44100 Hz, mono, fltp, 69 kb/s
    Metadata:
      encoder         : Lavc57.64.101 aac
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (pcm_mulaw (native) -> aac (native))
Press [q] to stop, [?] for help
[mp4 @ 0x1377ce0] Non-monotonous DTS in output stream 0:0; previous: 2, current: -17998; changing to 3. This may result in incorrect timestamps in the output file.
[mp4 @ 0x1377ce0] Non-monotonous DTS in output stream 0:0; previous: 3, current: -14398; changing to 4. This may result in incorrect timestamps in the output file.
[mp4 @ 0x1377ce0] Non-monotonous DTS in output stream 0:0; previous: 4, current: -10798; changing to 5. This may result in incorrect timestamps in the output file.
[mp4 @ 0x1377ce0] Non-monotonous DTS in output stream 0:0; previous: 5, current: -7198; changing to 6. This may result in incorrect timestamps in the output file.
[mp4 @ 0x1377ce0] Non-monotonous DTS in output stream 0:0; previous: 6, current: -3600; changing to 7. This may result in incorrect timestamps in the output file.
[mp4 @ 0x1377ce0] Non-monotonous DTS in output stream 0:0; previous: 7, current: 2; changing to 8. This may result in incorrect timestamps in the output file.
frame=  256 fps= 49 q=-1.0 size=       0kB time=00:00:09.96 bitrate=   0.0kbits/s speed=1.89x


    


    I suppose it's due to the missing timestamps. Note that also when there is no audio, there is an audio track in the video. It hangs when trying to encode that void track.

    


    (i will comment with logs where no audio is recorded, it works with some errors... maybe other useful infos are there)