
Recherche avancée
Autres articles (62)
-
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...) -
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 (9976)
-
Revert "mov : Double-check that alias path is not an absolute path"
10 juillet 2015, par Vittorio Giovara -
avcodec/ffv1enc : replace 3 double precision log2() by 1 single precision log2()
30 mars, par Michael Niedermayer -
Double speed playback with ffpmeg+nginx [closed]
25 novembre 2024, par chunjie yangI want to achieve 2x playback speed.
There is a streaming service A, and I want to set up a streaming server B locally to obtain streams from A and play them at 2x speed. In order to achieve this function, first use the command to make server A push the stream at twice the speed. After the local server B removes the stream, use the following command to transcode and play it. However, it is found that the stream is too laggy. I don't know why. The command is as follows :
Transcoding :


ffmpeg -re -i 'http://ServerAPlaybackUrl' \
 -filter_complex "[0:v]setpts=0.5*PTS[v]" -map "[v]" \
 -r 25 \
 -c:v libx264 \
 -c:a aac \
 -b:a 128k \
 -maxrate 3000k \
 -bufsize 6000k \
 -pix_fmt yuv420p \
 -g 50 \
 -f flv \
 -threads 4 \
 rtmp://NginxUrl



playing video:


ffplay -fflags nobuffer http://localhost/hls/placeToM3u8.m3u8



local nginx :


# nginx.conf

worker_processes 1;

events {
 worker_connections 1024;
}

#rtmp {
# server {
# listen 1935;
# chunk_size 4096;
#
# application live {
# live on;
# record off;
# }
# }
#}

rtmp {
 server {
 listen 1935;
 chunk_size 4096;

 application live {
 live on;
 record off;
 hls on;
 hls_path /tmp/hls;
 #hls_cleanup on;
 hls_fragment 3s;
 hls_playlist_length 60s;
 }
 }
}


http {
 include mime.types;
 default_type application/octet-stream;

 sendfile on;
 keepalive_timeout 65;

 server {
 listen 80;
 server_name localhost;

 location / {
 root html;
 index index.html index.htm;
 }

 location /hls {
 types {
 application/vnd.apple.mpegurl m3u8;
 ./ ts;
 }
 root /tmp;
 add_header Cache-Control no-cache;
 }

 error_page 500 502 503 504 /50x.html;
 location = /50x.html {
 root html;
 }
 }
}



What's the proplem ?