Recherche avancée

Médias (1)

Mot : - Tags -/artwork

Autres articles (86)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

Sur d’autres sites (13986)

  • mp4 created by ffmpeg will not play with IPython.display.Video

    19 novembre 2020, par Austin

    I'm creating a mp4 video from jpegs with ffmpeg, using the following command :

    


    ffmpeg -y -threads 0 -f image2 -i jpegs/%05d.jpg -framerate 10 video.mp4

    


    The resulting video will play fine with VLC, but will not play in a Jupyter notebook via :

    


    from IPython.display import Video
Video('video.mp4')


    


    This notebook video functionality has worked for me in the past, so I assume there's something about the codec/mime type that the Video function can't resolve ?

    



    


    Requested update

    


    New command I've tried :

    


    ffmpeg -y -framerate 10 -i jpegs/%05d.jpg -vf format=yuv420p -movflags +faststart video.mp4

    


    Video still plays fine in VLC and still does not play in Jupyter. I've looked at the duplicates this is marked as and it does not actually seem to be the same issue..

    


    Here's the output (I've removed the framerate and threads flags to simplify) :

    


    algo-1-poqk5_1  | 2020-11-18 21:19:36 [INFO]: ffmpeg output:
algo-1-poqk5_1  | 2020-11-18 21:19:36 [INFO]: ffmpeg version 4.0 Copyright (c) 2000-2018 the FFmpeg developers
algo-1-poqk5_1  |   built with gcc 7.2.0 (crosstool-NG fa8859cb)
algo-1-poqk5_1  |   configuration: --prefix=/opt/conda --cc=/opt/conda/conda-bld/ffmpeg_1531088893642/_build_env/bin/x86_64-conda_cos6-linux-gnu-cc --disable-doc --enable-shared --enable-static --enable-zlib --enable-pic --enable-gpl --enable-version3 --disable-nonfree --enable-hardcoded-tables --enable-avresample --enable-libfreetype --disable-openssl --disable-gnutls --enable-libvpx --enable-pthreads --enable-libopus --enable-postproc --disable-libx264
algo-1-poqk5_1  |   libavutil      56. 14.100 / 56. 14.100
algo-1-poqk5_1  |   libavcodec     58. 18.100 / 58. 18.100
algo-1-poqk5_1  |   libavformat    58. 12.100 / 58. 12.100
algo-1-poqk5_1  |   libavdevice    58.  3.100 / 58.  3.100
algo-1-poqk5_1  |   libavfilter     7. 16.100 /  7. 16.100
algo-1-poqk5_1  |   libavresample   4.  0.  0 /  4.  0.  0
algo-1-poqk5_1  |   libswscale      5.  1.100 /  5.  1.100
algo-1-poqk5_1  |   libswresample   3.  1.100 /  3.  1.100
algo-1-poqk5_1  |   libpostproc    55.  1.100 / 55.  1.100
algo-1-poqk5_1  | Input #0, image2, from '/opt/ml/model/outputs/01-IR.mp4_1/%05d.jpg':
algo-1-poqk5_1  |   Duration: 00:00:12.00, start: 0.000000, bitrate: N/A
algo-1-poqk5_1  |     Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 25 tbn, 25 tbc
algo-1-poqk5_1  | Stream mapping:
algo-1-poqk5_1  |   Stream #0:0 -> #0:0 (mjpeg (native) -> mpeg4 (native))
algo-1-poqk5_1  | Press [q] to stop, [?] for help
algo-1-poqk5_1  | [swscaler @ 0x55b8cc6fcc40] deprecated pixel format used, make sure you did set range correctly
algo-1-poqk5_1  | Output #0, mp4, to '/opt/ml/model/outputs/01-IR.mp4_1/video.mp4':
algo-1-poqk5_1  |   Metadata:
algo-1-poqk5_1  |     encoder         : Lavf58.12.100
algo-1-poqk5_1  |     Stream #0:0: Video: mpeg4 (mp4v / 0x7634706D), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 25 fps, 12800 tbn, 25 tbc
algo-1-poqk5_1  |     Metadata:
algo-1-poqk5_1  |       encoder         : Lavc58.18.100 mpeg4
algo-1-poqk5_1  |     Side data:
algo-1-poqk5_1  |       cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
algo-1-poqk5_1  | frame=   31 fps=0.0 q=31.0 size=     768kB time=00:00:01.20 bitrate=5242.8kbits/s speed=2.33x    
algo-1-poqk5_1  | frame=   64 fps= 63 q=31.0 size=    1280kB time=00:00:02.52 bitrate=4161.0kbits/s speed=2.48x    
algo-1-poqk5_1  | frame=   98 fps= 64 q=31.0 size=    1792kB time=00:00:03.88 bitrate=3783.5kbits/s speed=2.53x    
algo-1-poqk5_1  | frame=  131 fps= 64 q=31.0 size=    2304kB time=00:00:05.20 bitrate=3629.7kbits/s speed=2.55x    
algo-1-poqk5_1  | frame=  164 fps= 64 q=31.0 size=    2560kB time=00:00:06.52 bitrate=3216.5kbits/s speed=2.56x    
algo-1-poqk5_1  | frame=  198 fps= 65 q=31.0 size=    3072kB time=00:00:07.88 bitrate=3193.6kbits/s speed=2.58x    
algo-1-poqk5_1  | frame=  232 fps= 65 q=31.0 size=    3328kB time=00:00:09.24 bitrate=2950.6kbits/s speed= 2.6x    
algo-1-poqk5_1  | frame=  266 fps= 66 q=31.0 size=    3840kB time=00:00:10.60 bitrate=2967.7kbits/s speed=2.62x    
algo-1-poqk5_1  | frame=  299 fps= 66 q=31.0 size=    4096kB time=00:00:11.92 bitrate=2815.0kbits/s speed=2.62x    
algo-1-poqk5_1  | [mp4 @ 0x55b8cc658900] Starting second pass: moving the moov atom to the beginning of the file
algo-1-poqk5_1  | frame=  300 fps= 65 q=31.0 Lsize=    4202kB time=00:00:11.96 bitrate=2877.9kbits/s speed=2.61x    
algo-1-poqk5_1  | video:4199kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.052020%


    


  • syncing a video file with audio using ffmpeg is returning a video without audio

    31 juillet 2019, par abbood

    When I attempt to sync a .mov video with an .m4a audio file using ffmpeg like so

    ffmpeg -ss 00:00:2 -i test.m4a  -i test.mov -c:v copy -c:a aac -strict experimental output.mp4

    it works like a charm. But right now I’ve recorded a usability test video using adobe XD, and it returned an .mp4 (MPEG-4) video and I manually recorded the audio using quicktimre returning a .m4a audio file.

    Trying to merge them using ffmpeg is returning a video without any audio :

    ffmpeg -i video.mp4  -i audio.m4a -c:v copy -c:a aac -strict experimental output.mp4
    ffmpeg version 4.1 Copyright (c) 2000-2018 the FFmpeg developers
     built with Apple LLVM version 10.0.0 (clang-1000.11.45.5)
     configuration: --prefix=/usr/local/Cellar/ffmpeg/4.1_1 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gpl --enable-libmp3lame --enable-libopus --enable-libsnappy --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-lzma --enable-opencl --enable-videotoolbox
     libavutil      56. 22.100 / 56. 22.100
     libavcodec     58. 35.100 / 58. 35.100
     libavformat    58. 20.100 / 58. 20.100
     libavdevice    58.  5.100 / 58.  5.100
     libavfilter     7. 40.101 /  7. 40.101
     libavresample   4.  0.  0 /  4.  0.  0
     libswscale      5.  3.100 /  5.  3.100
     libswresample   3.  3.100 /  3.  3.100
     libpostproc    55.  3.100 / 55.  3.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video.mp4':
     Metadata:
       major_brand     : qt
       minor_version   : 0
       compatible_brands: qt
       creation_time   : 2019-07-31T14:43:18.000000Z
       com.apple.quicktime.make: Apple
       com.apple.quicktime.model: MacBookPro15,1
       com.apple.quicktime.software: Mac OS X 10.14.5 (18F203)
       com.apple.quicktime.creationdate: 2019-07-31T17:43:17+0300
     Duration: 00:03:46.05, start: 0.000000, bitrate: 498 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 374x812 [SAR 1:1 DAR 187:406], 390 kb/s, 60 fps, 60 tbr, 6k tbn, 12k tbc (default)
       Metadata:
         creation_time   : 2019-07-31T14:43:18.000000Z
         handler_name    : Core Media Video
         encoder         : H.264
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 8000 Hz, stereo, fltp, 0 kb/s (default)
       Metadata:
         creation_time   : 2019-07-31T14:43:18.000000Z
         handler_name    : Core Media Audio
    Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'audio.m4a':
     Metadata:
       major_brand     : M4A
       minor_version   : 0
       compatible_brands: M4A mp42isom
       creation_time   : 2019-07-31T14:47:26.000000Z
       iTunSMPB        :  00000000 00000840 00000000 00000000009DFBC0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
     Duration: 00:03:54.78, start: 0.047891, bitrate: 225 kb/s
       Stream #1:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 224 kb/s (default)
       Metadata:
         creation_time   : 2019-07-31T14:47:26.000000Z
         handler_name    : Core Media Audio
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
     Stream #0:1 -> #0:1 (aac (native) -> aac (native))
    Press [q] to stop, [?] for help
    [aac @ 0x7fb5a4806a00] Too many bits 16384.000000 > 12288 per frame requested, clamping to max
    Output #0, mp4, to 'output.mp4':
     Metadata:
       major_brand     : qt
       minor_version   : 0
       compatible_brands: qt
       com.apple.quicktime.creationdate: 2019-07-31T17:43:17+0300
       com.apple.quicktime.make: Apple
       com.apple.quicktime.model: MacBookPro15,1
       com.apple.quicktime.software: Mac OS X 10.14.5 (18F203)
       encoder         : Lavf58.20.100
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 374x812 [SAR 1:1 DAR 187:406], q=2-31, 390 kb/s, 60 fps, 60 tbr, 12k tbn, 6k tbc (default)
       Metadata:
         creation_time   : 2019-07-31T14:43:18.000000Z
         handler_name    : Core Media Video
         encoder         : H.264
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 8000 Hz, stereo, fltp, 96 kb/s (default)
       Metadata:
         creation_time   : 2019-07-31T14:43:18.000000Z
         handler_name    : Core Media Audio
         encoder         : Lavc58.35.100 aac
    frame=13563 fps=0.0 q=-1.0 Lsize=   10903kB time=00:03:46.08 bitrate= 395.1kbits/s speed= 916x
    video:10699kB audio:10kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.805767%

    How can I get around this limitation ?

  • How to enable hardware support for H.264 encoding on raspberry Pi 4B

    24 mars 2021, par MSD Paul

    I am trying to enable the hardware support for H264 encoding on raspberry pi 4B model. Compiling FFmpeg source enabling the configurations

    



    sudo ./configure --arch=armel --target-os=linux --enable-gpl --enable-omx --enable-omx-rpi --enable-nonfree


    



    following the link, https://github.com/legotheboss/YouTube-files/wiki/(RPi)-Compile-FFmpeg-with-the-OpenMAX-H.264-GPU-acceleration

    



    but while executing the encoding command after building and installing the ffmpeg with those configuration properly, I am getting the following error

    



    [h264_omx @ 0x156b6e0] Using OMX.broadcom.video_encode
[h264_omx @ 0x156b6e0] OMX error 80001000
[h264_omx @ 0x156b6e0] err 80001018 (-2147479528) on line 561
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
Conversion failed!


    



    command used :

    



    ffmpeg -i /media/pi/pic_1_org.png -c:v h264_omx -c:a copy -b:v 1500k outputfile.mp4


    



    I just want to encode a single 4K image into a .mp4 file using H.264 encoder. 
Please let me know how to resolve this issue ?