
Recherche avancée
Autres articles (76)
-
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
MediaSPIP Player : les contrôles
26 mai 2010, parLes contrôles à la souris du lecteur
En plus des actions au click sur les boutons visibles de l’interface du lecteur, il est également possible d’effectuer d’autres actions grâce à la souris : Click : en cliquant sur la vidéo ou sur le logo du son, celui ci se mettra en lecture ou en pause en fonction de son état actuel ; Molette (roulement) : en plaçant la souris sur l’espace utilisé par le média (hover), la molette de la souris n’exerce plus l’effet habituel de scroll de la page, mais diminue ou (...) -
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 (...)
Sur d’autres sites (6545)
-
Ffmpeg converting to mp4 from mkv[mpeg@ 0x7f9c19800000] start time for stream 0 is not set in estimate_timings_from_pts
6 février 2018, par croakouttatuneI recently converted a number of anime episodes from MKV to MP4 to burn and watch on my SamsungBRPlayer, however during the process I wasn’t able to convert the subtitle stream #0:2 through ffmpeg from .ssa to .srt thru their respective codecs (SSA to MOV_TEXT, can also be SUBRIP). I eventually decided to extract the SSA files and encode them as .srt... one for each episode. I converted these to .srt and plugged them back into the 8 episodes.
for i in *.mkv;do ffmpeg -i "$i" -i *.srt -c copy -c:s mov_text -c:v h264_videotoolbox -c:a aac -b:a 128k -target ntsc-dvd -y "yfolder/${i%.mkv*}.mp4"; done
After testing the compatibility of these files I know that this video codec will work, and the BluRay player I use also recognizes the subtitle files ; However , when looking back at the streams #0:0 which is where the subtitles are stored gives me "[mpeg @ 0x7f8621000000] start time for stream 0 is not set in estimate_timings_from_pts." This stream #0:O is now a data stream...0:1 video 0:2 being audio ...
One of the reasons I thought that I could have received this message is from an Attachment from the original MKV files in the #0:3 stream, which because it wasn’t anything more than metadata I ignored.
Another would probably be from the code mentioned above importing multiple .srt files into each of the new .mp4 files. I did find a solution however I’m not able to utilize the coding.$ for video in *.mkv
do
base=${video%.mkv} ffmpeg -i $base.mkv -vf subtitles=$base.srt
$base-out.mkv ; doneI couldn’t seem to get it to work. My files were as follows :
[AnimeGT] Hansom Gold - 001 [720p] [suitup].mp4
[AnimeGT] Hansom Gold - 002 [720p] [suitup].mp4
[AnimeGT] Hansom Gold - 003 [720p] [suitup].mp4
[AnimeGT] Hansom Gold - 004 [720p] [suitup].mp4
[AnimeGT] Hansom Gold - 005 [720p] [suitup].mp4
[AnimeGT] Hansom Gold - 006 [720p] [suitup].mp4
[AnimeGT] Hansom Gold - 007 [720p] [suitup].mp4
[AnimeGT] Hansom Gold - 008 [720p] [suitup].mp4
So the titles are obviously fake but whatever. What I need to know is how to use the
${I%.*}.mp4
and${h%.*}.srt
to represent both the base and the video variables in the coding I failed at above.
While keeping the data stream from each file.
if that’s the problem. Some help would be nice.[mpeg @ 0x7f9c19800000] start time for stream 0 is not set in estimate_timings_from_pts
I need to know how to deal with this.
-
Horizontally show two videos side by side and export to one video
15 juin 2015, par Michael LibermanWhat I am trying to achieve :
Programmatically (using some kind of script) combine two different videos to one video where the videos are shown side by side and sound from both videos is played simultaneously.I found at least two ways I could display two videos side by side but in each one I have a different problem that makes it difficult to complete the process :
-
Avisyth and Avs2Avi :
Avisyth really makes the process easy. With a simple Avisyth script like this you should be able to play two videos side by side :video1=AVISource("d:\file1.avi")<br />
video2=AVISource("d:\file2.avi")<br />
StackHorizontal(video1,video2)The creation of a new output file can be done with avs2avi.
The problem here is that i am not able to play even one avi file with avisyth because I get "AviSource couldn’t locate a decompressor for fourcc xvid" message. I googled for the solutions to that problem but nothing helped. GSpot says that i have all the codecs needed and it seems I can not do anything. Because I can not get to running real videos, I dont know if the final video plays sounds from both videos. Avisyth installed correctly and I am able to run the following script StackHorizontal(version ,version). -
ffmpeg
Works like a charm with two videos and the final file BUT i do not get the sounds from both videos but only the first one. I found out that the solution to add sound from the second video will be by using the libfaac in the command line, like that :
ffmpeg.exe -i video1.mp4 -vf "[in] scale=iw/2:ih/2, pad=2*iw:ih [left]; movie=video2.mp4, scale=iw/3:ih/3 [right]; [left][right] overlay=main_w/2:0 [out]" -c:a libfaac -b:v 768k Output.mp4
but i always get an error that the encoder libfaac can not be found. I downloaded the libfaac.dll but still no result.
Is there a solution to any of these problems ? Is there another way to programmatically make one video from two videos that are played side by side ? Thanks in advance.
-
-
add watermark and merge videos programmatically [on hold]
14 septembre 2017, par Suriya RakhunathanI am working on a node js project where i need to combine multiple videos to a single file and add watermark to the final video. I have tried using ffmpeg to achieve this functionality. But still facing some issues.
Is it possible if any type of video formats like mp4, mpeg, avi to be handled ?
Can this be achieved completely using node js or equivalent frameworks or should I use other languages like java, python..
Please help me if any one have worked on such scenarios earlier and have some idea on this. I will post my current research status and points as i progress.
Suriya