Recherche avancée

Médias (0)

Mot : - Tags -/api

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

Autres articles (31)

  • Encodage et transformation en formats lisibles sur Internet

    10 avril 2011

    MediaSPIP transforme et ré-encode les documents mis en ligne afin de les rendre lisibles sur Internet et automatiquement utilisables sans intervention du créateur de contenu.
    Les vidéos sont automatiquement encodées dans les formats supportés par HTML5 : MP4, Ogv et WebM. La version "MP4" est également utilisée pour le lecteur flash de secours nécessaire aux anciens navigateurs.
    Les documents audios sont également ré-encodés dans les deux formats utilisables par HTML5 :MP3 et Ogg. La version "MP3" (...)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

Sur d’autres sites (3400)

  • ffmpeg with Flutter - Error in my code - Video not created

    30 juillet 2020, par cssler

    I try to create a video from images with flutter and ffmpeg. I think the logic of my code is correct, but I always get the return value 1 which says that the execute was not successfull.

    


    Do you find the error in my code ?

    


    Future<void> _onCreateVideoFromImages() async {&#xA;      Directory tempDir = await getTemporaryDirectory();&#xA;      String tempPath = tempDir.path;&#xA;&#xA;      final allPictures = await picturesData.getPicturesFromAlbum(albumID);&#xA;&#xA;      List textFileMap = [];&#xA;&#xA;      for (var i = 0; i &lt; allPictures.length; i&#x2B;&#x2B;) {&#xA;        var file = File(allPictures[i].path);&#xA;&#xA;        final newFile = await file&#xA;            .copySync("$tempPath/img${i.toString().padLeft(4, &#x27;0&#x27;)}.jpg");&#xA;&#xA;        print("File has been moved successfully to temporary folder: $newFile");&#xA;&#xA;        textFileMap.add("file &#x27;" &#x2B; newFile.path &#x2B; "&#x27;");&#xA;      }&#xA;&#xA;      print("Final list:");&#xA;      print(textFileMap);&#xA;&#xA;      print("Create txt file for ffmpeg");&#xA;      final File file = File(&#x27;${tempPath}/images.txt&#x27;);&#xA;      final textFile = await file.writeAsString(textFileMap.join("\n"));&#xA;      print("txt file created successfully: $textFile");&#xA;&#xA;      await _flutterFFmpeg.execute(&#xA;              "ffmpeg -f concat -safe 0 -i $textFile -c copy $tempPath/output.mp4")&#xA;          .then((rc) {&#xA;        if (rc == 0) {&#xA;          print("Video completed");&#xA;        } else {&#xA;          print(rc); // Returns 1&#xA;        }&#xA;      });&#xA;    }&#xA;</void>

    &#xA;

    And here the console log

    &#xA;

    flutter: File has been moved successfully to temporary folder: File: &#x27;/var/mobile/Containers/Data/Application/C28A04D5-76DF-450B-8F63-75CD39BC927F/Library/Caches/img0001.jpg&#x27;&#xA;flutter: Final list::&#xA;flutter: [file &#x27;/var/mobile/Containers/Data/Application/C28A04D5-76DF-450B-8F63-75CD39BC927F/Library/Caches/img0000.jpg&#x27;, file &#x27;/var/mobile/Containers/Data/Application/C28A04D5-76DF-450B-8F63-75CD39BC927F/Library/Caches/img0001.jpg&#x27;]&#xA;flutter: Create txt file for ffmpeg"&#xA;flutter: txt file created successfully: &#x27;/var/mobile/Containers/Data/Application/C28A04D5-76DF-450B-8F63-75CD39BC927F/Library/Caches/images.txt&#x27;&#xA;flutter: Code: 1&#xA;

    &#xA;

    I appreciate your help !

    &#xA;

  • Join videos command line debian [on hold]

    2 avril 2014, par Roman

    Good evening

    I'm looking for a solution for the following problem :
    I have to join multiple video files (webM-format) with different settings (resolution, fps, ...) into one final file. I should also add an additional audio-track who's exactly as long as all video files together (wav-format).

    I've tried it with ffmpeg and concat like this :
    ffmpeg -i "concat:file1.webm|file2.webm|file3.webm" -vcodec libvpx -s 1280x720 -i track.wav -acodec libfaac -ab 128k -async 10 final.webm

    Result : Worked fine, but just with the first video file. All the others were ignored by ffmpeg.

    Have you any other solution for this problem ?

    Best Regards,
    Roman Ackermann

  • Was able to mix two audio files and 1 video, but the audio is not in sync with the video

    15 janvier 2019, par Sumeet

    I am trying to mix 2 audio files, say audio1.mp3 and audio2.wav with a video file, say video.mp4. I was able to mix the files into one file, say final.mp4, but the audio and video in the final file is not in sync.
    I used amix to mix the files using command prompt.
    I am not able to figure out how to use apad in my command line to see if that works. Should I really be using apad or am I on the wrong track ?

    ffmpeg -i video.mp4 -i audio1.mp3 -i audio2.wav -filter_complex "[1][2]amix=inputs=2[a]" -map 0:v -map "[a]" -c:v copy outputfilename.mp4