
Recherche avancée
Autres articles (77)
-
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
-
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 (...) -
Automated installation script of MediaSPIP
25 avril 2011, parTo overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
The documentation of the use of this installation script is available here.
The code of this (...)
Sur d’autres sites (12105)
-
Video recorded with ffmpeg not showing up at all in android (Oneplus 7T)
15 juin 2021, par ppengyI'm trying to render a video using a program called "danser", which uses ffmpeg. The video comes out fine, but when I transfer the video to my phone to upload to a social media platform, the phone does not see the video at all. I've used USB and Google Drive to transfer videos. Videos uploaded to Discord show up fine, which I assume is because of compression. I can't use discord to transfer because the video is over 100MB limit. I've also tested it on BlueStacks and it doesn't show up either.


Running ffmpeg with options: [-y -f rawvideo -vcodec rawvideo -s 1920x1080 -pix_fmt rgb24 -r 60 -i - -vf vflip -profile:v high -preset slow -an -vcodec h264_nvenc -color_range 1 -colorspace 1 -color_trc 1 -color_primaries 1 -movflags +write_colr -pix_fmt yuv420p -rc constqp -qp 18 videos\420eb0fce66c010c71553949ac611eeb.mp4]



Is there anything i can change here that allows for better compatibility ? I can share some video examples too if you request.


"Recording": {
 "FrameWidth": 1920,
 "FrameHeight": 1080,
 "FPS": 60,
 "Encoder": "h264_nvenc",
 "EncoderOptions": "-rc constqp -qp 18",
 "Profile": "high",
 "Preset": "slow",
 "PixelFormat": "yuv420p",
 "Filters": "",
 "AudioCodec": "aac",
 "AudioBitrate": "128k",
 "AudioFilters": "",
 "OutputDir": "videos",
 "Container": "mp4",
 "MotionBlur": {
 "Enabled": true,
 "OversampleMultiplier": 16,
 "BlendFrames": 24,
 "BlendWeights": {
 "UseManualWeights": false,
 "ManualWeights": "1 1.7 2.1 4.1 5",
 "AutoWeightsID": 27,
 "GaussWeightsMult": 1.5
 }
 }
 }
}



-
Get Total number of frames and FPS faster than with OpenCV library in C++
20 juillet 2018, par daniels_paI need to check which video can be analyzed and which cannot given the total number of frames in a video and the fps of the video. I created a c++ program to do the checking. Analyzing each video is not an option since analyzing is time consuming.
I used the OpenCV library for starters :
cv::VideoCapture vid_to_analyze;
vid_to_analyze.open( me_vid.vid_path.string() );
me_vid.total_frames= static_cast<int>(vid_to_analyze.get(CV_CAP_PROP_FRAME_COUNT));
me_vid.fps=vid_to_analyze.get(CV_CAP_PROP_FPS);
if (!vid_to_analyze.isOpened())
{
std::cout << "Skipping vid: "<< me_vid.vid_path.string()<<", couldn't open it" << std::endl;
}
if (me_vid.fps != me_vid.fps || me_vid.fps <= 0)
{
std::cout << "For video " << me_vid.vid_path.string() << std::endl;
std::cout << "FPS of the video file cannot be determined, assuming 30"<< std::endl;
me_vid.fps = 30;
}
vid_to_analyze.release();
</int>However when debugging it becomes painfully slow (the program is faster running without the debugger attached but still very slow given the number of videos it needs to cover). I think that has something to do with 4 threads being created and deleted each time a video is opened (released).
How to get total number of frames and fps in a faster manner ( without actually creating 4 threads !!) if i am not interested in actually grabbing frames from the video just the number of frames and fps.
Is there a way to use ffmpeg library from c++, would that be faster and where to start ?
EDIT : Valgrind seems to agree since (Ir=)91.66% of time spend in the
vid_to_analyze.open
phase -
setting cpu thread in ffmpeg
2 novembre 2024, par Amy BomerI have a PC 24 Thread and when I use ffmpeg. It only uses 25% of my CPU. So, how can all of these 24 threads be used ? So my CPU usage reaches 100%, because if it's 25% it's still a slow process


example :


ffmpeg -i video01.mkv -i watermark.png -filter_complex "overlay = 10: 10" output01.mkv



how to set 24 cpu threads ?