Recherche avancée

Médias (1)

Mot : - Tags -/ticket

Autres articles (76)

  • Les sons

    15 mai 2013, par
  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

Sur d’autres sites (10098)

  • FFMPEG for iPhone recorded video encoding

    16 décembre 2011, par Sarah

    Hi found lots and lots of links for video encoding through ffmpeg 1,2,3,4 etc but they all start with using terminal commands but when i try to implement any on terminal like :

    git clone git ://github.com/lajos/iFrameExtractor.gitit says that-bash : git : command not found.

    Also as per my knowledge it is not possible to use terminal command on iPhone. Can anybody point out how to encode a video recorded through ffmpeg in mp4 format and also to reduce the size of the video ?Thanks in advance.

    EDIT :
    I am already implementing this method to resize my video and it successfully takes place and I am able to send the video on server but then on server side it's giving problem in retrieving the data and to use it.

    - (void)imagePickerController:(UIImagePickerController *)picker
    didFinishPickingMediaWithInfo:(NSDictionary *)info
    {
       [self convertVideoToLowQuailtyWithInputURL:videoURL1 outputURL:[NSURL fileURLWithPath:videoStoragePath] handler:^(AVAssetExportSession *exportSession)
        {
            if (exportSession.status == AVAssetExportSessionStatusCompleted)
            {
                NSLog(@"%@",exportSession.error);
                printf("completed\n");
            }
            else
            {
                NSLog(@"%@",exportSession.error);
                printf("error\n");
            }
        }];
    }

    - (void)convertVideoToLowQuailtyWithInputURL:(NSURL*)inputURL
                                      outputURL:(NSURL*)outputURL
                                        handler:(void (^)(AVAssetExportSession*))handler
    {
       [[NSFileManager defaultManager] removeItemAtURL:outputURL error:nil];
       AVURLAsset *asset = [AVURLAsset URLAssetWithURL:inputURL options:nil];
       AVAssetExportSession *exportSession = [[AVAssetExportSession alloc] initWithAsset:asset presetName:AVAssetExportPresetLowQuality];
       exportSession.outputURL = outputURL;
       exportSession.outputFileType = AVFileTypeQuickTimeMovie;
       [exportSession exportAsynchronouslyWithCompletionHandler:^(void)
        {
            handler(exportSession);
            [exportSession release];
        }];
    }
  • on PKG_CONFIG_PATH setting

    25 novembre 2016, par Kindermann

    I’ve installed ffmpeg on Ubuntu 16.04. Each time when I wanted to use pkg_config_path in a new terminal, I always had to type the following :

    export PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig"

    Is there a way where I can permanently set this path ?

  • pydub no ffprobe found

    21 septembre 2019, par Virgil Sisoe

    I have an app for MacOS that is compiled with py2app. The app uses the pydub module and the latter uses ffmpeg family package.

    The problem is that once I compile the app and move it to a different OS, the subprocess call from pydub fails to find any of the ffmpeg packages even though they are installed in /usr/local/bin.

    If I launch the app from terminal ./Nameapp.app/Contents/MacOs/Nameapp then it runs no problem, but if I launch it with double click then pydub complains not finding the packages and the app hangs where ffmpeg/ffprobe should do the work.

    I can see that pydub searches in the /usr/local/bin only if launched from terminal, otherwise no. If I add /usr/local/bin to PATH, pydub doesnt complain anymore that it doesnt find ffmpeg/ffprobe, but it still gives me an error for both ffmpeg and ffprobe : [Errno 2] No such file or directory:.

    If I hardcode the path pydub.AudioSegment.converter = "/usr/local/bin/ffmpeg", the app gives me only ffprobe error [Errno 2] No such file or directory:'ffprobe': 'ffprobe'.

    On some other posts i’ve seen pydub.AudioSegment.ffprobe = "/path/to/ffprobe" but it doesnt seem to work in my case ?

    So my two questions are :

    How to hardcode the ffprobe path in pydub ?
    How to solve this without hardcoding path ?