
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (82)
-
Selection of projects using MediaSPIP
2 mai 2011, parThe examples below are representative elements of MediaSPIP specific uses for specific projects.
MediaSPIP farm @ Infini
The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...) -
Sélection de projets utilisant MediaSPIP
29 avril 2011, parLes exemples cités ci-dessous sont des éléments représentatifs d’usages spécifiques de MediaSPIP pour certains projets.
Vous pensez avoir un site "remarquable" réalisé avec MediaSPIP ? Faites le nous savoir ici.
Ferme MediaSPIP @ Infini
L’Association Infini développe des activités d’accueil, de point d’accès internet, de formation, de conduite de projets innovants dans le domaine des Technologies de l’Information et de la Communication, et l’hébergement de sites. Elle joue en la matière un rôle unique (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
Sur d’autres sites (7112)
-
ffplay - How to display “pts_time=…” while playing the video ?
14 novembre 2023, par DeniI am a beginner in
ffmpeg
and need to know how to useffplay
in Linux to display thepts_time
while the video is playing.

I'm interested in seeing the
pts_time
of each frame. So I can check if the adblock begins with an IDR frame.

In windows machine I use the following commands to identify if the adbock begins with an IDR frames (by using pts-time infos) :


ffplay -vf "drawtext=fontfile=/Tools/ffmpeg/arial.ttf:text='%{pts}%{pict_type}':fontsize=(h/10):box=1:x=(w-tw)/2:y=h-(2*lh)" c:/video.ts
 
 ffprobe -show_frames -show_entries frame=pts_time,pict_type,key_frame -select_streams v c:/video.ts | grep -E --after-context=5 --before-context=5 "49635.045689"



I need the PTS time to be displayed as in the attached photo :




In Linux I am able to play the video with the command
ffplay
video.ts and with the help ofVcXsrv
Windows X Server to be able to access the graphical interface of the Linux server from my Windows PC.

and with the following
ffprobe
comand, I am able to see the frames details and thepts_time
of each frame :

ffprobe -select_streams v -show_frames video.ts
*[FRAME]
media_type=video
stream_index=5
**key_frame=1** */* it is a IDR frame*
pkt_pts=4467154112
**pkt_pts_time=49635.045689** 
pkt_dts=4467155912
pkt_dts_time=49635.065689
best_effort_timestamp=4467154112
best_effort_timestamp_time=49635.045689
pkt_duration=1800
pkt_duration_time=0.020000
pkt_pos=2262204
pkt_size=46939
width=1280
height=1080
pix_fmt=yuv420p
sample_aspect_ratio=3:2
pict_type=I
coded_picture_number=21
display_picture_number=0
interlaced_frame=1
top_field_first=1
repeat_pict=0
color_range=tv
color_space=bt709
color_primaries=bt709
color_transfer=bt709
chroma_location=left
[SIDE_DATA]



Any help would mean a lot to me !


-
FFmpeg crop portrait video 1:1 from the top based on dynamic value
8 avril 2022, par huggerI am replacing my video editing component with FFmpeg. So far it has been smooth until getting to this point where I need to crop my vertical (portrait) video to 1080x1080 with a dynamic value.


Essentially, I built a custom component to do the cropping, where I can pan a square box over the video. the Y value for the pan is where I wish to cut the top part of the video.


Here is the code I have tried, which works but is not cropping to my desired specs note :
offsetDiff
is the space I wish to remove from the top (pan px value) :

cropSelected() {
 const diff =
 this.props.videoHeight / (this.state.aspectRatio * deviceWidth);
 const offsetDiff = this.state.offsetTopTranslate * diff;

 var path =
 this.props.type === 'photo'
 ? RNFS.DocumentDirectoryPath + '/after.png'
 : RNFS.DocumentDirectoryPath + '/after.mp4';

 var filterPath =
 this.props.type === 'photo'
 ? RNFS.DocumentDirectoryPath + '/afterFilter.png'
 : RNFS.DocumentDirectoryPath + '/afterFilter.mp4';

 FFmpegKit.execute(
 `-y -i ${path} -vf "crop=iw:1080:0:${offsetDiff}, scale=1080:1080" -qscale 0 ${filterPath}`,
 ).then(async session => {
 const returnCode = await session.getReturnCode();
 if (ReturnCode.isSuccess(returnCode)) {
 // SUCCESS
 this.setState({
 mediaSource:
 this.props.type === 'video'
 ? `file://${filterPath}?${new Date().getTime()}`
 : filterPath,
 isOpen: !this.state.isOpen,
 ffMPEGinProgress: null,
 aspectRatio: 1080 / 1080,
 });
 } else if (ReturnCode.isCancel(returnCode)) {
 // CANCEL
 } else {
 // ERROR
 alert('error');
 }
 });
 }



Basically here I am trying to tell FFmpeg to keep the width (1080), make the height 1080, ignore X value, crop dynamic amount from the top.


Here is what my cropper component looks like to get an idea.




I appreciate any help I can get here folks, cheers !


-
can ffmpeg videos command be used for images ? [closed]
14 janvier, par MaryI came across this question but I see it is for videos only .
Does anyone knows if this command, from the above post,
ffmpeg -r VIDEOFPS -i VIDEO -r VIDEOFPS -i VIDEO -lavfi blend=all_mode=grainextract -c:v libx264 -crf 0 -an ./out.mp4
can be used for images ?, to extract the difference between 2 images in an output image ?