Recherche avancée

Médias (91)

Autres articles (112)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

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

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

Sur d’autres sites (12562)

  • ffmpeg decoding on Android

    29 novembre 2013, par Kernald

    I'm currently trying to use ffmpeg on Android. I built ffmpeg using https://github.com/halfninja/android-ffmpeg-x264 (I adapted it to not use libx264 and build with ndk-r9b, using GCC 4.6). I try to trim an MP4 file. However, the input file fails to open :

    11-28 10:59:18.494 : INFO/com.rfc.video.VideoKit(4125) : ffmpeg
    11-28 10:59:18.494 : INFO/com.rfc.video.VideoKit(4125) : -i
    11-28 10:59:18.494 : INFO/com.rfc.video.VideoKit(4125) : /storage/emulated/0/DCIM/20131126_173903.mp4
    11-28 10:59:18.494 : INFO/com.rfc.video.VideoKit(4125) : -ss
    11-28 10:59:18.494 : INFO/com.rfc.video.VideoKit(4125) : 2
    11-28 10:59:18.494 : INFO/com.rfc.video.VideoKit(4125) : -t
    11-28 10:59:18.494 : INFO/com.rfc.video.VideoKit(4125) : 4
    11-28 10:59:18.494 : INFO/com.rfc.video.VideoKit(4125) : -vcodec
    11-28 10:59:18.494 : INFO/com.rfc.video.VideoKit(4125) : copy
    11-28 10:59:18.494 : INFO/com.rfc.video.VideoKit(4125) : -acodec
    11-28 10:59:18.494 : INFO/com.rfc.video.VideoKit(4125) : copy
    11-28 10:59:18.494 : INFO/com.rfc.video.VideoKit(4125) : /storage/emulated/0/DCIM/trimmed-000-20131126_173903.mp4
    11-28 10:59:18.494 : INFO/com.rfc.video.VideoKit(4125) : Running main
    11-28 10:59:18.494 : INFO/Videokit(4125) : Initializing AV codecs
    11-28 10:59:18.494 : INFO/Videokit(4125) : ffmpeg version 0.9.2, Copyright (c) 2000-2012 the FFmpeg developers
    11-28 10:59:18.494 : INFO/Videokit(4125) : built on Nov 27 2013 15:38:26 with gcc 4.6 20120106 (prerelease)
    11-28 10:59:18.494 : INFO/Videokit(4125) : configuration : —enable-cross-compile —arch=arm5te —enable-armv5te —target-os=linux —disable-stripping —prefix=../output —disable-neon —enable-version3 —ar=arm-linux-androideabi-ar —disable-shared —enable-static —enable-gpl —enable-memalign-hack —cc=arm-linux-androideabi-gcc —ld=arm-linux-androideabi-ld —extra-cflags='-fPIC -DANDROID -D__thumb__ -mthumb -Wno-deprecated' —disable-everything —enable-decoder=mjpeg —enable-demuxer=mjpeg —enable-parser=mjpeg —enable-demuxer=image2 —enable-muxer=mp4 —enable-decoder=rawvideo —enable-protocol=file —enable-hwaccels —disable-ffmpeg —disable-ffplay —disable-ffprobe —disable-ffserver —disable-network —enable-filter=buffer —enable-filter=buffersink —disable-demuxer=v4l —disable-demuxer=v4l2 —disable-indev=v4l —disable-indev=v4l2
    11-28 10:59:18.494 : INFO/Videokit(4125) : libavutil    51. 32. 0 / 51. 32. 0
    11-28 10:59:18.494 : INFO/Videokit(4125) : libavcodec   53. 42. 4 / 53. 42. 4
    11-28 10:59:18.494 : INFO/Videokit(4125) : libavformat  53. 24. 2 / 53. 24. 2
    11-28 10:59:18.494 : INFO/Videokit(4125) : libavdevice  53.  4. 0 / 53.  4. 0
    11-28 10:59:18.494 : INFO/Videokit(4125) : libavfilter   2. 53. 0 /  2. 53. 0
    11-28 10:59:18.494 : INFO/Videokit(4125) : libswscale    2.  1. 0 /  2.  1. 0
    11-28 10:59:18.494 : INFO/Videokit(4125) : libpostproc  51.  2. 0 / 51.  2. 0
    11-28 10:59:18.504 : ERROR/Videokit(4125) : /storage/emulated/0/DCIM/20131126_173903.mp4 : Invalid data found when processing input
    

    I digged into ffmpeg's code, and found the error :

    static int opt_input_file(OptionsContext *o, const char *opt, const char *filename)
    {

    // ...

    ic->video_codec_id   = video_codec_name ?
       find_codec_or_die(video_codec_name   , AVMEDIA_TYPE_VIDEO   , 0)->id : CODEC_ID_NONE;
    ic->audio_codec_id   = audio_codec_name ?
       find_codec_or_die(audio_codec_name   , AVMEDIA_TYPE_AUDIO   , 0)->id : CODEC_ID_NONE;
    ic->subtitle_codec_id= subtitle_codec_name ?
       find_codec_or_die(subtitle_codec_name, AVMEDIA_TYPE_SUBTITLE, 0)->id : CODEC_ID_NONE;
    ic->flags |= AVFMT_FLAG_NONBLOCK;
    ic->interrupt_callback = int_cb;

    if (loop_input) {
       LOGW(
           "-loop_input is deprecated, use -loop 1\n"
           "Note, both loop options only work with -f image2\n"
       );
       ic->loop_input = loop_input;
    }

    /* open the input file with generic avformat function */
    err = avformat_open_input(&ic, filename, file_iformat, &format_opts);
    if (err < 0) {
       print_error(filename, err);
       exit_program(1);
    }
    assert_avoptions(format_opts);

    // ...

    }

    As indicated in the logcat, err is here equal to AVERROR_INVALIDDATA. I don't understand the reason however : the mp4 codec is enabled, as far as I can tell. Any hint on how to solve it ?

    Edit : I added more ffmpeg code. I'm pretty sure it's a codec issue now : ic->video_codec_id is set to CODEC_ID_NONE, which causes ic to be set to NULL and return a failure in avformat_open_input().

  • Converting Video files in a Azure Webjob with ffMpeg

    13 décembre 2016, par Kevin Phifer

    I’m having trouble using ffMpeg in an Azure webjob.

    I found the following article (How to call ffmpeg.exe to convert audio files on Windows Azure ?) and it is exactly what I want to do, however, I cannot get ffMpeg to execute and it gives no error message.

    To diagnose the problem, I have boiled it down to its essentials by uploading ffMpeg, a video file to convert, and batch file to run it :

    files in directory

    The script in run.cmd is simply :

    del output.mp4
    ffmpeg -i screencast.wmv -c:v libx264 -r 15 output.mp4

    This works on my personal machine, but ran as a webjob I get results below.

    [12/08/2015 15:42:39 > bf9dd6: SYS INFO] Status changed to Initializing
    [12/08/2015 15:42:39 > bf9dd6: SYS INFO] Job directory change detected: Job file 'ffmpegtest\output.mp4' exists in source directory but not in working directory.
    [12/08/2015 15:42:47 > bf9dd6: SYS INFO] Run script 'run.cmd' with script host - 'WindowsScriptHost'
    [12/08/2015 15:42:48 > bf9dd6: SYS INFO] Status changed to Running<br />
    [12/08/2015 15:42:48 > bf9dd6: INFO]
    [12/08/2015 15:42:48 > bf9dd6: INFO] D:\local\Temp\jobs\triggered\ffMpeg\y1bdnb1e.03k\ffmpegtest>del output.mp4
    [12/08/2015 15:42:48 > bf9dd6: INFO]
    [12/08/2015 15:42:48 > bf9dd6: INFO] D:\local\Temp\jobs\triggered\ffMpeg\y1bdnb1e.03k\ffmpegtest>ffmpeg -i screencast.wmv -c:v libx264 -r 15 output.mp4
    [12/08/2015 15:42:49 > bf9dd6: SYS INFO] Status changed to Failed
    [12/08/2015 15:42:49 > bf9dd6: SYS ERR ] Job failed due to exit code -1073741515

    Edit :
    Additionally, it was suggested that I run using Kudu console. Still no luck :
    Kudu Screenshot

    Solution :
    I ended up needing to run the 32 version of ffMpeg and not the 64 bit. Thanks so much @mathewc !

  • FFMPEG Streaming webcam on Windows 10 to RTP

    23 juillet 2019, par gdogg371

    I am still trying to figure out exactly what I am doing with ffmpeg and dshow. However I am trying to stream a 4k capture device I have, so that I can use this as an IPTV server downstream.

    So far I have :

    ffmpeg -rtbufsize 2100M -y -loglevel warning -f dshow -i video="Video (00 Pro Capture HDMI 4K+)" -s 3840x2160 -vcodec v410 -f rtp rtp://192.168.1.31:8554

    ...however this is throwing up the following errors :

    C:\Program Files\VideoLAN\VLC>ffmpeg -rtbufsize 2100M -y -loglevel warning -f dshow -i video="Video (00 Pro Capture HDMI 4K+)" -s 3840x2160 -vcodec libx265 -f rtp rtp://192.168.1.31:8554
    [udp @ 000002c207a7d080] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
    [udp @ 000002c207a8d380] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
    x265 [info]: HEVC encoder version 3.1b36c03e4e771
    x265 [info]: build info [Windows][GCC 9.1.1][64 bit] 8bit+10bit
    x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
    x265 [info]: Main 4:2:2 10 profile, Level-5.1 (Main tier)
    x265 [info]: Thread pool created using 8 threads
    x265 [info]: Slices                              : 1
    x265 [info]: frame threads / pool features       : 3 / wpp(34 rows)
    x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
    x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
    x265 [info]: ME / range / subpel / merge         : hex / 57 / 2 / 3
    x265 [info]: Keyframe min / max / scenecut / bias: 25 / 250 / 40 / 5.00
    x265 [info]: Lookahead / bframes / badapt        : 20 / 4 / 2
    x265 [info]: b-pyramid / weightp / weightb       : 1 / 1 / 0
    x265 [info]: References / ref-limit  cu / depth  : 3 / off / on
    x265 [info]: AQ: mode / str / qg-size / cu-tree  : 2 / 1.0 / 32 / 1
    x265 [info]: Rate Control / qCompress            : CRF-28.0 / 0.60
    x265 [info]: tools: rd=3 psy-rd=2.00 early-skip rskip signhide tmvp b-intra
    x265 [info]: tools: strong-intra-smoothing lslices=8 deblock sao
    SDP:
    v=0
    o=- 0 0 IN IP4 127.0.0.1
    s=No Name
    c=IN IP4 192.168.1.31
    t=0 0
    a=tool:libavformat 58.28.100
    m=video 8554 RTP/AVP 96
    a=rtpmap:96 H265/90000

    [dshow @ 000002c207a69f80] real-time buffer [Video (00 Pro Capture HDMI 4K+)] [video input] too full or near too full (62% of size: 2100000000 [rtbufsize parameter])! frame dropped!
    [dshow @ 000002c207a69f80] real-time buffer [Video (00 Pro Capture HDMI 4K+)] [video input] too full or near too full (64% of size: 2100000000 [rtbufsize parameter])! frame dropped!
    [dshow @ 000002c207a69f80] real-time buffer [Video (00 Pro Capture HDMI 4K+)] [video input] too full or near too full (67% of size: 2100000000 [rtbufsize parameter])! frame dropped!
    ...
    ...
    ...
    [dshow @ 000002c207a69f80] real-time buffer [Video (00 Pro Capture HDMI 4K+)] [video input] too full or near too full (99% of size: 2100000000 [rtbufsize parameter])! frame dropped!
       Last message repeated 1 times
    [dshow @ 000002c207a69f80] real-time buffer [Video (00 Pro Capture HDMI 4K+)] [video input] too full or near too full (100% of size: 2100000000 [rtbufsize parameter])! frame dropped!
       Last message repeated 149 times
    [dshow @ 000002c207a69f80] real-time buffer [Video (00 Pro Capture HDMI 4K+)] [video input] too full or near too full (99% of size: 2100000000 [rtbufsize parameter])! frame dropped!
    [dshow @ 000002c207a69f80] real-time buffer [Video (00 Pro Capture HDMI 4K+)] [video input] too full or near too full (100% of size: 2100000000 [rtbufsize parameter])! frame dropped!

    I am unsure why this occurring, as the buffer size is pretty much at the maximum permitted by dshow.

    Can anyone suggest a remedy ?

    Thanks