Recherche avancée

Médias (2)

Mot : - Tags -/rotation

Autres articles (42)

  • MediaSPIP Init et Diogène : types de publications de MediaSPIP

    11 novembre 2010, par

    À l’installation d’un site MediaSPIP, le plugin MediaSPIP Init réalise certaines opérations dont la principale consiste à créer quatre rubriques principales dans le site et de créer cinq templates de formulaire pour Diogène.
    Ces quatre rubriques principales (aussi appelées secteurs) sont : Medias ; Sites ; Editos ; Actualités ;
    Pour chacune de ces rubriques est créé un template de formulaire spécifique éponyme. Pour la rubrique "Medias" un second template "catégorie" est créé permettant d’ajouter (...)

  • Librairies et logiciels spécifiques aux médias

    10 décembre 2010, par

    Pour un fonctionnement correct et optimal, plusieurs choses sont à prendre en considération.
    Il est important, après avoir installé apache2, mysql et php5, d’installer d’autres logiciels nécessaires dont les installations sont décrites dans les liens afférants. Un ensemble de librairies multimedias (x264, libtheora, libvpx) utilisées pour l’encodage et le décodage des vidéos et sons afin de supporter le plus grand nombre de fichiers possibles. Cf. : ce tutoriel ; FFMpeg avec le maximum de décodeurs et (...)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

Sur d’autres sites (8103)

  • Any way to use ffmpeg from a php file ? [closed]

    13 juin 2020, par MartinNajemi

    i was wondering if there was a way that i could use ffmpeg on a cheap shared web server, one without command line access which doesnt allow packages or libraries to be installed but relies on a file manager and php files. my question is, can i somehow get a php file for ffmpeg instead of the .exe so that i can combine video and audio into one file ?

    



    if there are alternatives for this that are not ffmpeg and run on a single php file which i can use using something like this :

    



    include “php/combineVideoAudio.php” ;

    



    without having to install it using a command line or a remote access tool please let me know.

    



    thanks

    


  • How to do Slow Motion video in IOS

    17 janvier 2017, par 2vision2

    I have to do "slow motion" in a video file along with audio, in-between some frames and need to store the ramped video as a new video.

    Ref : http://www.youtube.com/watch?v=BJ3_xMGzauk (watch from 0 to 10s)

    From my analysis, I’ve found that AVFoundation framework can be helpful.

    Ref :
    http://developer.apple.com/library/ios/#documentation/AudioVideo/Conceptual/AVFoundationPG/Articles/00_Introduction.html

    Copy and pasted from the above link :

    "
    Editing
    AV Foundation uses compositions to create new assets from existing pieces of media (typically, one or more video and audio tracks). You use a mutable composition to add and remove tracks, and adjust their temporal orderings. You can also set the relative volumes and ramping of audio tracks ; and set the opacity, and opacity ramps, of video tracks. A composition is an assemblage of pieces of media held in memory. When you export a composition using an export session, it’s collapsed to a file.
    On iOS 4.1 and later, you can also create an asset from media such as sample buffers or still images using an asset writer.

    "

    Questions :
    Can I do " slow motion " the video/audio file using the AVFoundation framework ? Or Is there any other package available ? If i want to handle audio and video separately, please guide me how to do ?

    Update : : Code For AV Export Session :

    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
       NSString *outputURL = paths[0];
       NSFileManager *manager = [NSFileManager defaultManager];
       [manager createDirectoryAtPath:outputURL withIntermediateDirectories:YES attributes:nil error:nil];
       outputURL = [outputURL stringByAppendingPathComponent:@"output.mp4"];
       // Remove Existing File
       [manager removeItemAtPath:outputURL error:nil];
       AVAssetExportSession *exportSession = [[AVAssetExportSession alloc] initWithAsset:self.inputAsset presetName:AVAssetExportPresetLowQuality];
       exportSession.outputURL = [NSURL fileURLWithPath:outputURL]; // output path;
       exportSession.outputFileType = AVFileTypeQuickTimeMovie;
       [exportSession exportAsynchronouslyWithCompletionHandler:^(void) {
           if (exportSession.status == AVAssetExportSessionStatusCompleted) {
               [self writeVideoToPhotoLibrary:[NSURL fileURLWithPath:outputURL]];
               ALAssetsLibrary *library = [[ALAssetsLibrary alloc] init];
               [library writeVideoAtPathToSavedPhotosAlbum:[NSURL fileURLWithPath:outputURL] completionBlock:^(NSURL *assetURL, NSError *error){
                   if (error) {
                       NSLog(@"Video could not be saved");
                   }
               }];
           } else {
               NSLog(@"error: %@", [exportSession error]);
           }
       }];
  • How to do Slow Motion video in IOS

    4 mai 2022, par 2vision2

    I have to do "slow motion" in a video file along with audio, in-between some frames and need to store the ramped video as a new video.

    



    Ref : http://www.youtube.com/watch?v=BJ3_xMGzauk (watch from 0 to 10s)

    



    From my analysis, I've found that AVFoundation framework can be helpful.

    



    Ref :
http://developer.apple.com/library/ios/#documentation/AudioVideo/Conceptual/AVFoundationPG/Articles/00_Introduction.html

    



    Copy and pasted from the above link :

    



    "
Editing
AV Foundation uses compositions to create new assets from existing pieces of media (typically, one or more video and audio tracks). You use a mutable composition to add and remove tracks, and adjust their temporal orderings. You can also set the relative volumes and ramping of audio tracks ; and set the opacity, and opacity ramps, of video tracks. A composition is an assemblage of pieces of media held in memory. When you export a composition using an export session, it's collapsed to a file.
On iOS 4.1 and later, you can also create an asset from media such as sample buffers or still images using an asset writer.

    



    "

    



    Questions :
Can I do " slow motion " the video/audio file using the AVFoundation framework ? Or Is there any other package available ? If i want to handle audio and video separately, please guide me how to do ?

    



    Update : : Code For AV Export Session :

    



     NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
    NSString *outputURL = paths[0];
    NSFileManager *manager = [NSFileManager defaultManager];
    [manager createDirectoryAtPath:outputURL withIntermediateDirectories:YES attributes:nil error:nil];
    outputURL = [outputURL stringByAppendingPathComponent:@"output.mp4"];
    // Remove Existing File
    [manager removeItemAtPath:outputURL error:nil];
    AVAssetExportSession *exportSession = [[AVAssetExportSession alloc] initWithAsset:self.inputAsset presetName:AVAssetExportPresetLowQuality];
    exportSession.outputURL = [NSURL fileURLWithPath:outputURL]; // output path;
    exportSession.outputFileType = AVFileTypeQuickTimeMovie;
    [exportSession exportAsynchronouslyWithCompletionHandler:^(void) {
        if (exportSession.status == AVAssetExportSessionStatusCompleted) {
            [self writeVideoToPhotoLibrary:[NSURL fileURLWithPath:outputURL]];
            ALAssetsLibrary *library = [[ALAssetsLibrary alloc] init];
            [library writeVideoAtPathToSavedPhotosAlbum:[NSURL fileURLWithPath:outputURL] completionBlock:^(NSURL *assetURL, NSError *error){
                if (error) {
                    NSLog(@"Video could not be saved");
                }
            }];
        } else {
            NSLog(@"error: %@", [exportSession error]);
        }
    }];