Recherche avancée

Médias (0)

Mot : - Tags -/presse-papier

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

Autres articles (107)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

Sur d’autres sites (13660)

  • FFMPEG image to video showing blank video

    18 avril 2017, par Ravi Rupareliya

    Here is my command to create a video from multiple images.

    File f = new File(Environment.getExternalStorageDirectory() + "/abc.mp4");

    try {
       f.createNewFile();
       ffmpeg.execute(new String[]{"-y","-r","1/5","-i","" + "/" + "image%01d.jpg","-pix_fmt","yuv420p","-c:v","libx264","-crf","23","-s","640x480",f.getPath()}, listener);
    } catch (Exception e) {
       e.printStackTrace();
    }

    I have multiple images available at with having names like image1.jpg, image2.jpg etc etc.

    It is creating video file with some 100-200 KB but it showing blank images in VLC player.

    When i try to run it with Windows Media Player, it only runs if it is in repeat mode from player, otherwise it is not playing.

    Output in onSuccess()

    [ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
    built with gcc 4.8 (GCC)
    configuration: --target-os=linux --cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/bin/i686-linux-android- --arch=x86 --cpu=i686 --enable-runtime-cpudetect --sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/vagrant/SourceCode/ffmpeg-android/build/x86 --extra-cflags='-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all -march=i686' --extra-ldflags='-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=
    libavutil      55. 17.103 / 55. 17.103
    libavcodec     57. 24.102 / 57. 24.102
    libavformat    57. 25.100 / 57. 25.100
    libavdevice    57.  0.101 / 57.  0.101
    libavfilter     6. 31.100 /  6. 31.100
    libswscale      4.  0.100 /  4.  0.100
    libswresample   2.  0.101 /  2.  0.101
    libpostproc    54.  0.100 / 54.  0.100
    [mjpeg @ 0xb97270a0] Changing bps to 8
    Input #0, image2, from '/storage/emulated/0/Download/image%01d.jpg':
    Duration: 00:00:00.08, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 464x317 [SAR 1:1 DAR 464:317], 25 tbr, 25 tbn, 25 tbc
    [swscaler @ 0xb9741480] deprecated pixel format used, make sure you did set range correctly
    [libx264 @ 0xb97287c0] using SAR=348/317
    [libx264 @ 0xb97287c0] using cpu capabilities: none!
    [libx264 @ 0xb97287c0] profile High, level 2.2
    [libx264 @ 0xb97287c0] 264 - core 148 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=1 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    Output #0, mp4, to '/storage/emulated/0/abc.mp4':
    Metadata:
    encoder         : Lavf57.25.100
    Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 640x480 [SAR 348:317 DAR 464:317], q=-1--1, 0.20 fps, 16384 tbn, 0.20 tbc
    Metadata:
    encoder         : Lavc57.24.102 libx264
    Side data:
    unknown side data type 10 (24 bytes)
    Stream mapping:
    Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
    Press [q] to stop, [?] for help
    Input stream #0:0 frame changed from size:464x317 fmt:yuvj420p to size:313x470 fmt:yuvj420p
    [swscaler @ 0xb9752fc0] deprecated pixel format used, make sure you did set range correctly
    frame=    2 fps=0.0 q=-1.0 Lsize=      64kB time=00:00:10.00 bitrate=  52.4kbits/s speed=34.3x    
    video:63kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.310563%
    [libx264 @ 0xb97287c0] frame I:1     Avg QP:14.14  size: 23785
    [libx264 @ 0xb97287c0] frame P:1     Avg QP:17.01  size: 40246
    [libx264 @ 0xb97287c0] mb I  I16..4:  3.3% 82.2% 14.4%
    [libx264 @ 0xb97287c0] mb P  I16..4:  2.0% 88.1%  9.9%  P16..4:  0.0%  0.0%  0.0%  0.0%  0.0%    skip: 0.0%
    [libx264 @ 0xb97287c0] 8x8 transform intra:85.2%
    [libx264 @ 0xb97287c0] coded y,uvDC,uvAC intra: 93.3% 82.2% 71.0%
    [libx264 @ 0xb97287c0] i16 v,h,dc,p:  5%  3%  3% 89%
    [libx264 @ 0xb97287c0] i8 v,h,dc,ddl,ddr,vr,
  • ffmpeg showing "Error initializing output stream 0:0"

    31 juillet 2017, par user2565010

    I am running the following command

    ffmpeg -i DJI_0001.MOV DJI_0001.mp4

    in order to convert the video to mp4 from MOV with no other property changes.

    The issue is that I am getting :

    ffmpeg version N-86863-g2ba20d799a-static http://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 6.4.0 (Debian 6.4.0-2) 20170724
     configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg
     libavutil      55. 69.100 / 55. 69.100
     libavcodec     57.102.100 / 57.102.100
     libavformat    57. 76.100 / 57. 76.100
     libavdevice    57.  7.100 / 57.  7.100
     libavfilter     6. 95.100 /  6. 95.100
     libswscale      4.  7.101 /  4.  7.101
     libswresample   2.  8.100 /  2.  8.100
     libpostproc    54.  6.100 / 54.  6.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'DJI_0001.MOV':
     Metadata:
       major_brand     : qt  
       minor_version   : 538182144
       compatible_brands: qt  
       creation_time   : 2017-07-23T17:04:58.000000Z
       location        :
       location-{    :
       comment         : 0.9.142
     Duration: 00:00:17.89, start: 0.000000, bitrate: 60017 kb/s
       Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 4096x2160 [SAR 1:1 DAR 256:135], 60014 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc (default)
       Metadata:
         creation_time   : 2017-07-23T17:04:58.000000Z
         handler_name    : DJI.AVC
         encoder         : Dji AVC encoder
    File 'DJI_0001.mp4' already exists. Overwrite ? [y/N] y
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
    Press [q] to stop, [?] for help
    [libx264 @ 0x3ed56a0] using SAR=1/1
    [libx264 @ 0x3ed56a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
    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!

    I see no other error message that would indicate an underlying problem. Could anybody please give me some info on how should I fix it ?

  • FFMPEG Streaming, using list for multiple presentations

    3 janvier 2021, par JJ The Second

    I am currently using a third party library to transcode videos from mp4 to HLS. https://video.aminyazdanpanah.com/python/start?r=hls#hls Great documentation and works fine however I have an issue by passing a list to hls.representations() that I think is something wrong I do. Here is how I run my code.

    


    presetList = []
rep_1  = Representation(Size(1920,1080), Bitrate(4096 * 1024, 320 * 1024))
                    presetList.append(rep_1)
rep_2 = Representation(Size(1440, 900), Bitrate(2048 * 1024, 320 * 1024))
                    presetList.append(rep_2)

video =  "file.mp4"
video = ffmpeg_streaming.input(video)
completed_destination = "completed.m3u8"
hls = video.hls(Formats.h264())
hls.representations(presetList)
hls.output(completed_destination)


    


    When I run this I get following error, that is triggered by library meaning values in my list not passed properly ?

    


      File "/var/www/transcoder/transcoder/env/lib/python3.8/site-packages/ffmpeg_streaming/_hls_helper.py", line 87, in stream_info
    f'BANDWIDTH={rep.bitrate.calc_overall}',
AttributeError: 'list' object has no attribute 'bitrate'


    


    if I instead run the same code with only change as below, works like a charm :

    


    hls.representations(rep_1, rep_2)


    


    What am I doing wrong here ? Thanks