Recherche avancée

Médias (1)

Mot : - Tags -/bug

Autres articles (70)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Le plugin : Gestion de la mutualisation

    2 mars 2010, par

    Le plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
    Installation basique
    On installe les fichiers de SPIP sur le serveur.
    On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
    On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
    < ?php (...)

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

  • shell script - youtube stream - ffmpeg [duplicate]

    9 octobre 2022, par CodeMaker748

    Hey guys i found that script in web and try to get it to run. But i get some errors and wounder how this happens with this script maybe someone can help me to get this script running at ubuntu.

    &#xA;

    All Files are in the same directory.

    &#xA;

    #! /bin/bash&#xA;VBR="1500k"&#xA;FPS="24"&#xA;QUAL="superfast"&#xA;&#xA;YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2"&#xA;KEY="aaaa-aaaa-aaaa-aaaa-aaaa"&#xA;&#xA;VIDEO_SOURCE= "./video.mp4"&#xA;AUDIO_SOURCE= "./audio.mp3" &#xA;NP_SOURCE="./song.txt"&#xA;FONT="./ARIBL0.tff"&#xA;&#xA;ffmpeg -re -f lavfi -i "movie=filename=$VIDEO_SOURCE:loop=0, setpts=N/(FRAME_RATE*TB)" -thread_queue_size 512 -i "$AUDIO_SOURCE" -map 0:v:0 -map 1:a:0 -map_metadata:g 1:g -vf drawtext="fontsize=20: fontfile=$FONT: box=0: boxcolor=black@0.5: boxborderw=20: textfile=$NP_SOURCE: reload=1: fontcolor=white@0.8: x=50: y=th" -vcodec libx264 -pix_fmt yuv420p -preset $QUAL -r $FPS -g $(($FPS * 2)) -b:v $VBR -acodec libmp3lame -ar 44100 -threads 6 -qscale:v 3 -b:a 320000 -bufsize 512k -f flv "$YOUTUBE_URL/$KEY"&#xA;

    &#xA;

    and i get this errors :

    &#xA;

    root@v33476:~/LiveRadioScript2# bash startRadio.sh&#xA;startRadio.sh: line 9: ./video.mp4: Permission denied&#xA;startRadio.sh: line 10: ./audio.mp3: Permission denied&#xA;ffmpeg version 4.2.7-0ubuntu0.1 Copyright (c) 2000-2022 the FFmpeg developers&#xA;  built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1)&#xA;  configuration: --prefix=/usr --extra-version=0ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared&#xA;  libavutil      56. 31.100 / 56. 31.100&#xA;  libavcodec     58. 54.100 / 58. 54.100&#xA;  libavformat    58. 29.100 / 58. 29.100&#xA;  libavdevice    58.  8.100 / 58.  8.100&#xA;  libavfilter     7. 57.100 /  7. 57.100&#xA;  libavresample   4.  0.  0 /  4.  0.  0&#xA;  libswscale      5.  5.100 /  5.  5.100&#xA;  libswresample   3.  5.100 /  3.  5.100&#xA;  libpostproc    55.  5.100 / 55.  5.100&#xA;[Parsed_movie_0 @ 0x55d0e2286080] Failed to avformat_open_input &#x27;&#x27;&#xA;[lavfi @ 0x55d0e2284280] Error initializing filter &#x27;movie&#x27; with args &#x27;filename=:loop=0&#x27;&#xA;movie=filename=:loop=0, setpts=N/(FRAME_RATE*TB): No such file or directory&#xA;

    &#xA;

  • How to correctly use h264_amf on Windows ?

    27 octobre 2022, par Harshiv

    I'm trying to use hardware encoding with FFMPEG on Windows 10 with AMD Radeon r5 M330 DGPU on laptop : HP-AC026-TX. FFMPEG version is 5.1.2-full_build-www.gyan.dev from gyan.dev. I'm using this :

    &#xA;

    fmpeg ^&#xA;    -hide_banner ^&#xA;    -v verbose ^&#xA;    -i "%1" ^&#xA;    -c:v h264_amf -acodec copy -y out.mp4&#xA;

    &#xA;

    but it fails with :

    &#xA;

    [h264_amf @ 000001fb84d80b80] AMF initialisation succeeded via D3D11.&#xA;[h264_amf @ 000001fb847ab3c0] CreateComponent(AMFVideoEncoderVCE_AVC) failed with error 36&#xA;Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height&#xA;

    &#xA;

    The arguments seem as generic as I could hope, FFMPEG should use sensible defaults, so I can't Understand why it is failing.&#xA;Entire FFMPEG output is :

    &#xA;

    [h264 @ 000001fb84706c40] Reinit context to 1920x1088, pix_fmt: yuv420p&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;1366_pngl_20220816_161558.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : mp42&#xA;    minor_version   : 0&#xA;    compatible_brands: isommp42&#xA;    creation_time   : 2022-08-16T10:51:42.000000Z&#xA;    com.android.version: 11&#xA;    com.android.capture.fps: 30.000000&#xA;  Duration: 00:03:41.33, start: 0.000000, bitrate: 7517 kb/s&#xA;  Stream #0:0[0x1](eng): Video: h264 (High), 1 reference frame (avc1 / 0x31637661), yuv420p(tv, bt709, progressive, left), 1920x1080 (1920x1088), 7259 kb/s, SAR 1:1 DAR 16:9, 29.96 fps, 29.99 tbr, 90k tbn (default)&#xA;    Metadata:&#xA;      creation_time   : 2022-08-16T10:51:42.000000Z&#xA;      handler_name    : VideoHandle&#xA;      vendor_id       : [0][0][0][0]&#xA;  Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 256 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : 2022-08-16T10:51:42.000000Z&#xA;      handler_name    : SoundHandle&#xA;      vendor_id       : [0][0][0][0]&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_amf))&#xA;  Stream #0:1 -> #0:1 (copy)&#xA;Press [q] to stop, [?] for help&#xA;[h264 @ 000001fb84787400] Reinit context to 1920x1088, pix_fmt: yuv420p&#xA;[graph 0 input from stream 0:0 @ 000001fb84cfd780] w:1920 h:1080 pixfmt:yuv420p tb:1/90000 fr:90000/3001 sar:1/1&#xA;[h264_amf @ 000001fb84d80b80] AMF initialisation succeeded via D3D11.&#xA;[h264_amf @ 000001fb847ab3c0] CreateComponent(AMFVideoEncoderVCE_AVC) failed with error 36&#xA;Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height&#xA;[AVIOContext @ 000001fb846f89c0] Statistics: 0 bytes written, 0 seeks, 0 writeouts&#xA;[AVIOContext @ 000001fb846f3f40] Statistics: 371902 bytes read, 3 seeks&#xA;Conversion failed!&#xA;

    &#xA;

    What should I do to make hardware encoding work ?

    &#xA;

  • How exactly do I extract and merge a audio file using @ffmpeg/ffmpeg

    5 octobre 2022, par jeff.gogooma

    I have a lot of issues about audio transfer to server and frontend.

    &#xA;

    I am building a solution that is extracting and merging a file received from frontend.

    &#xA;

    I am using local ffmpeg file with node.js child_process package.

    &#xA;

    My Env :

    &#xA;

    framework : nest.js

    &#xA;

    runtime : node.js

    &#xA;

    lang : typescript

    &#xA;

    here is console.log(file : Express.Multer.File).&#xA;I am storing to S3 bucket these files. So I am not using multer's memory, disk storage.

    &#xA;

    // console.log(file);&#xA; {&#xA;  fieldname: &#x27;file&#x27;,&#xA;  originalname: &#x27;input1.mp3&#x27;,&#xA;  encoding: &#x27;7bit&#x27;,&#xA;  mimetype: &#x27;audio/mpeg&#x27;&#xA;}&#xA;

    &#xA;

    import cp from "child_process";&#xA;&#xA;type Section = { from: number, to: number };&#xA;&#xA;const files: Array = [];&#xA;&#xA;export const setupAudioFileSection = async (file: Express.Multer.File, section: Section) => {&#xA;  try {&#xA;    const file1 = await cp.exec(`ffmpeg -i ${file} -y -ss 0 -t ${section.from}`);&#xA;    const file2 = await cp.exec(`ffmpeg -i ${file} -y -ss ${section.from} -t ${section.to}`);&#xA;    const file3 = await cp.exec(`ffmpeg -i ${file} -y -ss ${section.to}`);&#xA;    files.push(file1);&#xA;    files.push(file3);&#xA;&#xA;    return file2;&#xA;  } catch (error) {&#xA;    console.log(error);&#xA;    throw new Error(&#x27;setupAudioFileSection error&#x27;);&#xA;  }&#xA;

    &#xA;

    But, My Local ffmpeg is printing the error. because of [object Object]. I think local ffmpeg is not recognized the audio file received from client. So, I am resolving this issue by writing a file to disk or memory directly. but I am confusing this solution whether is right or not.

    &#xA;

    error Error: Command failed: ffmpeg -i [object Object] -y -ss 10 -t 20 -f mp3 ./TestOutput&#xA;ffmpeg version 5.1.1 Copyright (c) 2000-2022 the FFmpeg developers&#xA;  built with Apple clang version 13.1.6 (clang-1316.0.21.2.5)&#xA;  configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/5.1.1 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox --enable-neon&#xA;  libavutil      57. 28.100 / 57. 28.100&#xA;  libavcodec     59. 37.100 / 59. 37.100&#xA;  libavformat    59. 27.100 / 59. 27.100&#xA;  libavdevice    59.  7.100 / 59.  7.100&#xA;  libavfilter     8. 44.100 /  8. 44.100&#xA;  libswscale      6.  7.100 /  6.  7.100&#xA;  libswresample   4.  7.100 /  4.  7.100&#xA;  libpostproc    56.  6.100 / 56.  6.100&#xA;&#xA;[object: No such file or directory&#xA;&#xA;

    &#xA;

    How can I write file on my server and read ? if that can be, I can resolve [object Object] of ffmpeg issue maybe. Please some answer or advise my issue. Thank you !

    &#xA;