Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (62)

  • 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

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • 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 (...)

Sur d’autres sites (7435)

  • AR.Drone 2, ffmpeg avcodec_decode_video2( ) segmentation fault

    21 avril 2014, par mechanicalmanb

    I have been trying to decode the video stream from an AR.Drone 2.0 (http://ardrone2.parrot.com/) for a while now with no success. Despite several examples that I have been following closely (I’d paste links, but I am not allowed) I cannot escape a segmentation fault inside of the ffmpeg libavcodec library. I thought that perhaps I was making some kind of mistake in the multi-threaded structure I was building, so I cut out everything except the bare minimum you need to connect to the drone, collect a frame from the drone, and send it to ffmpeg’s avcodec_decode_video2() function.

    I compiled the ffmpeg source (I’ve actually tried three different releases !) and can get the ffplay utility to display the drone’s video TCP stream. The video lags significantly, but at least I know the drone isn’t sending me complete gibberish.

    Has anyone encountered a problem like this before ? What could be causing this segmentation fault, and what can I do about it ? Is there a way to isolate a test on ffmpeg so that I can be sure it is the library and not something I’ve been doing this entire time ?

    Thanks for your time.

    A pastebin with my code :
    http://pastebin.com/NYTf0NeT

    Some details on my ffmpeg and compiler set up :

    ffmpeg version 2.2.git Copyright (c) 2000-2014 the FFmpeg developers
     built on Mar  3 2014 18:05:42 with gcc 4.8 (Ubuntu 4.8.1-2ubuntu1~12.04)
     configuration:
     libavutil      52. 66.100 / 52. 66.100
     libavcodec     55. 52.102 / 55. 52.102
     libavformat    55. 33.100 / 55. 33.100
     libavdevice    55. 10.100 / 55. 10.100
     libavfilter     4.  2.100 /  4.  2.100
     libswscale      2.  5.101 /  2.  5.101
     libswresample   0. 18.100 /  0. 18.100

    The output of my code and a backtrace at the segmentation fault :

    *********************** START ***********************



    booting...

    [h264 @ 0x604040] err{or,}_recognition separate: 1; 1

    [h264 @ 0x604040] err{or,}_recognition combined: 1; 1

    [h264 @ 0x604040] Unsupported bit depth: 0

    asked for 40000 bytes, received packet of 1448 bytes

    PaVE synchronized. YIPEEEEEEEEEEEEEEEEEEEEEEEE



    ---------------------------

    Codec : H264

    StreamID : 1

    Timestamp : 1031517 ms

    Encoded dims : 640 x 368

    Display dims : 640 x 360

    Header size : 76

    Payload size : 17583

    Size of SPS inside payload : 14

    Size of PPS inside payload : 10

    Slices in the frame : 1

    Frame Type / Number : IDR-Frame : 31467 : slide 1/1

    ---------------------------




    gathering payload...

    asked for 16211 bytes, received packet of 1448 bytes

    gathering payload...

    asked for 14763 bytes, received packet of 1448 bytes

    gathering payload...

    asked for 13315 bytes, received packet of 1448 bytes

    gathering payload...

    asked for 11867 bytes, received packet of 1448 bytes

    gathering payload...

    asked for 10419 bytes, received packet of 1448 bytes

    gathering payload...

    asked for 8971 bytes, received packet of 1448 bytes

    gathering payload...

    asked for 7523 bytes, received packet of 1448 bytes

    gathering payload...

    asked for 6075 bytes, received packet of 1448 bytes

    gathering payload...

    asked for 4627 bytes, received packet of 1448 bytes

    gathering payload...

    asked for 3179 bytes, received packet of 1448 bytes

    gathering payload...

    asked for 1731 bytes, received packet of 1448 bytes

    gathering payload...

    asked for 283 bytes, received packet of 283 bytes

    payload complete, attempting to decode frame




    Program received signal SIGSEGV, Segmentation fault.

    0x00007ffff73fccba in ?? () from /usr/lib/x86_64-linux-gnu/libavcodec.so.53

    (gdb) bt

    #0  0x00007ffff73fccba in ?? () from /usr/lib/x86_64-linux-gnu/libavcodec.so.53

    #1  0x00007ffff73fd8f5 in avcodec_decode_video2 () from /usr/lib/x86_64-linux-gnu/libavcodec.so.53

    #2  0x000000000040159f in fetch_and_decode(int, parrot_video_encapsulation_t, AVCodecContext*, AVFrame*)

       ()

    #3  0x00000000004019c6 in main ()

    EDIT : I used Valgrind to try and get a better picture of the seg fault, and received the following :

    ==4730== Invalid read of size 1
    ==4730==    at 0x5265CBA: ??? (in /usr/lib/x86_64-linux-gnu/libavcodec.so.53.35.0)
    ==4730==    by 0x52668F4: avcodec_decode_video2 (in /usr/lib/x86_64-linux-gnu/libavcodec.so.53.35.0)
    ==4730==    by 0x40140E: fetch_and_decode(int, AVCodecContext*, AVFrame*) (main.cpp:176)
    ==4730==    by 0x401757: main (main.cpp:273)
    ==4730==  Address 0x280056c46f9 is not stack'd, malloc'd or (recently) free'd
    ==4730==
    ==4730==
    ==4730== Process terminating with default action of signal 11 (SIGSEGV)
    ==4730==  Access not within mapped region at address 0x280056C46F9
    ==4730==    at 0x5265CBA: ??? (in /usr/lib/x86_64-linux-gnu/libavcodec.so.53.35.0)
    ==4730==    by 0x52668F4: avcodec_decode_video2 (in /usr/lib/x86_64-linux-gnu/libavcodec.so.53.35.0)
    ==4730==    by 0x40140E: fetch_and_decode(int, AVCodecContext*, AVFrame*) (main.cpp:176)
    ==4730==    by 0x401757: main (main.cpp:273)

    "Invalid read size of 1" refers to trying to access a byte outside the bounds of an array. Does this mean that the library is trying to access something outside the bounds of an array I’m giving it ? I’ve checked the AVPkt, and that seems fine. I’m still stumped !

  • add libaribb24 ARIB STD-B24 caption decoder

    14 janvier 2019, par Jan Ekström
    add libaribb24 ARIB STD-B24 caption decoder
    

    * Outputs ASS lines with basic coloring and font scaling for each
    given region.
    * Sets the default style to the resolution of the subtitle plane
    (for example, 960x540 / 36pt font for profile A).
    * Has options to :
    * Disable ruby text (which is coded as regions which have
    half-height text in libaribb24).
    Enabled by default as without positioning ruby text only
    confuses as it is usually coded in the beginning of the decoded
    subtitle line.
    * Set the working directory, in which libaribb24 will read
    configuration as well as into which it may save broadcast extra
    symbols as PNG.
    Unset by default.

    The unconventional library check can be explained by the library's
    current master branch being licensed as LGPLv3, but at the time of
    writing the latest official release is still licensed under GPLv3.

    Thus, one either has to wait for the following release, or enable
    GPLv3.

    • [DH] Changelog
    • [DH] configure
    • [DH] doc/decoders.texi
    • [DH] libavcodec/Makefile
    • [DH] libavcodec/allcodecs.c
    • [DH] libavcodec/avcodec.h
    • [DH] libavcodec/codec_desc.c
    • [DH] libavcodec/libaribb24.c
    • [DH] libavcodec/profiles.c
    • [DH] libavcodec/profiles.h
    • [DH] libavcodec/version.h
  • AWS lambda SAM deploy error - Template format error : Unresolved resource dependencies

    1er juin 2022, par mozenge

    I have am trying to deploy an aws lambda function using the SAM cli. I have some layers defined in the sam template. Testing locally using sam local start-api works quite well. The but deploying using the sam deploy --guided command throws the following error
Error: Failed to create changeset for the stack: sam-app, ex: Waiter ChangeSetCreateComplete failed: Waiter encountered a terminal failure state: For expression "Status" we matched expected path: "FAILED" Status: FAILED. Reason: Template format error: Unresolved resource dependencies [arn:aws:lambda:us-west-1:338231645678:layer:ffmpeg:1] in the Resources block of the template

    


    The SAM template is as follows

    


    AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: >
  video-processor-functions

  Functions to generate gif and thumbnail from uploaded videos
  
# More info about Globals: https://github.com/awslabs/serverless-application-model/blob/master/docs/globals.rst
Globals:
  Function:
    Timeout: 3
    Tracing: Active

Resources:
  VideoProcessorFunctions:
    Type: AWS::Serverless::Function # More info about Function Resource: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction
    Properties:
      CodeUri: src/
      Handler: app.lambdaHandler
      Runtime: nodejs14.x
      # timeout in seconds - 2 minutes
      Timeout: 120
      Layers:
        - !Ref VideoProcessorDepLayer
        - !Ref arn:aws:lambda:us-west-1:338231645678:layer:ffmpeg:1
      Architectures:
        - x86_64
      Events:
        HelloWorld:
          Type: Api # More info about API Event Source: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#api
          Properties:
            Path: /hello
            Method: get

  VideoProcessorDepLayer:
    Type: AWS::Serverless::LayerVersion
    Properties:
      LayerName: mh-video-processor-dependencies
      Description: Dependencies for sam app [video-processor-functions]
      ContentUri: dependencies/
      CompatibleRuntimes:
        - nodejs14.17
      LicenseInfo: 'MIT'
      RetentionPolicy: Retain

Outputs:
  # ServerlessRestApi is an implicit API created out of Events key under Serverless::Function
  # Find out more about other implicit resources you can reference within SAM
  # https://github.com/awslabs/serverless-application-model/blob/master/docs/internals/generated_resources.rst#api
  HelloWorldApi:
    Description: "API Gateway endpoint URL for Prod stage for Hello World function"
    Value: !Sub "https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/Prod/hello/"
  VideoProcessorFunctions:
    Description: "Generate GIF and Thumnail from Video"
    Value: !GetAtt VideoProcessorFunctions.Arn
  VideoProcessorFunctionsIamRole:
    Description: "Implicit IAM Role created for MH Video Processor function"
    Value: !GetAtt VideoProcessorFunctionsRole.Arn



    


    Any ideas what i'm doing wrong ?