
Recherche avancée
Autres articles (62)
-
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
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 -
Changer son thème graphique
22 février 2011, parLe thème graphique ne touche pas à la disposition à proprement dite des éléments dans la page. Il ne fait que modifier l’apparence des éléments.
Le placement peut être modifié effectivement, mais cette modification n’est que visuelle et non pas au niveau de la représentation sémantique de la page.
Modifier le thème graphique utilisé
Pour modifier le thème graphique utilisé, il est nécessaire que le plugin zen-garden soit activé sur le site.
Il suffit ensuite de se rendre dans l’espace de configuration du (...)
Sur d’autres sites (11257)
-
Theora : Ptalarbvorm project update 20100518
Monty of Xiph.org Foundation has given us a demonstration update of the latest development going into the Ptalarbvorm Theora encoder, which is lined-up to be released as libtheora 1.2. The demo includes screenshots comparing the latest development code with the … Read more (...)
-
select a screen section ffmpeg c++ on macos
21 avril 2022, par C1ngh10I am trying to record the screen on macos, with ffmpeg. I would like to be able to select a section of the screen instead of the whole desktop. I tried to set several options such as
vf
, with values like"crop=150:150:0:0"
, orvideo_size
with value"150x150"
. The result was that the output video had the correct dimensions (150x150) but whole screen has been recorded instead of the specified section. Does anybody know another way to do that ?

int ScreenRecorder::openVideoDevice() {
 value = 0;
 videoOptions = nullptr;
 pAVFormatContext = nullptr;

 pAVFormatContext = avformat_alloc_context();


 string dimension = to_string(width) + "x" + to_string(height);
 av_dict_set(&videoOptions, "video_size", dimension.c_str(), 0); //option to set the dimension of the screen section to record
 value = av_dict_set(&videoOptions, "framerate", "25", 0);
 if (value < 0) {
 cerr << "Error in setting dictionary value (setting framerate)" << endl;
 exit(-1);
 }

 value = av_dict_set(&videoOptions, "preset", "ultrafast", 0);
 if (value < 0) {
 cerr << "Error in setting dictionary value (setting preset value)" << endl;
 exit(-1);
 }

 //The distance from the left edge of the screen or desktop
 value = av_dict_set(&videoOptions, "vf", ("crop=" + to_string(width) + ":" + to_string(height) + ":" + to_string(x_offset) + ":" +
 to_string(y_offset)).c_str(), 0);

 if (value < 0) {
 cerr << "Error in setting crop" << endl;
 exit(-1);
 }

 value = av_dict_set(&videoOptions, "pixel_format", "yuv420p", 0);
 if (value < 0) {
 cerr << "Error in setting pixel format" << endl;
 exit(-1);
 }
 
 pAVInputFormat = av_find_input_format("avfoundation");

 if (avformat_open_input(&pAVFormatContext, "1:none", pAVInputFormat, &videoOptions) != 0) {
 cerr << "Error in opening input device" << endl;
 exit(-1);
 }
 //get video stream infos from context
 value = avformat_find_stream_info(pAVFormatContext, nullptr);
 if (value < 0) {
 cerr << "Error in retrieving the stream info" << endl;
 exit(-1);
 }

 VideoStreamIndx = -1;
 for (int i = 0; i < pAVFormatContext->nb_streams; i++) {
 if (pAVFormatContext->streams[i]->codecpar->codec_type == AVMEDIA_TYPE_VIDEO) {
 VideoStreamIndx = i;
 break;
 }
 }
 if (VideoStreamIndx == -1) {
 cerr << "Error: unable to find video stream index" << endl;
 exit(-2);
 }

 pAVCodecContext = pAVFormatContext->streams[VideoStreamIndx]->codec;
 pAVCodec = avcodec_find_decoder(pAVCodecContext->codec_id/*params->codec_id*/);
 if (pAVCodec == nullptr) {
 cerr << "Error: unable to find decoder video" << endl;
 exit(-1);
 }

 return 0;
}



-
full screen preview in javacv RecordActivity
14 avril 2016, par mghaffariI use the RecordActivity sample
how to set initialize full screen with correct ratio and best resolution in any device and camera ?
I tested any typical solution for android, but non of them gave me the outcome I wanted. Some of them caused the phone to go heated, and some of them caused the app to stop.
If you have any ideas or solutions using which I can use to solve my problem in RecordActivity class, it would be very kind of you to share it with me. Thanks in advance.https://github.com/bytedeco/javacv/blob/master/samples/RecordActivity.java