Recherche avancée

Médias (0)

Mot : - Tags -/navigation

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (61)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • Soumettre améliorations et plugins supplémentaires

    10 avril 2011

    Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
    Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...)

Sur d’autres sites (11431)

  • Bambuser ffmpeg - "arm-linux-androideabi-gcc is unable to create an executable file."

    3 novembre 2023, par Chaitanya Chandurkar

    I know this may be possible duplicate of some questions. but answers for those threads are not helping me.

    



    I am trying to compile ffmpeg library for android using Bambuser's ffmpeg.
    
I downloaded Archive for client versions 1.3.7 to 1.6.0. from bambuser.

    



    I followed instruction given in REAME.
    
While running ./build.sh i came across following error

    



    arm-linux-androideabi-gcc is unable to create an executable file.
C compiler test failed.

If you think configure made a mistake, make sure you are using the latest
version from SVN.  If the latest version fails, report the problem to the
ffmpeg-user@mplayerhq.hu mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solving the problem.


    



    Here are last few lines of config.log of ffmpeg

    



    mktemp is /bin/mktemp
check_ld
check_cc
BEGIN /tmp/ffconf.qflVj27Q.c
    1   int main(void){ return 0; }
END /tmp/ffconf.qflVj27Q.c
arm-linux-androideabi-gcc --sysroot=/home/chaitanya/android/android-ndk-r5b/platforms/android-8/arch-arm -c -o /tmp/ffconf.gc6um0Ki.o /tmp/ffconf.qflVj27Q.c
arm-linux-androideabi-gcc: error trying to exec 'cc1': execvp: No such file or directory
C compiler test failed.


    



    in tmp i do not find any relative folder or file as per config.log says "ffconf.qflVj27Q.c".

    



    I am doing this on
    
 1. Ubuntu 11.10
    
 2. OpenJDK 6
    
 3. android-ndk-r5b

    



    NOte :
    
