
Recherche avancée
Autres articles (74)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Gestion des droits de création et d’édition des objets
8 février 2011, parPar défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;
-
Dépôt de média et thèmes par FTP
31 mai 2013, parL’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)
Sur d’autres sites (10101)
-
Metadata is not showing ffmpeg C++
22 novembre 2022, par KaidulI am muxing h264 encoded video data and PCM g711 encoded audio data into a
.mov
media container. I am trying to write metadata on header but the metadata is not showing when I go to file->right click->properties->details on windows and likewise in Ubuntu. This is my code -


// Instead of creating new AVDictionary object, I also tried following way
// stated here: http://stackoverflow.com/questions/17024192/how-to-set-header-metadata-to-encoded-video 
// but no luck
AVDictionary* pMetaData = m_pFormatCtx->metadata;
av_dict_set(&pMetaData, "title", "Cloud Recording", 0);
av_dict_set(&pMetaData, "artist", "Foobar", 0);
av_dict_set(&pMetaData, "copyright", "Foobar", 0);
av_dict_set(&pMetaData, "filename", m_sFilename.c_str(), 0);
time_t now = time(0);
struct tm tStruct = *localtime(&now);
char date[100];
strftime(date, sizeof(date), "%c", &tStruct); // i.e. Thu Aug 23 14:55:02 2001
av_dict_set(&pMetaData, "date", date, 0);
av_dict_set(&pMetaData, "creation_time", date, 0);
av_dict_set(&pMetaData, "comment", "This video has been created using Eyeball MSDK", 0);

// ....................
// .................

/* write the stream header, if any */
int ret = avformat_write_header(m_pFormatCtx, &pMetaData);




I also tried to see if the file contains any metadata using
mediainfo
andexiftools
in linux. Also I triedffmpeg -i output.mov
but no metadata is shown.


Whats the problem ? Is the
flags
value0
inav_dict_set
okay ? DO I need to set different flags for different platform (windows/linux) ?


I saw this link and it stated that for windows, I have to use
id3v2_version 3
and-write_id3v1 1
to make metadata working. If so, how can I do this in C++ ?

-
How to create a video from images with timestamps, sizes and positions with ffmpeg
23 octobre 2022, par MaxouI want to convert a subtitle file (.sup) to a video file with transparency. To do that I convert my .sup file into a multitude of png files listed in a xml file.


XML File


<?xml version="1.0" encoding="UTF-8"?>
<bdn version="0.93">
 <description>
 <format videoformat="1080p" framerate="25" dropframe="False"></format>
 <events type="Graphic" firsteventintc="00:00:00:01" lasteventouttc="00:23:59:05" numberofevents="708"></events>
 </description>
 <events>
 <event intc="00:00:00:01" outtc="00:00:03:09" forced="False">
 <graphic width="1146" height="65" x="387" y="985">seq_0001.png</graphic>
 </event>
 <event intc="00:00:04:19" outtc="00:00:07:14" forced="False">
 <graphic width="1112" height="65" x="404" y="985">seq_0002.png</graphic>
 </event>
 <event intc="00:00:08:06" outtc="00:00:10:23" forced="False">
 <graphic width="681" height="65" x="619" y="985">seq_0003.png</graphic>
 </event>
 </events>
</bdn>



I tried to generate a video using this command


ffmpeg -t 20 -s 1920x1080 \
-f rawvideo -pix_fmt yuva420p -i /dev/zero \
-i seq-1.png \
-filter_complex "[0:v][1:v] overlay=25:25:enable='between(t,0,20)'" \
empty.webm



It works but it takes a long time and I only manage to do it with one image.


It is possible to generate a video with all the images (with size, position and timestamp) include in the xml file ?


-
Issues with using FFmpeg to generate MPEG-DASH files
26 septembre 2022, par Tina JI am using the following
ffmpeg
command to generate MPEG DASH files and manifest. I usesingle_file 1
to have a single file for each representation ; so no chunking. But IDK why when I want to play the manifest using ExoPlayer, the video doesn't play from the beginning (rather it starts from around 50s).

ffmpeg -re -i .\video-h264.mkv -map 0 -map 0 -c:a aac -c:v libx264 -b:v:0 800k -b:v:1 300k -s:v:1 320x170 -profile:v:1 baseline -profile:v:0 main -bf 1 -keyint_min 120 -g 120 -sc_threshold 0 -b_strategy 0 -ar:a:1 22050 -use_timeline 1 -single_file 1 -use_template 1 -window_size 5 -adaptation_sets "id=0,streams=v id=1,streams=a" -f dash out.mpd



