
Recherche avancée
Autres articles (42)
-
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 -
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 ;
-
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
Sur d’autres sites (7783)
-
Arguments set but not used in GPAC
30 avril 2022, par M faiz zeeshannI am trying to do the tiling of a 360-degree video with the following command.


MP4Box -dash 1000 test.mp4 :"desc_as="


it creates an MPD file but without tiles and gives the following errors.


Arg segdur set but not used,
Arg mpeg set but not used,
Arg dash set but not used,
Arg srd set but not used,
Arg 2014 set but not used,


-
rtmp module stream do not , how to solve that ?
24 avril 2019, par DuxoI have some problem with configuring nginx+rtk-©module.
I need to stream a video from IP camera to web-site. I use MPEG-DASH.My server configuration is lower. Files .m4a, .m4v are creating and I also have stream.mpd file. But in browser it doen’t work, inifinity loading. some logs from dash.jsTime: 0
dash.all.js:2:10794
Array(6) [ {…}, {…}, {…}, {…}, {…}, {…} ]
dash.all.js:2:10818
Index for time 0 is -1
dash.all.js:3:8722
Checking for stream end...
dash.all.js:3:8722
Live never ends! (TODO)
dash.all.js:3:8722
Stream finished? false
dash.all.js:3:8722
Got a request.
dash.all.js:3:8722
null
dash.all.js:3:8722
BufferController video setState to:READY
dash.all.js:3:8722
Working time is video time: 0
dash.all.js:3:8722
BufferController.validate() video | state: READY
dash.all.js:3:8722
video Playback rate: 0
dash.all.js:3:8722
video Working time: 0
dash.all.js:3:8722
video Video time: 0
dash.all.js:3:8722
Current video buffer length: 0
dash.all.js:3:8722
BufferController video setState to:VALIDATING
dash.all.js:3:8722
ABR enabled? (true)
dash.all.js:3:8722
Check ABR rules.
dash.all.js:3:8722
Checking download ratio rule...
dash.all.js:3:8722
Total time: 0.009s
dash.all.js:3:8722
Download time: 0.009s
dash.all.js:3:8722
The ratios are NaN, bailing.
dash.all.js:3:8722
Checking insufficient buffer rule...
dash.all.js:3:8722
Not enough information for rule.
dash.all.js:3:8722
Array [ {…}, {…} ]
dash.all.js:3:8722
New quality of 0
dash.all.js:3:8722
video Playback quality: 0
dash.all.js:3:8722
Populate video buffers.
dash.all.js:3:8722
Quality didn't change.
dash.all.js:3:8722
Loading the video fragment for time: 0
dash.all.js:3:8722
Getting the request for time: 0
dash.all.js:3:8722
Got segments.
dash.all.js:3:8722
Array(6) [ {…}, {…}, {…}, {…}, {…}, {…} ]
dash.all.js:3:8722
Got a list of segments, so dig deeper.
dash.all.js:3:8722
Couldn't figure out a time!
dash.all.js:2:10751
Time: 0
dash.all.js:2:10794
Array(6) [ {…}, {…}, {…}, {…}, {…}, {…} ]
dash.all.js:2:10818
Index for time 0 is -1
dash.all.js:3:8722
Checking for stream end...
dash.all.js:3:8722
Live never ends! (TODO)
dash.all.js:3:8722
Stream finished? false
dash.all.js:3:8722
Got a request.
dash.all.js:3:8722
null
dash.all.js:3:8722
BufferController video setState to:READY
dash.all.js:3:8722
Working time is video time: 0
dash.all.js:3:8722
BufferController.validate() video | state: READY
dash.all.js:3:8722
video Playback rate: 0
dash.all.js:3:8722
video Working time: 0
dash.all.js:3:8722
video Video time: 0
dash.all.js:3:8722
Current video buffer length: 0
dash.all.js:3:8722
BufferController video setState to:VALIDATING
dash.all.js:3:8722
ABR enabled? (true)
dash.all.js:3:8722
Check ABR rules.
dash.all.js:3:8722
Checking download ratio rule...
dash.all.js:3:8722
Total time: 0.009s
dash.all.js:3:8722
Download time: 0.009s
dash.all.js:3:8722
The ratios are NaN, bailing.user some_user;
worker_processes 1;
events {
worker_connections 1024;
}
rtmp {
live on;
dash on;
server {
listen 1935;
application cams {
dash_path /cams;
}
exec_static ffmpeg -i
rtsp://admin:admin@192.168.0.51/1/Streaming/Channels/1/ -c:v libx264 -q:v 31 -an -profile:v baseline -ar 44100
-f flv rtmp://0.0.0.0/cams/stream;
}
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
#keepalive_timeout 0;
keepalive_timeout 65;
server {
listen 80;
server_name localhost;
location / {
root /;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}Can someone explain me why stream is not working and how to issue that ?thanks
-
ffmpeg use gpu to encode mpeg4 to ts/m3u8 [closed]
14 novembre 2024, par danielRICADOusing ffmpeg I want to trim and transcode a mpeg4 from ts / m3u8


std::string ffmpeg_command = "ffmpeg -hwaccel drm -i " + output_dir + input_file +
 " -ss 00:00:00.00 -t 31 -c:v " + codec + " -b:v " + std::to_string(bitrate) +
 " -vf scale=" + std::to_string(width) + "x" + std::to_string(height) +
 " -hls_time " + std::to_string(30) + " -hls_list_size 0 -hls_segment_filename " +
 ts_file_pattern + " -f hls " + m3u8_file;



I wanted to choose between codecs based on the system, if gpu is avaiable I'd like to opt to use it, right now I just check if the codec is available


bool is_h264_v4l2m2m_available() {
 std::string result = exec_command("ffmpeg -encoders 2>&1");
 return result.find("h264_v4l2m2m") != std::string::npos;
}



if it is a I wanted to move that process over to the gpu, not just use libx264. Here is the error log. Studying hard on the solution but wold super apperciate any expert advice.


other considerations are - runs in a docker container on a pi5, pibian on the host apline on in the container, container runs in privledged mode


2024-11-14 15:18:41 [INFO]: assigned codec: h264_v4l2m2m
2024-11-14 15:18:41 ffmpeg version 6.1.1 Copyright (c) 2000-2023 the FFmpeg developers
2024-11-14 15:18:41 built with gcc 13.2.1 (Alpine 13.2.1_git20240309) 20240309
2024-11-14 15:18:41 configuration: --prefix=/usr --disable-librtmp --disable-lzma --disable-static --disable-stripping --enable-avfilter --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-libmp3lame --enable-libopenmpt --enable-libopus --enable-libplacebo --enable-libpulse --enable-librav1e --enable-librist --enable-libsoxr --enable-libsrt --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-lto=auto --enable-lv2 --enable-openssl --enable-pic --enable-postproc --enable-pthreads --enable-shared --enable-vaapi --enable-vdpau --enable-version3 --enable-vulkan --optflags=-O3 --enable-libjxl --enable-libsvtav1 --enable-libvpl
2024-11-14 15:18:41 libavutil 58. 29.100 / 58. 29.100
2024-11-14 15:18:41 libavcodec 60. 31.102 / 60. 31.102
2024-11-14 15:18:41 libavformat 60. 16.100 / 60. 16.100
2024-11-14 15:18:41 libavdevice 60. 3.100 / 60. 3.100
2024-11-14 15:18:41 libavfilter 9. 12.100 / 9. 12.100
2024-11-14 15:18:41 libswscale 7. 5.100 / 7. 5.100
2024-11-14 15:18:41 libswresample 4. 12.100 / 4. 12.100
2024-11-14 15:18:41 libpostproc 57. 3.100 / 57. 3.100
2024-11-14 15:18:42 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/app/client-data/camera-output/7ea3cbef-4da0-11ed-bdcc-baf70a43c072/1731550687270.mp4':
2024-11-14 15:18:42 Metadata:
2024-11-14 15:18:42 major_brand : isom
2024-11-14 15:18:42 minor_version : 512
2024-11-14 15:18:42 compatible_brands: isomiso2avc1mp41
2024-11-14 15:18:42 encoder : Lavf60.16.100
2024-11-14 15:18:42 Duration: 00:00:31.33, start: 0.000000, bitrate: 678 kb/s
2024-11-14 15:18:42 Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 1024x1024, 677 kb/s, 15 fps, 15 tbr, 15360 tbn (default)
2024-11-14 15:18:42 Metadata:
2024-11-14 15:18:42 handler_name : VideoHandler
2024-11-14 15:18:42 vendor_id : [0][0][0][0]
2024-11-14 15:18:42 [AVFormatContext @ 0x7f9254dcb4c0] Unable to choose an output format for '678000'; use a standard extension for the filename or specify the format manually.
2024-11-14 15:18:42 [out#0 @ 0x7f9254d70700] Error initializing the muxer for 678000: Invalid argument
2024-11-14 15:18:42 Error opening output file 678000.
2024-11-14 15:18:42 Error opening output files: Invalid argument
2024-11-14 15:18:42 [ERROR]: Failed to generate .ts file for: 1731550687270.mp4