
Recherche avancée
Médias (91)
-
Valkaama DVD Cover Outside
4 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
Valkaama DVD Label
4 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Image
-
Valkaama DVD Cover Inside
4 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
1,000,000
27 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Demon Seed
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Four of Us are Dying
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (67)
-
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 ;
-
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
Sur d’autres sites (5482)
-
Protecting consumer privacy : How to ensure CCPA compliance
-
Data Privacy in Business : A Risk Leading to Major Opportunities
9 août 2022, par Erin — Privacy -
ffmpeg failed to seek near the end the of video
2 novembre 2020, par HanXuI have a video with duration 10.00 :




$ ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 small.avi


$ 10.000000




However, when I want to take a screenshot at the last frame by




$ ffmpeg -ss 10.00 -i small.avi -frames:v 1 -q:v 2 -f image2 -y output.jpg




It complains that




could not seek to position 10.000




In fact, even if I try to take screenshot at 9.98s, ffmpeg still fails to seek




$ ffmpeg -ss 9.98 -i small.avi -frames:v 1 -q:v 2 -f image2 -y output.jpg


could not seek to position 9.98




However, it succeeds for 9.979999s.


Following is the detailed info of my video by running




$ ffprobe -v error -i small.avi -show_streams -show_format -print_format json




{
 "streams": [
 {
 "index": 0,
 "codec_name": "dvvideo",
 "codec_long_name": "DV (Digital Video)",
 "codec_type": "video",
 "codec_time_base": "1/25",
 "codec_tag_string": "dvsd",
 "codec_tag": "0x64737664",
 "width": 720,
 "height": 576,
 "coded_width": 720,
 "coded_height": 576,
 "has_b_frames": 0,
 "sample_aspect_ratio": "16:15",
 "display_aspect_ratio": "4:3",
 "pix_fmt": "yuv420p",
 "level": -99,
 "chroma_location": "topleft",
 "refs": 1,
 "r_frame_rate": "25/1",
 "avg_frame_rate": "25/1",
 "time_base": "1/25",
 "start_pts": 0,
 "start_time": "0.000000",
 "duration_ts": 250,
 "duration": "10.000000",
 "bit_rate": "28915663",
 "nb_frames": "250",
 "disposition": {
 "default": 0,
 "dub": 0,
 "original": 0,
 "comment": 0,
 "lyrics": 0,
 "karaoke": 0,
 "forced": 0,
 "hearing_impaired": 0,
 "visual_impaired": 0,
 "clean_effects": 0,
 "attached_pic": 0,
 "timed_thumbnails": 0
 }
 },
 {
 "index": 1,
 "codec_name": "pcm_s16le",
 "codec_long_name": "PCM signed 16-bit little-endian",
 "codec_type": "audio",
 "codec_time_base": "1/48000",
 "codec_tag_string": "[1][0][0][0]",
 "codec_tag": "0x0001",
 "sample_fmt": "s16",
 "sample_rate": "48000",
 "channels": 2,
 "bits_per_sample": 16,
 "r_frame_rate": "0/0",
 "avg_frame_rate": "0/0",
 "time_base": "1/48000",
 "start_pts": 0,
 "start_time": "0.000000",
 "bit_rate": "1536000",
 "nb_frames": "480256",
 "disposition": {
 "default": 0,
 "dub": 0,
 "original": 0,
 "comment": 0,
 "lyrics": 0,
 "karaoke": 0,
 "forced": 0,
 "hearing_impaired": 0,
 "visual_impaired": 0,
 "clean_effects": 0,
 "attached_pic": 0,
 "timed_thumbnails": 0
 }
 }
 ],
 "format": {
 "filename": "small.avi",
 "nb_streams": 2,
 "nb_programs": 0,
 "format_name": "avi",
 "format_long_name": "AVI (Audio Video Interleaved)",
 "start_time": "0.000000",
 "duration": "10.000000",
 "size": "37948606",
 "bit_rate": "30358884",
 "probe_score": 100,
 "tags": {
 "encoder": "Lavf58.29.100"
 }
 }
}



It seems that there are some mismatching between ffmpeg seeking and the duration of the video ? How to correctly take a screenshot at, say 9.99s ?


Much thanks for any help !