
Recherche avancée
Autres articles (67)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs
Sur d’autres sites (10189)
-
FFMPEG is not writing the correct video duration in the output playlist file for HLS
15 mai 2021, par user2726634I have 5 cameras each having an RTSP stream. I am converting that rtsp stream to HLS. This is the command I am using :


ffmpeg -rtsp_transport tcp -i rtsp://*:*@*:*/ -f hls -codec copy -strftime 1 -strftime_mkdir 1 -hls_time 10 -hls_list_size 360 -hls_segment_filename %Y%m%d/%H/%M%S.ts playlist.m3u8



The command gives the right output for 2 of the cameras. For the rest, the playlist files always has the incorrect duration (It is supposed to be 10 seconds) :


#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:5
#EXT-X-MEDIA-SEQUENCE:0
#EXTINF:5.000000,
videos/0/2/20210513/13/2632.ts
#EXTINF:5.000000,
videos/0/2/20210513/13/2642.ts
#EXTINF:5.000000,



For some reason the duration always gets written as half of the actual video duration in the playlist.


When I set hls_time to 5 seconds, the playlists for those respective cameras shows duration as 2.5 seconds even though the '.ts' is 5 seconds long.


What could be wrong ?


-
How to add a subtitle to an HLS playlist using FFmpeg ?
24 mai 2021, par AradI have a video (
video.mp4
) and a subtitle file (subtitle.srt
).

I'm trying to use FFmpeg to generate a VoD HLS playlist with 3 different resolutions for the video ; and I also want the subtitle file to turn into segmented
.vtt
files.

I've tried the following command, but it doesn't work, it gives me a "Conversion failed !" message without any further information :


ffmpeg -i video.mp4 -i subtitle.srt \
-preset slow -g 60 -sc_threshold 0 \
-map 0 -map 0 -map 0 -map 1 \
-s:v:0 640x360 -c:v:0 h264 -b:v:0 500k \
-s:v:1 854x480 -c:v:1 h264 -b:v:1 1000k \
-s:v:2 1280x720 -c:v:2 h264 -b:v:2 2000K \
-c:a copy -c:s webvtt \
-f hls -hls_playlist_type vod -var_stream_map "v:0,a:0 v:1,a:1 v:2,a:2" \
-master_pl_name master.m3u8 -hls_time 6 -hls_list_size 0 -hls_allow_cache 1 -start_number 1 \
-hls_segment_filename "output/hls/%v/seg-%d.ts" output/hls/%v/index.m3u8



I'm struggling to find any useful information in FFmpeg docs or anywhere else regarding how subtitles can be added to an HLS playlist. What should the command be like exactly ? What am I missing in mine ?


-
Video append of 5656b failed for segment #2 in playlist Gstreamer RTSP to HLS
28 juin 2021, par 55597I'm trying to forward an RTSP stream(video and audio) using GStreamer and stream it to HLS.


Here is what I'm running on the RTSP server send :


./test-launch 'v4l2src device=/dev/video0 ! clockoverlay ! nvvidconv ! nvv4l2h264enc ! h264parse ! rtph264pay name=pay0 pt=96 alsasrc device="hw:2,0" ! voaacenc ! rtpmp4apay pt=97 name=pay1'



The command I'm trying to use to receive is :


gst-launch-1.0 rtspsrc location=rtsp://127.0.0.1:8554/test name=rtspsrchls ! queue ! rtph264depay ! h264parse ! mpegtsmux name=mux ! hlssink location="/home/nano128/tdservice/hls_rtsp/public/segment%05d.ts" playlist-location=/home/nano128/tdservice/hls_rtsp/public/playlist.m3u8 target-duration=20 max-files=5 rtspsrchls. ! queue ! rtpmp4adepay ! aacparse ! audio/mpeg ! mux.



The HLS stream starts and I am able to see it on my browser. But I get these errors on the browser.


video append of 5656b failed for segment #2 in playlist



When I try to play the segment0.ts on vlc it is playing properly but when I l play sement1.ts I hear only audio.


What is wrong with my GStreamer command ?