
Recherche avancée
Autres articles (111)
-
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 -
Script d’installation automatique de MediaSPIP
25 avril 2011, parAfin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
La documentation de l’utilisation du script d’installation (...) -
List of compatible distributions
26 avril 2011, parThe table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)
Sur d’autres sites (9829)
-
FFMPEG YUV444 to YUV420 [duplicate]
9 août 2020, par Juan FelipeSoo I need to use a video reader which onl accepts yuv420.
I have videos which are yuv444 and have very weird resolutions (they come from an algorith and they are videos manually created stacking frames)


Soo I tried the following


ffmpeg -i CJMOPvsinJE.mp4 -pix_fmt yuv420p yuv420.mp4



But it seems that resolution have to be even.


[libx264 @ 0x556e02626660] width not divisible by 2 (241x1080)
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height



Sooo I solved it by cropping.


ffmpeg -i CJMOPvsinJE.mp4 -filter:v "crop=240:1080:1:0" -pix_fmt yuv420p yuv420.mp4



Buuut The fact is that I need to perform this operation for a bunch of videos.


Is there a way to tell ffmpeg to crop to the nearest even resolution ? Namely, if resolution is odd just to remove 1 row/column.


-
OpenCV VideoCapture closes with videos from GoPro
10 février 2021, par MichaelI have a videofile from a GoPro device and I simply work with it from a
VideoCapture
like this :


cap = cv2.VideoCapture(path)
 index = 0
 start = time.time()

 while cap.isOpened():
 ret, frame = cap.read()
 if not ret:
 break
 # do something here
 end = time.time()




It is very weird, but I can operate with any files except ones, captured at the GoPro. Stream just closes at some point because
ret
value becomesFalse
andframe
becomesNone
. No exceptions or anything else.


Googling helped me to find this question. I have deleted audio streams from file with ffmpeg tool and then everything works just fine. So why it is like so ? Pleas help !



I am using Python 3.6.4 x64, Windows 10 (however at Linux same) and precompiled binaries for OpenCV from this resource.


-
How to write a video stream containing B-frame and no DTS to a MP4 container ?
14 février 2020, par SteveHI want to save a h264 video stream received from a RTSP source to a MP4 container.
Not like other questions asked on SO, here the challenges I face are :-
The stream contains B frames.
-
The stream has only PTS given by the RTP/RTCP.
Here is the code I did
// ffmpeg
pkt->data = ..;
pkt->size = ..;
pkt->flags = bKeyFrame? AV_PKT_FLAG_KEY : 0;
pkt->dts = AV_NOPTS_VALUE;
pkt->pts = PTS;
// PTS is based on epoch microseconds so I ignored re-scaling.
//av_packet_rescale_ts(pkt, { 1, AV_TIME_BASE }, muxTimebase);
auto ret = av_interleaved_write_frame(m_pAVFormatCtx, pkt);I received a lot of error messages like this :
"Application provided invalid, non monotonically increasing dts to muxer ...".Result : the mp4 file is playable via VLC but the FPS is just a half of the original FPS and the video duration is incorrect (VLC shows a weird number).
So how do I set correct DTS and PTS before sending to the container ?
Update :
I have tried some changes, though not successfully yet, I found that the reason of the frame rate drop is due to the muxer discards frames having incorrect DTS.
Additionally, if I set start of PTS and DTS value too big, some players like VLC has to delay some time before showing video. -