Advanced search

Medias (2)

Tag: - Tags -/documentation

Other articles (62)

  • Le profil des utilisateurs

    12 April 2011, by

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • HTML5 audio and video support

    13 April 2011, by

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • Configurer la prise en compte des langues

    15 November 2010, by

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

On other websites (4810)

  • exec function not working as expected

    6 March 2016, by Albert

    I am running a shell function from php to convert a video file to flash once it is uploaded. The exec function is like this:

    exec("ffmpeg -i " . WWW_ROOT . "files" . DS . "videos" . DS . $id . $ext . " -ar 22050 -r 32 -f flv -s 640x480 " . WWW_ROOT . "files" . DS . "videos" . DS . $id . ".flv");

    // if I echo the string it returns:
    // ffmpeg -i /home/vceroot/public_html/example.com/test/intraweb/app/webroot/files/videos/516c1203-0484-417a-b047-5488c40293e9.mpg -ar 22050 -r 32 -f flv -s 640x480 /home/vceroot/public_html/example.com/test/intraweb/app/webroot/files/videos/516c1203-0484-417a-b047-5488c40293e9.flv
    // the locations are correct

    However, it does not convert the video.

    After it uploaded the file, it just goes back to the index action. There is no converted file although the uploaded file is there.

    My permissions on the folder is 755. And the folder owner is apache. I don’t know what else to do. Can anyone assist me?

    UPDATE

    So I’ve changed my exec query a bit and echoed the output:

    exec("ffmpeg -i " . WWW_ROOT . "files" . DS . "videos" . DS . $id . $ext . " -ar 22050 -r 32 -f flv -s 640x480 " . WWW_ROOT . "files" . DS . "videos" . DS . $id . ".flv 2>&1", $output, $return);
    die(print_r($output));

    This returned the following error:

    Array ( [0] => sh: ffmpeg: command not found ) 1

    So I changed it a bit to this:

    exec("/usr/local/bin/ffmpeg -i " . WWW_ROOT . "files" . DS . "videos" . DS . $id . $ext . " -ar 22050 -r 32 -f flv -s 640x480 " . WWW_ROOT . "files" . DS . "videos" . DS . $id . ".flv 2>&1", $output, $return);
    die(print_r($output));

    And now it returns:

    Array ( [0] => /usr/local/bin/ffmpeg: error while loading shared libraries: libavdevice.so.55: cannot open shared object file: No such file or directory ) 1

    Where do I go from here?

  • ffmpeg in opencv 2.4

    27 August 2012, by Josh Elsdon

    I am using opencv, but it is very pick with video types that it will open. I have version 2.4 of opencv and it apparently has ffmpeg support built in, though it does not open any movie files correctly, obj.grab() returns false and retrieve(frame,0) return NULL. So it seems to me that FFmpeg is not working correctly, is there something I need to do to turn it on, from internet searches people seem to suggest that from 2.4 onward it is a non-issue(though apparently not). Any help, all the other threads seem to just aout stop short of the answer for me.

    (windows 7, Visual studio 2010, opencv 2.4)

  • AndroidBitmap_lockPixels failing with -3 code

    24 April 2013, by user1568549

    In my jni module I copy images to bitmaps, which were previously
    passed from my java application.

    I do this using AndroidBitmap_lockPixels/AndroidBitmap_unlockPixels.
    Basically, it renders the image correctly, but there're strange
    effects: sometimes the application gets stuck, or after some time
    AndroidBitmap_lockPixels always returns -3

    (ANDROID_BITMAP_RESULT_ALLOCATION_FAILED). I guess this is because I
    update these bitmaps not from the GUI thread, isn't it?

    If so, what would be correct way to "post" this operation to the GUI

    thread? Is it possible in jni ?

    Thanks.