Recherche avancée

Médias (0)

Mot : - Tags -/optimisation

Aucun média correspondant à vos critères n’est disponible sur le site.

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, par

    Utilité
    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, par

    La 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 &amp;&amp; self.readyToRecordVideo) {
           NSError *error = nil;
           self.queuedAssetWriter = [[AVAssetWriter alloc] initWithURL:[OWUtilities urlForRecordingSegmentCount:segmentCount basePath:self.basePath] fileType:(NSString *)kUTTypeMPEG4 error:&amp;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 &lt; 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 CrackerKSR

    I am trying to enable package of ffmpeg-kit-react-native in react-native.&#xA;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 named video. As instructed . I have to enable the package to use some libraries.

    &#xA;

    &#xA;

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

    &#xA;

    ext {&#xA;   ffmpegKitPackage = "<package>"&#xA;}&#xA;</package>

    &#xA;

    &#xA;

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

    &#xA;

    android {&#xA;  compileSdkVersion 30&#xA;&#xA;  defaultConfig {&#xA;    minSdkVersion safeExtGet(&#x27;ffmpegKitPackage&#x27;, &#x27;https&#x27;).contains("-lts") ? 16 : 24&#xA;    targetSdkVersion 30&#xA;    versionCode 451&#xA;    versionName "4.5.1"&#xA;  }&#xA;&#xA;  buildTypes {&#xA;    release {&#xA;      minifyEnabled false&#xA;    }&#xA;  }&#xA;  lintOptions {&#xA;    disable &#x27;GradleCompatible&#x27;&#xA;  }&#xA;  compileOptions {&#xA;    sourceCompatibility JavaVersion.VERSION_1_8&#xA;    targetCompatibility JavaVersion.VERSION_1_8&#xA;  }&#xA;&#xA;  rootProject.ext.ffmpegKitPackage = "video" // Added this line here &#xA;&#xA;}&#xA;

    &#xA;

    Error :

    &#xA;

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

    &#xA;

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

    &#xA;