
Recherche avancée
Autres articles (64)
-
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 -
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 ;
-
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...)
Sur d’autres sites (11082)
-
Is there a way to convert uploaded videos to browser MP4 using most basic ffmpeg ?
22 janvier 2016, par PeterTheLobsterI am trying to convert videos uploaded to my website to browser friendly mp4 using ffmpeg.
The Problem : the website is hosted by a company and it seems like it does not have the codecs I need (the ones I’m aware to be browser-friendly.) I have learned that h264 and libx264 are the codecs I would want to encode the mp4 videos to, but libx264 is not present and h264 is decodable only. Doing :
exec("ffmpeg -codecs", $output);
tells me that :
D V D h264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
I have tried converting the videos using mpeg4 codecs, but those are not supported natively in browsers it appears :
$command ="$ffmpeg -i $target -b 1500k -vcodec mpeg4 -pix_fmt yuv420p -acodec aac -strict experimental $converted2 2>&1";
exec($command, $output);The videos converted using the method above play only audio in chrome for example (the mpeg4 codec encoding is supported).
Edit : I was able to convert videos to ogg and webm, but those won’t cover all browsers as far as I’m aware. Especially not the mobile ones anyway.
Question : is there another type of basic ffmpeg, browser friendly mp4 codecs that I am not ware of or was there something wrong with my conversion $command above ? Or would I have to somehow try to install libx264 codecs and libraries ? (My guess is, that I probably cant do that to their servers, right ?)
-
How to run ffmpeg on demand when someone opens my website with the player where a remote IP camera is displayed ?
8 mai 2023, par alexiterI set up an nginx server to stream from an IP camera located elsewhere, I used a windows server because it was the one I had no use for (I usually prefer linux), I would need to know how I can make the ffmpeg command run only when someone opens the website where the player is located.


This is my nginx.conf server code :


worker_processes 1;

error_log logs/error.log info;

events {
 worker_connections 1024;
}
rtmp {
 server {
 listen 1935;
 ping 30s;
 notify_method get;
 application live {
 live on;
 on_publish http://*******:8080/auth;
 dash on; 
 dash_path tmp/dash;
 
 
 }
 }
}
http{

 server {
 listen 8080;
 location /auth {
 if ($arg_psk = '*****') {
 return 201;
 }
 return 404;
 }
}
 
 server {
 listen 8443 ssl;
 server_name stream.*****.com;
 
 ssl on;
 ssl_certificate C:/Certbot/live/stream.*****.com/fullchain.pem;
 ssl_certificate_key C:/Certbot/live/stream.****.com/privkey.pem;
 ssl_session_timeout 5m;
 charset utf-8;
 location /dash {
 root tmp;
 add_header Cache-Control no-cache;
 }
 location / {
 root www;
 }
 

 }
}




The command that I use from the DOS console in windows is this :


ffmpeg -rtsp_transport tcp -i rtsp://*****:******@******.com:557/Streaming/Channels/101 -c copy -f flv -y -t 35 rtmp://********:1935/live/stream?psk=********



Basically what I need is that ffmpeg is not running constantly, only when someone wants to view the video from the IP camera. (I have programmed ffmpeg to finish after 35 seconds, although I will put five minutes later)


-
downloaded a streaming video file from a website with ffmpeg in 1080p but i wanted to download in 720p as i have disk space limitations [on hold]
22 octobre 2018, par C.J.I apologize if my language was unclear let me try to rephrase the question. I have downloaded a video from a video streaming website called "hotstar.com" with the help of ffmpeg. I extracted the m3u8 link from the site and was able to download it. The video is in 1080p video resolution which takes a lot of space. I want to download it in 720p resolution so that it would take less space. the code that i tried for it was this
ffmpeg -i "https://hsprepack.akamaized.net/videos/hotstarint/world/kwks6/1_2/master.m3u8?hdnea=st=1540184067~exp=1540185867~acl=/*~hmac=a8945f016b594e1e2e4192ee05e2feaa5811c687d1891f69be1acc9057dd725f"
-c copy output.mp4I hope I have asked properly this time. If not do tell me what is more needed.