
Recherche avancée
Autres articles (98)
-
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 -
La sauvegarde automatique de canaux SPIP
1er avril 2010, parDans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...) -
Demande de création d’un canal
12 mars 2010, parEn fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)
Sur d’autres sites (4741)
-
How to speedup screenshot capture of an rtsp stream via ffmpeg ?
20 mars 2020, par Sudipta BI want to capture a fresh screenshot from an rtsp stream and pass the data on via php whenever an ajax endpoint is called.
Currently I am simply running
$resp = exec( 'ffmpeg -rtsp_transport tcp -y -i '.$post['link'].' -vframes 1 '.$path.$imagename);
The problem is this takes a lot of time to generate a screenshot, about 4 second per capture if the stream is good. If the stream drops frames or causes an error, I won’t get a response and the script will timeout.
Is there a way to optimize this or allow for fault tolerance ? And overall speedup things so I can get a screenshot every second ? If there’s a better solution over ffmpeg, I am willing to try it as well !
-
HLS Encoding Resulting in "No Supported Source Was Found"
18 février 2023, par PaulamonopolyI'm currently facing the most bizare problems I've come across, so I'm hoping someone can explain why this is happening. I'm currently converting my Movie and Show libary to HLS for buffering and bandwidth reasons etc.


My file structure for these movies and shows are as follows :


/Movies/[TMDB ID]/[TMDB ID].mp4


/Shows/[TMDB ID/[Season Number]/[Episode Number]/[Episode Number].mp4


I have converted my entire movie collection successfully using the below command.


find /* -type f -name "*.mp4" -exec realpath {} \; -exec ffmpeg -i {} -codec: copy -start_number 0 -hls_time 10 -hls_list_size 0 -f hls -hls_segment_filename '{}-P%03d' {}.m3u8 \;



This is taking my named mp4 files and converting them to the
originalname.m3u8
with chunks following the naming scheme oforiginalname-PXXX
where P indicates the part number. I know there's no file extensions attached with the chunks but it's not needed.

You can view this result here : Example


This result also works if loaded into HLS Player : HLS Player


So there is evidently nothing wrong with the converting of my videos or even the result of the videos.


Now, if I convert a TV Show using the exact same command, it does indeed convert them, it does use a slightly different file structure as with seasons and episodes etc which can be seen above, but now it results in the error :
"No Supported Source Was Found"
in the console and repeatedly tries to playPart 000
without success.

This can be seen here : Example


And the errors if loaded into HLS Player : HLS Player


I have tried changing numerous things to try and resolve this error as well as checking things, the things I have checked are the media condition itself maybe it's a corrupted file ?


The original Mp4 file can be played here without any problems, so we know the Mp4 file originally is perfectly fine. I have also tried adding a file extension to the chunks such as
.ts
and.mp4
etc etc with also no success.

I have even thought maybe it's the directories so I have moved a show into the movies directory with no success, I have also moved a movie into the show directory which resulted in a working HLS Stream so it's nothing to do with the directories.


I have tried exending the file name length thinking it's possibly the naming scheme with
1.m3u8
not been long enough of a file name by using placeholder text such as03051.m3u8
as well as the chunk naming scheme03051-PXXX
possibly not been long enough.

I have noticed though that using this command :


ffmpeg -allowed_extensions ALL -i {} -c copy -bsf:a aac_adtstoasc {}.mkv \;



Does recombine my HLS video correctly with the same file size etc, however I have noticed that the video itself is corrupt and doesn't play. So this makes be believe the issue lies within the converting of the initial Mp4 file into m3u8.


-
How to use existing .so file in my other android project in windows PC ?
28 mai 2013, par Mihir ShahI have to use ffmpeg library for video editing application in android. I have no experience in
JNI
orNDK
. but I haveffmpeg.so
file. Can I directly use it in my new android application ?I am using it but generating error :
Caused by: java.lang.UnsatisfiedLinkError: Couldn't load videokit: findLibrary returned null
If not, what are the steps to generate .so file ? I have search lot of things but all are in mostly ubuntu. How to generate in windows or mac os ? Can i decompile my existing .so file ?