Recherche avancée

Médias (91)

Autres articles (50)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

  • Gestion de la ferme

    2 mars 2010, par

    La ferme est gérée dans son ensemble par des "super admins".
    Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
    Dans un premier temps il utilise le plugin "Gestion de mutualisation"

Sur d’autres sites (8023)

  • FFMPEG "no such file or directory" on Android

    25 mars 2013, par Feras

    I am trying to use the ffmpeg binary and call it via a native linux command in android. Most of the commands work fine but the problem is that when i need to pass an http url as an input to the -i option i get "No such file or directory" for the url. The url however is existing and running the SAME command on a mac does the job as expected.

    Here is my compile config for the ffmpeg build :

    ./configure \
    $DEBUG_FLAG \
    --arch=arm \
    --cpu=cortex-a8 \
    --target-os=linux \
    --enable-runtime-cpudetect \
    --prefix=$prefix \
    --enable-pic \
    --disable-shared \
    --enable-static \
    --cross-prefix=$NDK_TOOLCHAIN_BASE/bin/$NDK_ABI-linux-androideabi- \
    --sysroot="$NDK_SYSROOT" \
    --extra-cflags="-I../x264 -mfloat-abi=softfp -mfpu=neon" \
    --extra-ldflags="-L../x264" \
    \
    --enable-version3 \
    --enable-gpl \
    \
    --disable-doc \
    --enable-yasm \
    \
    --enable-decoders \
    --enable-nonfree \
    --enable-encoders \
    --enable-muxers \
    --enable-demuxers \
    --enable-parsers \
    --enable-protocols \
    --enable-protocol=http \
    --enable-filters \
    --enable-avresample \
    \
    --disable-indevs \
    --enable-indev=lavfi \
    \
    --enable-hwaccels \
    \
    --enable-ffmpeg \
    --enable-ffplay \
    --enable-libmp3lame \
    --enable-network \
    \
    --enable-libx264 \
    --enable-libfaac \
    --enable-zlib

    Its based off of this project : https://github.com/guardianproject/android-ffmpeg-java

    Command is something along the lines of that :

    ffmpeg -i "http://someurl" -f mp3 -ab 192000 -vn demoo.mp3

    The idea being to download the audio track from a video and encode it as mp3. I explicitly added multiple enable protocols options but nothing seems to do the job. I tried an alternative config as well, removing everything below enable-gpl just to make sure there arent any conflicts, but it fires the same error. If i give it a normal filesystem path it works fine.

    Following the comments here is the exact output of the command and the output :

    03-25 00:22:08.806: VERBOSE/FFMPEG(16491): /data/data/org.ffmpeg.android/app_bin/ffmpeg -i "http://r6---sn-gvbxgn-tt1d.c.youtube.com/videoplayback?ipbits=8&cp=U0hVSVJLV19KUUNONV9KRUFJOnQ0STMtb0JXc0py&sparams=cp%2Cid%2Cip%2Cipbits%2Citag%2Cratebypass%2Csource%2Cupn%2Cexpire&id=c0045acebe0c3341&upn=IVAGxSD1hE0&source=youtube&ratebypass=yes&mv=m&key=yt1&expire=1364209857&itag=18&ms=au&ip=99.234.119.90&mt=1364185033&fexp=923418%2C901802%2C906383%2C902000%2C919512%2C913605%2C931202%2C900821%2C900823%2C931203%2C931401%2C908529%2C919373%2C930803%2C920201%2C929602%2C930101%2C930603%2C926403%2C900824%2C910223&sver=3&newshard=yes&signature=838AEB4650D8353B70DBC49341E0C40706DC6153.297639FD70A7F9710F29AE9E278A4FC4A32E0C67" -f mp3 -ab 192000 -vn /data/data/org.ffmpeg.android/files/demoooo.mp3 -loglevel debug
    03-25 00:22:08.956: DEBUG/ffmpeg(16491): Process exited with code:1
    03-25 00:22:08.966: DEBUG/ffmpeg(16491): Shell output:ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers
    03-25 00:22:08.976: DEBUG/ffmpeg(16491): Shell output:  built on Mar 24 2013 02:24:38 with gcc 4.6 20120106 (prerelease)
    03-25 00:22:08.976: DEBUG/ffmpeg(16491): Shell output:  configuration: --arch=arm --cpu=cortex-a8 --target-os=linux --enable-runtime-cpudetect --prefix=/data/data/info.guardianproject.ffmpeg/app_opt --enable-pic --disable-shared --enable-static --cross-prefix=/Users/feribg/Dev/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86/bin/arm-linux-androideabi- --sysroot=/Users/feribg/Dev/android-ndk-r8d/platforms/android-3/arch-arm --extra-cflags='-I../x264 -mfloat-abi=softfp -mfpu=neon' --extra-ldflags=-L../x264 --enable-version3 --enable-gpl
    03-25 00:22:08.976: DEBUG/ffmpeg(16491): Shell output:  libavutil      51. 54.100 / 51. 54.100
    03-25 00:22:08.976: DEBUG/ffmpeg(16491): Shell output:  libavcodec     54. 23.100 / 54. 23.100
    03-25 00:22:08.976: DEBUG/ffmpeg(16491): Shell output:  libavformat    54.  6.100 / 54.  6.100
    03-25 00:22:08.986: DEBUG/ffmpeg(16491): Shell output:  libavdevice    54.  0.100 / 54.  0.100
    03-25 00:22:08.996: DEBUG/ffmpeg(16491): Shell output:  libavfilter     2. 77.100 /  2. 77.100
    03-25 00:22:08.996: DEBUG/ffmpeg(16491): Shell output:  libswscale      2.  1.100 /  2.  1.100
    03-25 00:22:08.996: DEBUG/ffmpeg(16491): Shell output:  libswresample   0. 15.100 /  0. 15.100
    03-25 00:22:08.996: DEBUG/ffmpeg(16491): Shell output:  libpostproc    52.  0.100 / 52.  0.100
    03-25 00:22:08.996: DEBUG/ffmpeg(16491): Shell output:"http://r6---sn-gvbxgn-tt1d.c.youtube.com/videoplayback?ipbits=8&cp=U0hVSVJLV19KUUNONV9KRUFJOnQ0STMtb0JXc0py&sparams=cp%2Cid%2Cip%2Cipbits%2Citag%2Cratebypass%2Csource%2Cupn%2Cexpire&id=c0045acebe0c3341&upn=IVAGxSD1hE0&source=youtube&ratebypass=yes&mv=m&key=yt1&expire=1364209857&itag=18&ms=au&ip=99.234.119.90&mt=1364185033&fexp=923418%2C901802%2C906383%2C902000%2C919512%2C913605%2C931202%2C900821%2C900823%2C931203%2C931401%2C908529%2C919373%2C930803%2C920201%2C929602%2C930101%2C930603%2C926403%2C900824%2C910223&sver=3&newshard=yes&signature=838AEB4650D8353B70DBC49341E0C40706DC6153.297639FD70A7F9710F29AE9E278A4FC4A32E0C67": No such file or directory
  • php sequential exec() processes not working (ffmpeg encode)

    26 juillet 2012, par Allen Hall

    I am trying to run a php script from shell that will query a table of videos, check if the encoded version of that video exists, and if not, encode one. I have tested all of the contents of the exec() commands outside of php so I know they work fine. My problem is when the ffmpeg line runs, it finishes but the script quits. I want it to run the next exec() and I don't understand why it won't.

    Also to avoid confusion, I am not trying to run these simultaneously, and I don't care about running in the background since this is running from the shell anyway. I just want these 4 commands to execute sequentially and then continue to the next file.

    include 'inc/functions.php';

    $result = mysql_query("SELECT * FROM videos") or die(mysql_error());

    while ($row = mysql_fetch_array($result)) {
       if(!file_exists('/opt/lampp/htdocs/videos/'.$row['file_folder'].'/'.$row['file_name'].'.mp4')) {
           exec('ffmpeg -i "/opt/lampp/htdocs/videos/'.$row['file_folder'].'/'.$row['file_name'].'" -vcodec libx264 -vpre fast -b 512k -acodec libfaac -ab 128k -ac 2 "/opt/lampp/htdocs/videos/'.$row['file_folder'].'/output.mp4"') or die('could not encode movie');
           exec('/usr/lib/qt-faststart "/opt/lampp/htdocs/videos/'.$row['file_folder'].'/output.mp4" "/opt/lampp/htdocs/videos/'.$row['file_folder'].'/'.$row['file_name'].'.mp4"') or die('could not move mp4 atoms');
           exec('rm -f "/opt/lampp/htdocs/videos/'.$row['file_folder'].'/output.mp4"') or die('could not delete original encode');
           exec('ffmpeg -ss 00:00:30.00 -i "/opt/lampp/htdocs/videos/'.$row['file_folder'].'/'.$row['file_name'].'" -y -f image2 -vcodec mjpeg -vframes 1 "'.$row['file_name'].'.jpg"') or die('could not create screenshot');
       }
    }
  • Why is my ffmpeg stream subprocess freezing at 6 minutes ?

    13 novembre 2014, par nonlinearmind

    I have a ffmpeg pipeline in a shell script that is launched as a subprocess in Python. For some reason, when Python launches the script, my video streams perfectly and then freezes at about six minutes every time. After it freezes, if I tried to run the script manually, it gives me this error :

    Invalid MIT-MAGIC-COOKIE-1 keyxcb_connection_has_error() returned true
    Failed to symlink
    /root/.pulse/65f3ded611649c6dcf9ebae20000046d-runtime to
    /tmp/pulse-PKdhtXMmr18n : Input/output error [alsa @ 0x4b2f0] cannot
    open audio device hw:0,0 (Device or resource busy) hw:0,0 :
    Input/output error

    However, if I restart and run the script manually, the audio & video will play fine indefinitely.

    Does anyone know why this is happening ? Thanks.

    Here is my pipline.sh file :

    sudo ffmpeg -f video4linux2 -video_size 640x480 -framerate 30 -input_format yuyv422 -i /dev/video7 -f alsa  -i hw:0,0 -map 0:0 -map 1:0  -b:v 120k -bufsize 120k -vcodec libx264 -preset ultrafast -crf 28 -acodec aac -strict -2  -f flv -metadata streamName= StreamName tcp://71.192.1.22

    And this is the subprocess I’m using in Python :

    subprocess.Popen("sudo ./ffmpeg_script.sh", shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)