What is wrong with this ? Is the manifest correct ? Here is the generated mpd :


<?xml version="1.0" encoding="utf-8"?>
<mpd xmlns="urn:mpeg:dash:schema:mpd:2011" profiles="urn:mpeg:dash:profile:isoff-live:2011" type="static" mediapresentationduration="PT1M20.1S" maxsegmentduration="PT5.0S" minbuffertime="PT16.0S">
 <programinformation>
 </programinformation>
 <servicedescription>
 </servicedescription>
 <period start="PT48.0S">
 <adaptationset contenttype="video" startwithsap="1" segmentalignment="true" bitstreamswitching="true" framerate="30/1" maxwidth="960" maxheight="540" par="517072:290799" lang="eng">
 <representation mimetype="video/mp4" codecs="avc1.4d401f" bandwidth="800000" width="960" height="540" sar="32317:32311">
 <baseurl>out-stream0.mp4</baseurl>
 <segmentlist timescale="1000000" duration="5000000" startnumber="7">
 <initialization range="0-832"></initialization>
 <segmenturl mediarange="4800141-5599188" indexrange="4800141-4800192"></segmenturl>
 <segmenturl mediarange="5599189-6243069" indexrange="5599189-5599240"></segmenturl>
 <segmenturl mediarange="6243070-7224302" indexrange="6243070-6243121"></segmenturl>
 <segmenturl mediarange="7224303-8138118" indexrange="7224303-7224354"></segmenturl>
 <segmenturl mediarange="8138119-8232111" indexrange="8138119-8138170"></segmenturl>
 </segmentlist>
 </representation>
 <representation mimetype="video/mp4" codecs="avc1.42c00d" bandwidth="300000" width="320" height="170" sar="549389:581598">
 <baseurl>out-stream2.mp4</baseurl>
 <segmentlist timescale="1000000" duration="5000000" startnumber="7">
 <initialization range="0-832"></initialization>
 <segmenturl mediarange="1782920-2005667" indexrange="1782920-1782971"></segmenturl>
 <segmenturl mediarange="2005668-2229412" indexrange="2005668-2005719"></segmenturl>
 <segmenturl mediarange="2229413-2615209" indexrange="2229413-2229464"></segmenturl>
 <segmenturl mediarange="2615210-2975346" indexrange="2615210-2615261"></segmenturl>
 <segmenturl mediarange="2975347-2999288" indexrange="2975347-2975398"></segmenturl>
 </segmentlist>
 </representation>
 </adaptationset>
 <adaptationset contenttype="audio" startwithsap="1" segmentalignment="true" bitstreamswitching="true" lang="eng">
 <representation mimetype="audio/mp4" codecs="mp4a.40.2" bandwidth="69000" audiosamplingrate="44100">
 <audiochannelconfiguration schemeiduri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="1"></audiochannelconfiguration>
 <baseurl>out-stream1.mp4</baseurl>
 <segmentlist timescale="1000000" duration="5000000" startnumber="12">
 <initialization range="0-764"></initialization>
 <segmenturl mediarange="491493-536039" indexrange="491493-491544"></segmenturl>
 <segmenturl mediarange="536040-580657" indexrange="536040-536091"></segmenturl>
 <segmenturl mediarange="580658-625158" indexrange="580658-580709"></segmenturl>
 <segmenturl mediarange="625159-669825" indexrange="625159-625210"></segmenturl>
 <segmenturl mediarange="669826-713289" indexrange="669826-669877"></segmenturl>
 </segmentlist>
 </representation>
 <representation mimetype="audio/mp4" codecs="mp4a.40.2" bandwidth="69000" audiosamplingrate="22050">
 <audiochannelconfiguration schemeiduri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="1"></audiochannelconfiguration>
 <baseurl>out-stream3.mp4</baseurl>
 <segmentlist timescale="1000000" duration="5000000" startnumber="12">
 <initialization range="0-764"></initialization>
 <segmenturl mediarange="486188-530059" indexrange="486188-486239"></segmenturl>
 <segmenturl mediarange="530060-574175" indexrange="530060-530111"></segmenturl>
 <segmenturl mediarange="574176-618922" indexrange="574176-574227"></segmenturl>
 <segmenturl mediarange="618923-663118" indexrange="618923-618974"></segmenturl>
 <segmenturl mediarange="663119-706121" indexrange="663119-663170"></segmenturl>
 </segmentlist>
 </representation>
 </adaptationset>
 </period>
</mpd>