
Recherche avancée
Autres articles (64)
-
Les images
15 mai 2013 -
Récupération d’informations sur le site maître à l’installation d’une instance
26 novembre 2010, parUtilité
Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...) -
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 (...)
Sur d’autres sites (8388)
-
fate : Add a —target-samples path parameter
20 mai 2013, par Martin Storsjöfate : Add a —target-samples path parameter
This allows having the samples accessible via different paths
on the target and on the host.Signed-off-by : Martin Storsjö <martin@martin.st>
- [DBH] configure
- [DBH] tests/fate.sh
- [DBH] tests/fate/aac.mak
- [DBH] tests/fate/ac3.mak
- [DBH] tests/fate/adpcm.mak
- [DBH] tests/fate/alac.mak
- [DBH] tests/fate/als.mak
- [DBH] tests/fate/amrnb.mak
- [DBH] tests/fate/amrwb.mak
- [DBH] tests/fate/atrac.mak
- [DBH] tests/fate/audio.mak
- [DBH] tests/fate/bmp.mak
- [DBH] tests/fate/cdxl.mak
- [DBH] tests/fate/cover-art.mak
- [DBH] tests/fate/demux.mak
- [DBH] tests/fate/dfa.mak
- [DBH] tests/fate/dpcm.mak
- [DBH] tests/fate/ea.mak
- [DBH] tests/fate/filter-audio.mak
- [DBH] tests/fate/filter-video.mak
- [DBH] tests/fate/flac.mak
- [DBH] tests/fate/h264.mak
- [DBH] tests/fate/image.mak
- [DBH] tests/fate/indeo.mak
- [DBH] tests/fate/lossless-audio.mak
- [DBH] tests/fate/lossless-video.mak
- [DBH] tests/fate/microsoft.mak
- [DBH] tests/fate/monkeysaudio.mak
- [DBH] tests/fate/mp3.mak
- [DBH] tests/fate/mpc.mak
- [DBH] tests/fate/pcm.mak
- [DBH] tests/fate/probe.mak
- [DBH] tests/fate/prores.mak
- [DBH] tests/fate/qt.mak
- [DBH] tests/fate/qtrle.mak
- [DBH] tests/fate/real.mak
- [DBH] tests/fate/screen.mak
- [DBH] tests/fate/utvideo.mak
- [DBH] tests/fate/video.mak
- [DBH] tests/fate/voice.mak
- [DBH] tests/fate/vorbis.mak
- [DBH] tests/fate/vpx.mak
- [DBH] tests/fate/vqf.mak
- [DBH] tests/fate/wavpack.mak
- [DBH] tests/fate/wma.mak
-
How to using every 5 sec generate video output File Path to Encode with RTMP Formate write data in ios ? [on hold]
16 juillet 2015, par Sandeep Joshi(void) segmentRecording:(NSTimer*)timer {
if (!shouldBeRecording) {
[timer invalidate];
}
AVAssetWriter *tempAssetWriter = self.assetWriter;
AVAssetWriterInput *tempAudioEncoder = self.audioEncoder;
AVAssetWriterInput *tempVideoEncoder = self.videoEncoder;
self.assetWriter = queuedAssetWriter;
self.audioEncoder = queuedAudioEncoder;
self.videoEncoder = queuedVideoEncoder;
NSLog(@"Switching encoders");
dispatch_async(segmentingQueue, ^{
if (tempAssetWriter.status == AVAssetWriterStatusWriting) {
@try {
[tempAudioEncoder markAsFinished];
[tempVideoEncoder markAsFinished];
[tempAssetWriter finishWritingWithCompletionHandler:^{
if (tempAssetWriter.status == AVAssetWriterStatusFailed) {
[self showError:tempAssetWriter.error];
} else {
[self uploadLocalURL:tempAssetWriter.outputURL];
}
}];
}
@catch (NSException *exception) {
NSLog(@"Caught exception: %@", [exception description]);
//[BugSenseController logException:exception withExtraData:nil];
}
}
self.segmentCount++;
if (self.readyToRecordAudio && self.readyToRecordVideo) {
NSError *error = nil;
self.queuedAssetWriter = [[AVAssetWriter alloc] initWithURL:[OWUtilities urlForRecordingSegmentCount:segmentCount basePath:self.basePath] fileType:(NSString *)kUTTypeMPEG4 error:&error];
if (error) {
[self showError:error];
}
self.queuedVideoEncoder = [self setupVideoEncoderWithAssetWriter:self.queuedAssetWriter formatDescription:videoFormatDescription bitsPerSecond:videoBPS];
self.queuedAudioEncoder = [self setupAudioEncoderWithAssetWriter:self.queuedAssetWriter formatDescription:audioFormatDescription bitsPerSecond:audioBPS];
//NSLog(@"Encoder switch finished");
}
});}
(void) uploadLocalURL:(NSURL*)url {
NSLog(@"upload local url: %@", url);
NSString *inputPath = [url path];
NSString *outputPath = [inputPath stringByReplacingOccurrencesOfString:@".mp4" withString:@".ts"];
NSString *outputFileName = [outputPath lastPathComponent];
NSDictionary *options = @{kFFmpegOutputFormatKey: @"mpegts"};
NSLog(@"%@ conversion...", outputFileName);
[ffmpegWrapper convertInputPath:[url path] outputPath:outputPath options:options progressBlock:nil completionBlock:^(BOOL success, NSError *error) {
if (success) {
if (!isRtmpConnected) {
isRtmpConnected = [rtmp openWithURL:HOST_URL enableWrite:YES];
}
isRtmpConnected = [rtmp isConnected];
if (isRtmpConnected) {
NSData *video = [NSData dataWithContentsOfURL:[NSURL URLWithString:outputPath]];
NSUInteger length = [video length];
NSUInteger chunkSize = 1024 * 5;;
NSUInteger offset = 0;
NSLog(@"original video length: %lu \n chunkSize : %lu", length,chunkSize);
// Let's split video to small chunks to publish to media server
do {
NSUInteger thisChunkSize = length - offset > chunkSize ? chunkSize : length - offset;
NSData* chunk = [NSData dataWithBytesNoCopy:(char *)[video bytes] + offset
length:thisChunkSize
freeWhenDone:NO];
offset += thisChunkSize;
// Write new chunk to rtmp server
NSLog(@"%lu", (unsigned long)[rtmp write:chunk]);
sleep(1);
} while (offset < length);
}else{
[rtmp close];
}
} else {
NSLog(@"conversion error: %@", error.userInfo);
}
}];}This code use for live streaming for send data using RTMP Wrapper.
Not write in Socket properly because every 5 second to generate different file output file.This is proper way ?
I have no idea how to get NSData in proper way.
Please help me .
-
2 files found with path 'lib/arm64-v8a/libc++_shared.so' from inputs...-react native
19 septembre 2024, par CrackerKSRI am trying to enable package of ffmpeg-kit-react-native in react-native.
The sample commands given in the example executes successfully. But I want to use
libwebp
for converting gif files to webp which is under package namedvideo
. As instructed . I have to enable the package to use some libraries.



