Recherche avancée

Médias (0)

Mot : - Tags -/api

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

Autres articles (50)

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

  • Problèmes fréquents

    10 mars 2010, par

    PHP et safe_mode activé
    Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
    La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

Sur d’autres sites (8076)

  • Python program which reads and extracts specific information from JSON file generated by FFPROBE

    3 février 2017, par Georgе Stoyanov

    I want to create a simple Python script, which runs a custom ffprobe script and then extracts some specific information from the generated JSON file. So the ffprobe command is :

    ffprobe -v quiet -print_format json -show_format -show_streams example.mp4 > output.json

    This command is extracting the video specific information into output.json file. Then I want to read the file and extract some specific information out of it. For example the JSON file has the following format :

    {
       "streams": [
           {
               "index": 0,
               "codec_name": "h264",
               "codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",
               "profile": "High 4:2:2 Intra",
               "codec_type": "video",
               "codec_time_base": "1/100",
               "codec_tag_string": "[0][0][0][0]",
               "codec_tag": "0x0000",
               "width": 3840,
               "height": 2160,
               "coded_width": 3840,
               "coded_height": 2160,
               "has_b_frames": 0,
               "sample_aspect_ratio": "1:1",
               "display_aspect_ratio": "16:9",
               "pix_fmt": "yuv422p10le",
               "level": 52,
               "color_range": "tv",
               "color_space": "bt709",
               "color_transfer": "bt709",
               "color_primaries": "bt709",
               "chroma_location": "left",
               "field_order": "progressive",
               "refs": 1,
               "is_avc": "false",
               "nal_length_size": "0",
               "r_frame_rate": "50/1",
               "avg_frame_rate": "50/1",
               "time_base": "1/50",
               "start_pts": 0,
               "start_time": "0.000000",
               "duration_ts": 15000,
               "duration": "300.000000",
               "bits_per_raw_sample": "10",
               "disposition": {
                   "default": 0,
                   "dub": 0,
                   "original": 0,
                   "comment": 0,
                   "lyrics": 0,
                   "karaoke": 0,
                   "forced": 0,
                   "hearing_impaired": 0,
                   "visual_impaired": 0,
                   "clean_effects": 0,
                   "attached_pic": 0,
                   "timed_thumbnails": 0
               },
               "tags": {
                   "file_package_umid": "0x060A2B340101010501010D0013EC94F152947134B6EC94F10052947134B6EC01",
                   "file_package_name": "Source Package"
               }
           }
       ],
       "format": {
           "filename": "300sec.mxf",
           "nb_streams": 1,
           "nb_programs": 0,
           "format_name": "mxf",
           "format_long_name": "MXF (Material eXchange Format)",
           "start_time": "0.000000",
           "duration": "300.000000",
           "size": "16772788991",
           "bit_rate": "447274373",
           "probe_score": 100,
           "tags": {
               "uid": "adab4424-2f25-4dc7-92ff-29bd000c0000",
               "generation_uid": "adab4424-2f25-4dc7-92ff-29bd000c0001",
               "company_name": "FFmpeg",
               "product_name": "OP1a Muxer",
               "product_version": "57.66.101",
               "product_uid": "adab4424-2f25-4dc7-92ff-29bd000c0002",
               "modification_date": "0-01-02T00:00:00.000000Z",
               "material_package_umid": "0x060A2B340101010501010D0013EC94F152947134B6EC94F10052947134B6EC00",
               "timecode": "00:00:00:00"
           }
       }
    }

    Perfect will be if the Python script runs and then asks you for the path to the input file.

    Unfortunately I have very little experience with Python, but it comes pre-installed on my system and I want to use it. The other option is to write a bash script doing the same. Any suggestions will be greatly appreciated.

    So far I have figured out how I can open the JSON file and to extract data from it using :

    import json

    with open('output.json') as json_data:
       data = json.load(json_data)
       json_data.close()
       print(data["streams"][0]["codec_name"])
       print(data["streams"][0]["profile"])
  • The C compiler "clang.exe" is not able to compile a simple test program

    8 octobre 2020, par M. Bilal Asif

    I am trying to compile shell script that compiles the C project library, but i am stuck at this when it comes to compile the nmake part.

    


    I am using NDK 21 and cmake version is 3.10

    


    I am using shell script using bash same as defined here, i want to compress this library as they showing in the docs running ./android.sh

    


    Please check the link : https://github.com/tanersener/mobile-ffmpeg#52-build-scripts

    


    here is the attached log :

    


    DEBUG: Downloading library source: cpu-features

DEBUG: Checking if cpu-features is already downloaded at /d/Bilals/Projects/GithubProjects/mobile-ffmpeg/src/cpu-features

INFO: cpu-features library already downloaded

INFO: cpu-features already downloaded. Source folder found at /d/Bilals/Projects/GithubProjects/mobile-ffmpeg/src/cpu-features

-- Building for: NMake Makefiles
-- Check for working C compiler: D:/Bilals/PcBackupData/sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe
CMake Error: Generator: execution of make failed. Make command was: "nmake" "/NOLOGO" "cmTC_adf3f\fast"
-- Check for working C compiler: D:/Bilals/PcBackupData/sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -- broken
CMake Error at D:/Bilals/PcBackupData/sdk/cmake/3.10.2.4988404/share/cmake-3.10/Modules/CMakeTestCCompiler.cmake:52 (message):
  The C compiler

    "D:/Bilals/PcBackupData/sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: D:/Bilals/Projects/GithubProjects/mobile-ffmpeg/android/build/cpu-features/arm/CMakeFiles/CMakeTmp
    
    Run Build Command:"nmake" "/NOLOGO" "cmTC_adf3f\fast"
    The system cannot find the file specified
    Generator: execution of make failed. Make command was: "nmake" "/NOLOGO" "cmTC_adf3f\fast"
    

  

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:9 (project)


-- Configuring incomplete, errors occurred!
See also "D:/Bilals/Projects/GithubProjects/mobile-ffmpeg/android/build/cpu-features/arm/CMakeFiles/CMakeOutput.log".
See also "D:/Bilals/Projects/GithubProjects/mobile-ffmpeg/android/build/cpu-features/arm/CMakeFiles/CMakeError.log".


    


    and here is my environmental variables

    


    enter image description here

    


  • build : Conditionally build and run DCT test program

    21 juillet 2014, par Diego Biurrun
    build : Conditionally build and run DCT test program
    
    • [DBH] libavcodec/Makefile
    • [DBH] libavcodec/dct-test.c
    • [DBH] tests/fate/libavcodec.mak