
Recherche avancée
Autres articles (105)
-
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 -
Gestion des droits de création et d’édition des objets
8 février 2011, parPar défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;
-
Dépôt de média et thèmes par FTP
31 mai 2013, parL’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)
Sur d’autres sites (5631)
-
Youtube-DL file download live progress
7 février 2015, par roshkattuI am using the YoutubeDL library in a project. My environment is based on WINDOWS with XAMPP as the webserver boundle (apache,php,mysql,etc). I am using the youtube-dl.exe file to download the video and then use ffmpeg.exe to convert the video to an MP3 audio file.
At the moment, I have an issue related to programming : I want to show live a progressbar while the video is downloaded with the youtube-dl.exe file. This exe creates a log file, that is updated while the video is downloaded. So my approach on this was to create a PHP file, that opens, parses the log file and get’s the progress percent, and sends it as a json encoded value to an AJAX function that is called every 100MS. Indeed, if the video is too large, there will be a very high ammount of data while polling the PHP file to get the progress state. And sometimes, the browser either crashes or freezes because of this ajax polling.
My question is : is there any better approach to do this with PHP/AJAX ? Rathar than poll the file every 100MS, or 50MS ?
-
Merge video and audio using ffmpeg and download immediately in django
29 janvier 2024, par Suresh ChandI have video and audio file which is to be merge and download immediately. I have written some code but it will start download after merged. I want when user hit the url, then it will start merging and downloading immediately so that user don't have to wait for it.


video_url = "./video.mp4"
audio_url = "./audio.mp4"

output_filepath = './merged.mp4'

try:
 process = subprocess.Popen([
 "ffmpeg",
 "-i", video_url,
 "-i", audio_url,
 "-c:v", "copy",
 "-c:a", "copy",
 "-f", "mp4",
 "-movflags", "frag_keyframe+empty_moov",
 "pipe:1"
 ], stdout=subprocess.PIPE)

 def generate_stream():
 while True:
 data = process.stdout.read(1024)
 if not data:
 break
 yield data

 response = StreamingHttpResponse(generate_stream(), content_type="video/mp4")
 response['Content-Disposition'] = 'attachment; filename="stream.mp4"'
 return response

except subprocess.CalledProcessError as e:
 return HttpResponse("Error: {}".format(e), status=500)



But it will merge and then start downloading. I want to be at same time so that user don't have to wait until the merging process.


I am using django and i am learning django


-
How Can i Download this video ? Encrypted m3u8 ?
16 septembre 2022, par אורן NOHello everyone For almost a whole month now I have been trying to download a file from a specific site


This is the link to the video
https://www.karaoke.co.il/api_play.php?type=clip&id=58370&autoplay=undefined&referer=karaoketv


The M3u8 files are split into 2 parts.


Video file
https://www.video-cdn.com/video/encrypt/750802ea0bc2d02fac93adeaa1398ec2/750802ea0bc2d...2-57d9518fae69


And an audio file
https://www.video-cdn.com/video/encrypt/750802ea0bc2d02fac93adeaa1398ec2/750802ea0bc2d...2-57d9518fae69


As far as I know there is a Key that needs to be entered in order to download the file.


And when I run the command in ffmpeg


I encounter many errors like :
Unable to open key file


Anyone who can download it.
I would be very happy if he would write me a code that works and explain to me how to do it


These are all the codes I have already tried


ffmpeg -decryption_key https://www.video-cdn.com/video/key/750802ea0bc2d02fac93adeaa13cde64 -i https://www.video-cdn.com/video/encrypt/750802ea0bc2d02fac93adeaa1398ec2/750802ea0bc2d02fac93adeaa1398ec2/video_720p.m3u8?token=R915dD-72351a7c-3dd1-4e58-b6c2-9cc813eeb183 -vcodec libx264 {output_file}



ffmpeg -decryption_key key -i file -max_muxing_queue_size 9999 d.mp4


ffmpeg -allowed_extensions ALL -protocol_whitelist data, file, http, https, tcp, tls, crypto -i "https://www.video-cdn.com/video/encrypt/f242d2da41d03b3955fb866efc5dbd59/f242d2da41d03b3955fb866efc5dbd59/video_720p.m3u8?token=R915dD-a1430cfc-0bda-46a0-a7e9-b15308875dc7" c copy -bsf : a aac_adtstoasc test.mp4 -decryption_key C :\ ffmpeg\enc.key


hlsdl -K "1a9625fb34a4afe0d5446138e9543563" https://www.video-cdn.com/video/encrypt/f242d2da41d03b3955fb866efc5dbd59/f242d2da41d03b3955fb866efc5dbd59/video_720p.m3u8?token=R915dD-be07b7e6-08aa-441b-afbd-5c7876409878