
Recherche avancée
Autres articles (35)
-
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 (...) -
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...) -
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;
Sur d’autres sites (3790)
-
Android ffmpeg command shows java.io.IOException : Error running exec()
26 mai 2023, par JamalI would like to use
ffmpeg
binary executable in my Android project.for this purpose I have used pre built ffmpeg Android binary from this(https://github.com/hiteshsondhi88/ffmpeg-android/releases/download/v0.3.3/prebuilt-binaries.zip) link.


As per procedure I have to place the
executable
file into/data/data/com.example.rampedsample
directory, herecom.example.rampedsample
is my project packageName.I couldn't find this location in my device as it is un rooted.So I pasted that executable intoAndroid emulator
'scom.example.rampedsample
directory usingDDMS
perspective.


In my Activity used the below code



try {
 Process p = Runtime.getRuntime().exec("/data/data/com.example.rampedsample/ffmpeg "+Environment.getExternalStorageDirectory()+"/Movies/ramp_video.mp4"
 +" -map 0:v -codec copy "+Environment.getExternalStorageDirectory()+"/Movies/ramp_video2.mp4");


 } catch (IOException e) {
 // TODO Auto-generated catch block
 e.printStackTrace();
 }




AndroidManifest permission








error



04-13 16:59:55.314: W/System.err(11387): java.io.IOException: Error running exec(). Command: [/data/data/com.example.rampedsample/ffmpeg, /mnt/sdcard/Movies/ramp_video.mp4, -map, 0:v, -codec, copy, /mnt/sdcard/Movies/ramp_video2.mp4] Working Directory: null Environment: null
04-13 16:59:55.314: W/System.err(11387): at java.lang.ProcessManager.exec(ProcessManager.java:211)
04-13 16:59:55.355: W/System.err(11387): at java.lang.Runtime.exec(Runtime.java:168)
04-13 16:59:55.355: W/System.err(11387): at java.lang.Runtime.exec(Runtime.java:241)
04-13 16:59:55.355: W/System.err(11387): at java.lang.Runtime.exec(Runtime.java:184)
04-13 16:59:55.355: W/System.err(11387): at com.example.rampedsample.MainActivity.onCreate(MainActivity.java:18)
04-13 16:59:55.355: W/System.err(11387): at android.app.Activity.performCreate(Activity.java:5008)
04-13 16:59:55.355: W/System.err(11387): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)



-
How to distinguish a physical D3D adapter from a virtual adapter used by the Remote Desktop Protocol ?
31 octobre 2023, par rustakI'm currently developing a desktop application(c#/wpf) that decodes video using FFmpeg. I would like to give the user the option to select an adapter for video decoding. I'm using Direct3D method
EnumAdapters
to list available adapters on current device which works fine. The list of available adapters looks something like this :

Adapter 0
 Description: Intel(R) HD Graphics 630
 Vendor ID: 0x8086
 Device ID: 0x5912
 SubSys ID: 0x86941043
 Revision: 4
 Luid: 46459
 Flags: None
 Dedicated Video Memory: 128 MB
 Dedicated System Memory: 0 MB
 Shared System Memory: 8092 MB
Adapter 2
 Description: Microsoft Basic Render Driver
 Vendor ID: 0x1414
 Device ID: 0x8C
 SubSys ID: 0x0
 Revision: 0
 Luid: 50158
 Flags: Software
 Dedicated Video Memory: 0 MB
 Dedicated System Memory: 0 MB
 Shared System Memory: 8092 MB



I have noticed that an additional adapter appears in the list of available adapters when RDP is used. The additional adapter has the same properties as the physical one ; the only difference is in the LUID. The output looks something like this :


Adapter 0
 Description: Intel(R) HD Graphics 630
 Vendor ID: 0x8086
 Device ID: 0x5912
 SubSys ID: 0x86941043
 Revision: 4
 Luid: 46459
 Flags: None
 Dedicated Video Memory: 128 MB
 Dedicated System Memory: 0 MB
 Shared System Memory: 8092 MB
Adapter 1 // <- additional addapter
 Description: Intel(R) HD Graphics 630 
 Vendor ID: 0x8086
 Device ID: 0x5912
 SubSys ID: 0x86941043
 Revision: 4
 Luid: 1322913970
 Flags: None
 Dedicated Video Memory: 128 MB
 Dedicated System Memory: 0 MB
 Shared System Memory: 8092 MB
Adapter 2
 Description: Microsoft Basic Render Driver
 Vendor ID: 0x1414
 Device ID: 0x8C
 SubSys ID: 0x0
 Revision: 0
 Luid: 50158
 Flags: Software
 Dedicated Video Memory: 0 MB
 Dedicated System Memory: 0 MB
 Shared System Memory: 8092 MB



I'm aware that the additional adapter is some kind of virtual adapter used by RDP. I have tried both of them, and it seems that both are suitable for video decoding using FFmpeg.


However, from a UX perspective, it doesn't look or feel right that the combo box contains two adapters with the same name. So my question is : how can I distinguish a physical adapter from a virtual adapter used by the Remote Desktop Protocol ?


-
checkasm/sw_rgb : Revert test additions from e18b46d95fadcbaaf450bda9f1871849f2b0c586
26 septembre 2024, par Martin Storsjöcheckasm/sw_rgb : Revert test additions from e18b46d95fadcbaaf450bda9f1871849f2b0c586
The unaligned width test cases fail on i386 ; we have an assembly
function of rgb24toyv12 which is enabled only within
"#if ARCH_X86_32 && HAVE_7REGS", which seems to fail these new
test cases for unaligned widths.As that assembly function has existed for a long time in that form,
the issue probably isn't very recent, thus skip testing these cases
for now.Once the assembly function has been fixed, these test cases can
be readded.Signed-off-by : Martin Storsjö <martin@martin.st>