
Recherche avancée
Médias (1)
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (100)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)
Sur d’autres sites (14933)
-
Per second frame count using ffmpeg
11 janvier 2023, par mabI need to count the number of frames in a video captured by a camera on a per-second basis. I haven't found a solution using ffmpeg or ffprobe (or something else) to output the number of frames per second (maintaining a constant frame rate is not guaranteed because of the capture mechanism and needs to be verified).


So far, I've needed to run ffmpeg and ffprobe separately. First, I run ffmpeg to trim the video :


ffmpeg -ss 00:00:00 -to <desired time="time" in="in" seconds="seconds"> -i -c copy 
</desired>


Then, I run ffprobe to count the number of frames in the snippet :


ffprobe -v error -select_streams v:0 -count_frames -show_entries stream=nb_read_frames -print_format csv 



Is there one command to output the number of frames for each second in the video ?


-
Unable To Get Frame Count Using ffmpeg To Stich To Beginning
23 décembre 2022, par SopMeI am using Python to make a script with ffmpeg where the script exports the middle frame into a jpg file and then stitches it back into beginning of the video. This is my script


video_filename = "test_video.webm"
import ffmpeg

# Open the input video file
input_video = ffmpeg.input(video_filename)

# Get the video stream from the input video
video_stream = next(s for s in input_video.streams if s.type == 'video')

# Get the total number of frames in the stream
num_frames = video_stream.frame_count

# Calculate the middle frame number
middle_frame = num_frames // 2

# Extract the middle frame from the input video
middle_frame_extract = input_video.trim(start_frame=middle_frame, end_frame=middle_frame+1).setpts('PTS-STARTPTS')

# Save the extracted frame to an image file
ffmpeg.output(middle_frame_extract, 'middle_frame.jpg').run()

# Open the image file
middle_frame_image = ffmpeg.input('middle_frame.jpg')

# Concatenate the image file with the rest of the video
output_video = ffmpeg.concat(middle_frame_image, input_video, v=1, a=0).setpts('PTS+STARTPTS')

# Save the output video to a file
ffmpeg.output(output_video, 'output.mp4').run()



I get this error though


AttributeError Traceback (most recent call last)

 in <module>
 6 
 7 # Get the video stream from the input video
----> 8 video_stream = next(s for s in input_video.streams if s.type == 'video')
 9 
 10 # Get the total number of frames in the stream

AttributeError: 'FilterableStream' object has no attribute 'streams'

</module>


The issue is that there is little documentation to do this and I only found this snippet of code online. How do I modify it to make it work for my use case ?


-
avcodec/avcodec : Always use old channel count/layout if set
18 septembre 2022, par Andreas Rheinhardtavcodec/avcodec : Always use old channel count/layout if set
This ensures that if AVCodecContext.channels or
AVCodecContext.channel_layout are set, AVCodecContext.ch_layout
has the equivalent values after this block.(In case these values are set inconsistently, the consistency check
for ch_layout below will error out.)Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>