
Recherche avancée
Autres articles (36)
-
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...) -
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
Personnaliser les catégories
21 juin 2013, parFormulaire de création d’une catégorie
Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire.
Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)
Sur d’autres sites (7755)
-
injecting id3 tags to mpegts using mpegtsmux with gstreamer
12 octobre 2020, par igal kSo I'm trying to demux a .ts file with mpegtsdemux, make some calculations with the elementary streams and re-mux everything back to using the same mpegts container, this works pretty well with the video and audio streams, however im having some difficulties with the data stream(#2) that holds
timed_id3
packets. In this case, i simply want to passthrough them as they are untouched, however, neither the deumxer nor the muxer can identify that stream or create the appropriate pads, needless to say, connect the successfully after the pipeline goes from paused to running.

here's the details of my file, extracted using
ffmpeg
:

Stream #0:0[0x101]: Audio: aac (HE-AAC) ([15][0][0][0] / 0x000F), 48000
Hz, stereo, fltp, 117 kb/s
 Stream #0:1[0x102]: Video: h264 (High) ([27][0][0][0] / 0x001B),
yuv420p(tv, bt709, progressive), 1280x720, Closed Captions, 59.94 fps, 59.94
tbr, 90k tbn, 96k tbc
 Stream #0:2[0x103]: Data: timed_id3 (ID3 / 0x20334449)



so far, I have managed to generate only meta/x-klv caps but that's not what i really need. Any other attempts ended with
not-negotiated
error orinternal stream error
.

i have also read that one may
request-pads
from the muxer, but that also failed.

std::stringstream ss;
 ss << "src_" << streamIdx_;
 gstSrc_ = gst_element_factory_make("appsrc", ss.str().c_str());
 gst_bin_add_many(GST_BIN(pipeline), gstSrc_, nullptr);
 GstPadTemplate* mux_src_pad_template = gst_element_class_get_pad_template(GST_ELEMENT_GET_CLASS(mux), "sink_%d");
 GstCaps* caps = gst_caps_new_simple("private/x-timed_id3", NULL);
 GstPad* pad = gst_element_request_pad(mux, mux_src_pad_template, nullptr, caps);
 
 gboolean success = gst_element_link_pads(gstSrc_, "src", mux, gst_pad_get_name(pad));
 g_object_set(gstSrc_, "format", GST_FORMAT_TIME, nullptr); 
 gst_caps_unref(caps);



-
How we can capture entire screen screenshot using android application via programming
18 novembre 2022, par Krunal IndrodiyaCan anyone having idea how we can capture entire screen screenshot including other application overlay menu and toast using android application programming not for adb commands and manual button press.


I have went through some of the code which is taking screenshot excluding toast and other application overlay displayed on my screen.


Below code is only capturing activity view screenshot not capturing any other app overrlay menu and toast. Mostly because of
val v1: View = window.decorView
this line.

val mPath: String = context.cacheDir.absolutePath + "/temp_${System.currentTimeMillis()}" + ".png"
// create bitmap screenshot
val v1: View = window.decorView
v1.isDrawingCacheEnabled = true
val bitmap = Bitmap.createBitmap(v1.drawingCache)
v1.isDrawingCacheEnabled = false
val imageFile = File(mPath)
val outputStream = FileOutputStream(imageFile)
val quality = 100
bitmap.compress(Bitmap.CompressFormat.PNG, quality, outputStream)
outputStream.flush()
outputStream.close()



Also try to execute command to capture screenshot via app programming but not get succeed,


val process = Runtime.getRuntime().exec("su")
val os = DataOutputStream(process.outputStream)
val cmd= "exec-out screencap"
os.writeBytes(cmd)
os.close()



Requirement


- 

- Listener to identify if any other app displaying overlay menu.
- I would like to capture screenshot when any other application overlay is displayed on my screen and screenshot must contains other application overlay.






Please let me know how can i archive this. I really appreciate for your single reply or answer. Thanks in advance.


-
Shows improper/corrupted TS segments from Opencv webcam and FFmpeg
30 juin 2020, par playmaker420Im experimenting with opencv and ffmpeg to create a live hls stream from the webcam using some scripts


The ffmpeg version i use is 3.4


frame-detection.py


import numpy as np
import cv2
import sys


cap = cv2.VideoCapture(0)

while(True):
 # Capture frame-by-frame
 ret, frame = cap.read()
 framestring = frame.tostring()
 sys.stdout.write(str(framestring))

 # Display the resulting frame
 cv2.imshow('frame', frame)
 if cv2.waitKey(1) & 0xFF == ord('q'):
 break

# When everything done, release the capture
cap.release()
cv2.destroyAllWindows()



hlslive_generator.sh


#!/bin/bash

# Create folder from args
mkdir -p $1

# Get into the folder
cd $1

# Start running FFmpeg HLS Live streaming
python frame-detection.py | ffmpeg \
 -f rawvideo \
 -framerate 10 \
 -video_size 640x480 \
 -i - foo.mp4 \
 -vcodec libx264 \
 -acodec copy \
 -pix_fmt yuv420p \
 -color_range 2 \
 -hls_time 1 \
 -hls_list_size 5 \
 -hls_flags delete_segments \
 -use_localtime 1 \
 -hls_segment_filename '%Y%m%d-%s.ts' \
 ./playlist.m3u8



I used the following commands to run the scripts and it creates a folder and generate ts segments in it


./hlslive_generator.sh hlssegments



The issue i face here is with the created ts files, on playing these segments with the video player it shows improper/corrupted segments.


Can someone help me to identify the issue ? Thanks in advance