
Recherche avancée
Médias (1)
-
Revolution of Open-source and film making towards open film making
6 octobre 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (90)
-
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
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" (...) -
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)
Sur d’autres sites (16114)
-
Select subtitle stream in ffmpeg in order to take screenshot
7 octobre 2020, par Snake EyesI want to capture screen from mkv which has embedded subtitles which media info looks like :


General
Complete name : MyVideo.mkv
Format : Matroska
Format version : Version 4
File size : 2.25 GiB
Duration : 1 h 47 min
Overall bit rate : 2 993 kb/s
Writing application : mkvmerge v21.0.0 ('Tardigrades Will Inherit The Earth') 64-bit
Writing library : libebml v1.3.5 + libmatroska v1.4.8

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 4 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 1 h 47 min
Bit rate : 2 735 kb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.055
Stream size : 2.05 GiB (91%)
Default : Yes
Forced : No

Audio
ID : 2
Format : E-AC-3
Format/Info : Enhanced AC-3
Commercial name : Dolby Digital Plus
Codec ID : A_EAC3
Duration : 1 h 47 min
Bit rate mode : Constant
Bit rate : 256 kb/s
Channel(s) : 6 channels
Channel layout : L R C LFE Ls Rs
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Stream size : 197 MiB (9%)
Language : English
Service kind : Complete Main
Default : Yes
Forced : No

Text #1
ID : 3
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 1 h 46 min
Bit rate : 53 b/s
Count of elements : 1626
Stream size : 42.1 KiB (0%)
Title : SDH
Language : English
Default : No
Forced : No

Text #2
ID : 4
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 1 h 46 min
Bit rate : 53 b/s
Count of elements : 1595
Stream size : 41.8 KiB (0%)
Language : Spanish
Default : No
Forced : No

Menu
01:44:57.011 : en:Credits



I'm trying to capture with Spanish subtitle stream in the screen


I tried :


ffmpeg -ss 14 -copyts -i C:\MyVideo.mkv -map 0:0 -map 0:3 -codec copy -codec:3 mov_text -vframes 1 C:\test.png



but is not working, means the PNG is not PNG actually. I don't know the format is output.


How to capture screen with spanish subtitle (position 4 in mediainfo) ?


-
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 !


-
Removing both leading and trailing silence from m4a files using ffmpeg
11 juin 2021, par Tejas ShahI have an audio file which has both leading and trailing silence and with the following specifics :



Codec : MPEG AAC Audio (mp4a) Channels : Stereo Sample rate : 44100 Hz Bitrate : 253 kbps



I want to remove the silences AND keep the quality intact.



So far I've tried



ffmpeg -i 1.m4a -af silenceremove=1:0.5:0:1:0.5:0 2.m4a 




This is supposed to remove both the leading and trailing silences. 
But for some reason it doesn't remove the trailing silence. This seems to be a recurring problem. Found the following on another forum.



http://ffmpeg-users.933282.n4.nabble.com/How-to-delete-digital-silence-tp4667256p4667356.html



Also, ffmpeg reduces the bitrate to 128kbps. This I could fix by adding -ab 253k and making the command :



ffmpeg -i 1.m4a -af silenceremove=1:0.5:0:1:0.5:0 -ab 253k 3.m4a 




Now the problem is that the trailing silence isn't removed and when I want to process a batch of files I can't use the same bitrate (like 253kbps ) for every file. I'd like to know how VBR could be used for this case.



I know I can use sox and use the silence and reverse features to trim the silences.



http://digitalcardboard.com/blog/2009/08/25/the-sox-of-silence "Example 3 in this post"



But sox has the following problems :



- 

- It can't handle m4a files, I had to convert all files to mp3.
-
When using the silence filter in sox it caps the bitrate at 128kbps.



sox 1.mp3 2.mp3 silence 1 0.5 1% reverse silence 1 0.5 1% reverse