2.2.1 Enabling a Package on Android
Edit android/build.gradle file and add the package name in ext.ffmpegKitPackage variable.


ext {
 ffmpegKitPackage = "<package>"
}
</package>




So I added a line in the
node_module/ffmpeg-kit-react-native/android/build.gradle


android {
 compileSdkVersion 30

 defaultConfig {
 minSdkVersion safeExtGet('ffmpegKitPackage', 'https').contains("-lts") ? 16 : 24
 targetSdkVersion 30
 versionCode 451
 versionName "4.5.1"
 }

 buildTypes {
 release {
 minifyEnabled false
 }
 }
 lintOptions {
 disable 'GradleCompatible'
 }
 compileOptions {
 sourceCompatibility JavaVersion.VERSION_1_8
 targetCompatibility JavaVersion.VERSION_1_8
 }

 rootProject.ext.ffmpegKitPackage = "video" // Added this line here 

}



Error :


* What went wrong:
Execution failed for task ':app:mergeDebugNativeLibs'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.MergeJavaResWorkAction
 > 2 files found with path 'lib/arm64-v8a/libc++_shared.so' from inputs:
 - C:\Users\ADMIN\.gradle\caches\transforms-3\7403ebe5571a2ce5a6a5fc9876af4814\transformed\jetified-react-native-0.66.4\jni
 - C:\Users\ADMIN\.gradle\caches\transforms-3\4be54e44fe38656741a8345504588323\transformed\jetified-ffmpeg-kit-video-4.5.1-1\jni
 If you are using jniLibs and CMake IMPORTED targets, see
 https://developer.android.com/r/tools/jniLibs-vs-imported-targets



I have tried ./gradlew clean but problem is still there.
How to fix this error ?