I only have API-10 Installed in eclipse. (if it matters :D)

    



    What could be the solution for this ?

    


  • ffmpeg "End mismatch 1" warning, jpeg2000 to avi

    11 avril 2023, par jklebes

    Trying to convert a directory of jpeg2000 grayscale images to a video with ffmpeg, I get warnings

    


    [0;36m[jpeg2000 @ 0x55d8fa1b68c0] [0m[0;33mEnd mismatch 1


    


    (and lots of

    


    Last message repeated <n> times&#xA;</n>

    &#xA;

    )

    &#xA;

    The command was

    &#xA;

    ffmpeg -y -r 10 -start_number 1 -i <path>/surface_30///img_000%01d.jp2 -vcodec msmpeg4 -vf scale=1920:-1 -q:v 8 <path>//surface_30///surface_30.avi&#xA;</path></path>

    &#xA;

    The output is

    &#xA;

    ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers&#xA;  built with gcc 7.3.0 (crosstool-NG 1.23.0.449-a04d0)&#xA;  configuration: --prefix=/home/jklebes001/miniconda3 --cc=/tmp/build/80754af9/ffmpeg_1587154242452/_build_env/bin/x86_64-conda_cos6-linux-gnu-cc --disable-doc --enable-avresample --enable-gmp --enable-hardcoded-tables --enable-libfreetype --enable-libvpx --enable-pthreads --enable-libopus --enable-postproc --enable-pic --enable-pthreads --enable-shared --enable-static --enable-version3 --enable-zlib --enable-libmp3lame --disable-nonfree --enable-gpl --enable-gnutls --disable-openssl --enable-libopenh264 --enable-libx264&#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;[0;36m[jpeg2000 @ 0x55cb44144480] [0m[0;33mEnd mismatch 1&#xA;&#xA;[0m    Last message repeated 1 times&#xA;    Last message repeated 2 times&#xA;    Last message repeated 3 times&#xA;

    &#xA;

    ...

    &#xA;

    Last message repeated 73 times&#xA;&#xA;Input #0, image2, from &#x27;<path>//surface_30///img_000%01d.jp2&#x27;:&#xA;&#xA;  Duration: 00:00:00.20, start: 0.000000, bitrate: N/A&#xA;&#xA;    Stream #0:0: Video: jpeg2000, gray, 6737x4869, 25 tbr, 25 tbn, 25 tbc&#xA;&#xA;Stream mapping:&#xA;&#xA;  Stream #0:0 -> #0:0 (jpeg2000 (native) -> msmpeg4v3 (msmpeg4))&#xA;&#xA;Press [q] to stop, [?] for help&#xA;&#xA;[0;36m[jpeg2000 @ 0x55cb4418e200] [0m[0;33mEnd mismatch 1&#xA;&#xA;[0m[0;36m[jpeg2000 @ 0x55cb441900c0] [0m[0;33mEnd mismatch 1&#xA;</path>

    &#xA;

    ...

    &#xA;

    (about 600 lines of "end mismatch" and "last message repeated" cut)

    &#xA;

    ...

    &#xA;

    [0m[0;36m[jpeg2000 @ 0x55cb4418e8c0] [0m[0;33mEnd mismatch 1&#xA;&#xA;[0mOutput #0, avi, to &#x27;<path>/surface_30///surface_30.avi&#x27;:&#xA;&#xA;  Metadata:&#xA;&#xA;    ISFT            : Lavf58.29.100&#xA;&#xA;    Stream #0:0: Video: msmpeg4v3 (msmpeg4) (MP43 / 0x3334504D), yuv420p, 1920x1388, q=2-31, 200 kb/s, 10 fps, 10 tbn, 10 tbc&#xA;&#xA;    Metadata:&#xA;&#xA;      encoder         : Lavc58.54.100 msmpeg4&#xA;&#xA;    Side data:&#xA;&#xA;      cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1&#xA;&#xA;frame=    2 fps=0.8 q=8.0 size=       6kB time=00:00:00.20 bitrate= 227.1kbits/s speed=0.0844x    &#xA;frame=    5 fps=1.7 q=8.0 size=       6kB time=00:00:00.50 bitrate=  90.8kbits/s speed=0.172x    &#xA;frame=    5 fps=1.7 q=8.0 Lsize=     213kB time=00:00:00.50 bitrate=3494.7kbits/s speed=0.172x    &#xA;video:208kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.732246%&#xA;</path>

    &#xA;

    What is the meaning of characters like [0 ;33m here ?

    &#xA;

    I thought it might have something to do with bit depth and color format. Setting -pix_fmt gray had no effect, and indeed the format of the jp2 images is already detected as 8-bit gray.

    &#xA;

    The output .avi exists and seems fine.

    &#xA;

    The line was previously used on jpeg files and works fine on jpeg. With jpeg, the output has the line

    &#xA;

    Input #0, image2, from &#x27;<path>/surface_30///img_000%01d.jpeg&#x27;:&#xA;&#xA;  Duration: 00:00:00.16, start: 0.000000, bitrate: N/A&#xA;&#xA;    Stream #0:0: Video: mjpeg (Baseline), gray(bt470bg/unknown/unknown), 6737x4869 [SAR 1:1 DAR 6737:4869], 25 tbr, 25 tbn, 25 tbc&#xA;&#xA;Stream mapping:&#xA;&#xA;  Stream #0:0 -> #0:0 (mjpeg (native) -> msmpeg4v3 (msmpeg4))&#xA;&#xA;Press [q] to stop, [?] for help&#xA;&#xA;Output #0, avi, to &#x27;<path>/surface_30///surface_30.avi&#x27;:&#xA;&#xA;  Metadata:&#xA;&#xA;    ISFT            : Lavf58.29.100&#xA;&#xA;    Stream #0:0: Video: msmpeg4v3 (msmpeg4) (MP43 / 0x3334504D), yuv420p, 6737x4869 [SAR 1:1 DAR 6737:4869], q=2-31, 200 kb/s, 10 fps, 10 tbn, 10 tbc&#xA;&#xA;    Metadata:&#xA;&#xA;      encoder         : Lavc58.54.100 msmpeg4&#xA;&#xA;    Side data:&#xA;&#xA;      cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1&#xA;&#xA;frame=    2 fps=0.0 q=8.0 size=    6662kB time=00:00:00.20 bitrate=272859.9kbits/s speed=0.334x    &#xA;frame=    3 fps=2.2 q=10.0 size=   10502kB time=00:00:00.30 bitrate=286764.2kbits/s speed=0.22x    &#xA;frame=    4 fps=1.9 q=12.3 size=   13574kB time=00:00:00.40 bitrate=277987.7kbits/s speed=0.19x    &#xA;frame=    4 fps=1.4 q=12.3 size=   13574kB time=00:00:00.40 bitrate=277987.7kbits/s speed=0.145x    &#xA;frame=    4 fps=1.4 q=12.3 Lsize=   13657kB time=00:00:00.40 bitrate=279702.3kbits/s speed=0.145x    &#xA;video:13652kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.041926%&#xA;</path></path>

    &#xA;

    detecting mjpeg format and similar, but more detailed format gray(bt470bg/unknown/unknown), 6737x4869 [SAR 1:1 DAR 6737:4869].

    &#xA;

    What is the difference when switching input to jp2 ?

    &#xA;

  • Python asyncio subprocess code returns "pipe closed by peer or os.write(pipe, data) raised exception."

    4 novembre 2022, par Duke Dougal

    I am trying to convert a synchronous Python process to asyncio. Any ideas what I am doing wrong ?

    &#xA;

    This is the synchronous code which successfully starts ffmpeg and converts a directory of webp files into a video.

    &#xA;

    import subprocess&#xA;import shlex&#xA;from os import listdir&#xA;from os.path import isfile, join&#xA;&#xA;output_filename = &#x27;output.mp4&#x27;&#xA;process = subprocess.Popen(shlex.split(f&#x27;ffmpeg -y -framerate 60 -i pipe: -vcodec libx265 -pix_fmt yuv420p -crf 24 output.mp4&#x27;), stdin=subprocess.PIPE)&#xA;&#xA;thepath = &#x27;/home/ubuntu/webpfiles/&#x27;&#xA;thefiles = [f for f in listdir(thepath) if isfile(join(thepath, f))]&#xA;for filename in thefiles:&#xA;    absolute_path = f&#x27;{thepath}{filename}&#x27;&#xA;    with open(absolute_path, &#x27;rb&#x27;) as f:&#xA;        process.stdin.write(f.read())&#xA;&#xA;process.stdin.close()&#xA;process.wait()&#xA;process.terminate()&#xA;

    &#xA;

    This async code fails :

    &#xA;

    from os import listdir&#xA;from os.path import isfile, join&#xA;import shlex&#xA;import asyncio&#xA;&#xA;outputfilename = &#x27;output.mp4&#x27;&#xA;&#xA;async def write_stdin(proc):&#xA;    thepath = &#x27;/home/ubuntu/webpfiles/&#x27;&#xA;    thefiles = [f for f in listdir(thepath) if isfile(join(thepath, f))]&#xA;    thefiles.sort()&#xA;    for filename in thefiles:&#xA;        absolute_path = f&#x27;{thepath}{filename}&#x27;&#xA;        with open(absolute_path, &#x27;rb&#x27;) as f:&#xA;            await proc.communicate(input=f.read())&#xA;&#xA;async def create_ffmpeg_subprocess():&#xA;    bin = f&#x27;/home/ubuntu/bin/ffmpeg&#x27;&#xA;    params = f&#x27;-y -framerate 60 -i pipe: -vcodec libx265 -pix_fmt yuv420p -crf 24 {outputfilename}&#x27;&#xA;    proc = await asyncio.create_subprocess_exec(&#xA;        bin,&#xA;        *shlex.split(params),&#xA;        stdin=asyncio.subprocess.PIPE,&#xA;        stdout=asyncio.subprocess.PIPE,&#xA;        stderr=asyncio.subprocess.PIPE,&#xA;    )&#xA;    return proc&#xA;&#xA;async def start():&#xA;    loop = asyncio.get_event_loop()&#xA;    proc = await create_ffmpeg_subprocess()&#xA;    task_stdout = loop.create_task(write_stdin(proc))&#xA;    await asyncio.gather(task_stdout)&#xA;&#xA;if __name__ == &#x27;__main__&#x27;:&#xA;    asyncio.run(start())&#xA;

    &#xA;

    The output for the async code is :

    &#xA;

    pipe closed by peer or os.write(pipe, data) raised exception.&#xA;pipe closed by peer or os.write(pipe, data) raised exception.&#xA;pipe closed by peer or os.write(pipe, data) raised exception.&#xA;pipe closed by peer or os.write(pipe, data) raised exception.&#xA;pipe closed by peer or os.write(pipe, data) raised exception.&#xA;pipe closed by peer or os.write(pipe, data) raised exception.&#xA;pipe closed by peer or os.write(pipe, data) raised exception.&#xA;pipe closed by peer or os.write(pipe, data) raised exception.&#xA;pipe closed by peer or os.write(pipe, data) raised exception.&#xA;pipe closed by peer or os.write(pipe, data) raised exception.&#xA;pipe closed by peer or os.write(pipe, data) raised exception.&#xA;pipe closed by peer or os.write(pipe, data) raised exception.&#xA;pipe closed by peer or os.write(pipe, data) raised exception.&#xA;pipe closed by peer or os.write(pipe, data) raised exception.&#xA;pipe closed by peer or os.write(pipe, data) raised exception.&#xA;pipe closed by peer or os.write(pipe, data) raised exception.&#xA;

    &#xA;

    etc - one line for each webp file

    &#xA;