Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (70)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • Les statuts des instances de mutualisation

    13 mars 2010, par

    Pour des raisons de compatibilité générale du plugin de gestion de mutualisations avec les fonctions originales de SPIP, les statuts des instances sont les mêmes que pour tout autre objets (articles...), seuls leurs noms dans l’interface change quelque peu.
    Les différents statuts possibles sont : prepa (demandé) qui correspond à une instance demandée par un utilisateur. Si le site a déjà été créé par le passé, il est passé en mode désactivé. publie (validé) qui correspond à une instance validée par un (...)

Sur d’autres sites (11235)

  • Using Coldfusion's CFFILE tag to monitor a progress log from FFMpeg

    5 mai 2013, par user1493918

    I want to learn how to use the CFFILE tag from ColdFusion to read the contents of a text file. In my case, that text file is a progress log that is generated by FFMpeg while it transcodes a media file. I want to write a ColdFusion script that will poll the progress log periodically, until the log indicates that FFMpeg has finished its transcoding operation. On the client side I can then use Ajax to hit that ColdFusion script and show the user a "percentage completed" while FFMpeg does its work.

    I got FFMpeg to generate the log file by using a new "progress" flag that recent versions of FFMpeg now support. Below I'll show you the way to use this flag, and also the generated output within the log file.

    Here's the FFMpeg command :

    ffmpeg -i c:\my_original_file.ogg c:\my_converted_file.mp3 -progress c:\my_progress.txt

    The above command will cause FFMpeg to generate a log file called my_progress.txt.

    Here's what it generates in the log file :

    total_size=206150
    out_time_ms=51410044
    out_time=00:00:51.410044
    dup_frames=0
    drop_frames=0
    progress=continue

    The above 6 lines are generated repeatedly in the log file, with increasing values.

    total_size=206150
    out_time_ms=51410044
    out_time=00:00:51.410044
    dup_frames=0
    drop_frames=0
    progress=continue
    total_size=412413
    out_time_ms=102975756
    out_time=00:01:42.975756
    dup_frames=0
    drop_frames=0
    progress=continue
    total_size=618363
    out_time_ms=154463111
    out_time=00:02:34.463111
    dup_frames=0
    drop_frames=0
    progress=continue
    total_size=824939
    out_time_ms=206107189
    out_time=00:03:26.107189
    dup_frames=0
    drop_frames=0
    progress=continue

    Finally, when the job completes, the final block of 6 lines are the last ones in the log file. Notice the "progress=end" on the last line :

    total_size=9725902
    out_time_ms=2431348011
    out_time=00:40:31.348011
    dup_frames=0
    drop_frames=0
    progress=end

    I want to write a Coldfusion script using the CFFILE tag to read only the last 6 lines of the file (no matter how large the file has become), and to do this each time the script is called, by the browser, via Ajax. Finally I need to parse the values on these lines into variables so I can return some data to the caller.

    I've researched progress bars for FFMpeg but they're in PHP which is hard for me, and besides, they parse the older formatted versions of FFMpeg's log files, and I would like to use the above newer formatting. Can anyone please help ?

  • Tools for investigating video corruption — ffmpeg / libavcodec

    11 juillet 2013, par Gopherkhan

    In my current work I'm trying to encode some images to h264 video using the FFMPEG's C library. The resulting video plays fine in VLC, but has no preview image. The video can play in VLC and Mplayer on ubuntu, but won't play on Mac or PC (in fact, it causes a "VTDecoderXPCService quit unexpectedly" error on Mac).

    If I run the resulting file through FFMPEG using the command line, the resulting file has a preview image, and plays correctly everywhere.

    Apparently the file that I get out of the program is corrupt in some weird place, but I don't have any output during my compilation or run to indicate where. I can't share my code at the moment (work code isn't open source yet :-( ), but I have tried a number of things :

    1. Writing only header and trailer data (av_write_trailer) and no frames
    2. writing frames only minus the trailer (using avcodec_encode_video2 and av_write_frame)
    3. Adjusting our time_base and frame pts values to encode only one frame per second
    4. Removing all variable frame rate code
    5. Numerous other variants that I won't bother you with here

    In creating my project, I've also followed the following tutorials :

    And consulted the deprecated ffmpeg functions list

    And compiled FFMPEG on ubuntu according to the official doc

    But every run of the program runs into the exact same problem.

    My question is, is there anything obvious that causes a programmatic run of FFMpeg to differ from a console run (e.g., an incomplete finalization, some threading issues, etc.) ? Like some obvious reason that a console run could repair a corrupted file ? Or is there a decent tool/method for inspecting a video file and finding the point of corruption ?

  • FFMPEG library Integration unsuccess

    1er septembre 2017, par Alok Kumar Verma

    I’m stuck with the integration of the FFMPEG file. I’m using Android Studio 2.3.3

    I’ve followed this link and hence got to know how to do this but all I’m getting is a failure.

    Links

    1. How to integrate the FFMPEG in your android
    2. Integrating android FFMPEG

    Now I"ve my ndk installed in this path : /Users/alok/Library/Android/sdk/ndk-bundle

    And I’ve downloaded the newest version of the FFMPEG i.e., 3.3.3 unzipped it in the sources folder of ndk-bundle

    Now I’ve followed this and implemented everything as said.

    • Editing the Configure File using TEXTVIEW in my mac
    • Creating a file name build_android.sh and copy pasting the given code. However I’ve changed the NDK path in my case in the code the code is here

      NDK=/Users/alok/Library/Android/sdk/ndk-bundle
      SYSROOT=$NDK/platforms/android-23/arch-arm/
      TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64
    • Now opening the folder through terminal and then typing this command sudo chmod +x build_android.sh followed by this sudo ./build_android.sh

    The result is : No android name folder created inside under the folder FFMPEG 3.3.3 in this root i.e., /ndk-bundle/sources/ffmpeg 3.3.3/

    and the terminal shows this output :

    ./configure: line 3341: syntax error near unexpected token `2'

    ./configure: line 3341:

    DEPCMD='$(DEP$(1)) $(DEP$(1)FLAGS) $($(1)DEP_FLAGS) $< 2>/dev/null | sed -e "/^\#.*/d" -e "s,^[[:space:]]*$(@F),$(@D)/$(@F)," > $(@:.o=.d)''
    Makefile:2: config.mak: No such file or directory
    Makefile:67: /common.mak: No such file or directory
    Makefile:114: /libavutil/Makefile: No such file or directory
    Makefile:114: /library.mak: No such file or directory
    Makefile:116: /doc/Makefile: No such file or directory
    Makefile:206: /tests/Makefile: No such file or directory
    make: *** No rule to make target /tests/Makefile'. Stop.

    Hence I’m not been able to move next due to this which creating a JNI folder and stuff. I’m a beginner with FFMPEG and want to integrate it.

    NOTE : I’ve already used this library in my gradle

    compile ‘com.writingminds:FFmpegAndroid:0.3.2’

    For easy approach and things are working fine too but due to the older version I’m getting wrong outputs, so need to update it and there is one way and this is the way to do it.