Recherche avancée

Médias (0)

Mot : - Tags -/clipboard

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

Autres articles (21)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

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

  • using ffmpeg.js to play H265 video, only play hvc1 format, can't play hev1 format, is there anyway to play hev1 ?

    1er novembre 2019, par Alex

    I compiled ffmpeg into ffmpeg.js and ffmpeg.wasm by using emscripten, so that it can run in the browser and play H265 video.

    However, I found that only the hvc1 format can be played.
    Like that:

    Stream #0:0(und): Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv, bt709, progressive), 1280x720, 854 kb/s, 25 fps, 25 tbr, 12800 tbn, 25 tbc (default)

    and the hev1 format cannot be played.Like that :

    Stream #0:0(und): Video: hevc (Main) (hev1 / 0x31766568), yuv420p(tv, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 829 kb/s, 25 fps, 25 tbr, 12800 tbn, 25 tbc (default)

    Web browser’s Console has this errors

    libffmpeg.js:1 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x644b80] reached eof, corrupted CTTS atom
    >put_char @ libffmpeg.js:1
    >write @ libffmpeg.js:1
    >write @ libffmpeg.js:1
    >doWritev @ libffmpeg.js:1
    >___syscall146 @ libffmpeg.js:1
    >(anonymous) @ wasm-009a4202-743:1
    >(anonymous) @ wasm-009a4202-739:1
    >(anonymous) @ wasm-009a4202-741:1
    >(anonymous) @ wasm-009a4202-742:1
    >(anonymous) @ wasm-009a4202-437:1
    >(anonymous) @ wasm-009a4202-2083:1
    >(anonymous) @ wasm-009a4202-87:1
    >(anonymous) @ wasm-009a4202-923:1
    >(anonymous) @ wasm-009a4202-247:1
    >(anonymous) @ wasm-009a4202-247:1
    >(anonymous) @ wasm-009a4202-247:1
    >(anonymous) @ wasm-009a4202-247:1
    >(anonymous) @ wasm-009a4202-2864:1
    >(anonymous) @ wasm-009a4202-247:1
    >(anonymous) @ wasm-009a4202-3015:1
    >(anonymous) @ wasm-009a4202-247:1
    >(anonymous) @ wasm-009a4202-1073:1
    >(anonymous) @ wasm-009a4202-2261:1
    >(anonymous) @ wasm-009a4202-2562:1
    >(anonymous) @ libffmpeg.js:1
    >Decoder.openDecoder @ decoder.js:48
    >Decoder.processReq @ decoder.js:165
    >self.onmessage @ decoder.js:248
    libffmpeg.js:1 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x644b80] error reading header
    >put_char @ libffmpeg.js:1
    >write @ libffmpeg.js:1
    >write @ libffmpeg.js:1
    >doWritev @ libffmpeg.js:1
    >___syscall146 @ libffmpeg.js:1
    >(anonymous) @ wasm-009a4202-743:1
    >(anonymous) @ wasm-009a4202-739:1
    >(anonymous) @ wasm-009a4202-741:1
    >(anonymous) @ wasm-009a4202-742:1
    >(anonymous) @ wasm-009a4202-437:1
    >(anonymous) @ wasm-009a4202-2083:1
    >(anonymous) @ wasm-009a4202-87:1
    >(anonymous) @ wasm-009a4202-1073:1
    >(anonymous) @ wasm-009a4202-2261:1
    >(anonymous) @ wasm-009a4202-2562:1
    >(anonymous) @ libffmpeg.js:1
    >Decoder.openDecoder @ decoder.js:48
    >Decoder.processReq @ decoder.js:165
    >self.onmessage @ decoder.js:248
    common.js:58 [2019-11-1 18:23:25:529][Decoder][IF] openDecoder return 8

    ffplay can play these two, why can only play hvc1 after compiling into ffmpeg.js and ffmpeg.wasm ?

  • tools/python : add script to convert TensorFlow model (.pb) to native model (.model)

    13 juin 2019, par Guo, Yejun
    tools/python : add script to convert TensorFlow model (.pb) to native model (.model)
    

    For example, given TensorFlow model file espcn.pb,
    to generate native model file espcn.model, just run :
    python convert.py espcn.pb

    In current implementation, the native model file is generated for
    specific dnn network with hard-code python scripts maintained out of ffmpeg.
    For example, srcnn network used by vf_sr is generated with
    https://github.com/HighVoltageRocknRoll/sr/blob/master/generate_header_and_model.py#L85

    In this patch, the script is designed as a general solution which
    converts general TensorFlow model .pb file into .model file. The script
    now has some tricky to be compatible with current implemention, will
    be refined step by step.

    The script is also added into ffmpeg source tree. It is expected there
    will be many more patches and community needs the ownership of it.

    Another technical direction is to do the conversion in c/c++ code within
    ffmpeg source tree. While .pb file is organized with protocol buffers,
    it is not easy to do such work with tiny c/c++ code, see more discussion
    at http://ffmpeg.org/pipermail/ffmpeg-devel/2019-May/244496.html. So,
    choose the python script.

    Signed-off-by : Guo, Yejun <yejun.guo@intel.com>

    • [DH] .gitignore
    • [DH] tools/python/convert.py
    • [DH] tools/python/convert_from_tensorflow.py
  • ffmpeg convert cdg/mp3 to mp4 but cdg track is always sped up by a second

    4 mai 2021, par Carver S

    I've tried this :

    &#xA;&#xA;

    "C:\Program Files\ffmpeg-4.2.1-win64-static\bin\ffmpeg" -i %1 -i %2 -b:v 1M -y -speed 2 "%~dpn1.mp4"&#xA;&#xA;"C:\Program Files\ffmpeg-4.2.1-win64-static\bin\ffmpeg" -i %1 -i %2 -pix_fmt yuv420p -vcodec libx264 -async 1 -speed 2 "%~dpn1.mp4"&#xA;

    &#xA;&#xA;

    Always same result. The file and quality are great, but obv since its karaoke... the lyrics need to match the timing and the converted files lyrics track is always about a full second or so ahead from when I play the original in a Karaoke program. Any ideas on what settings I could play with to help with this ?

    &#xA;&#xA;

    Both the original and the converted have the same play length at the end though. so the mp3 track seems to be ok.

    &#xA;&#xA;

    EDIT : Added cmd output

    &#xA;&#xA;

    "C:\Program Files\ffmpeg-4.2.1-win64-static\bin\ffmpeg" -i "A:\25 Karaoke\English\Linkin Park - In The End [SF Karaoke].cdg" -i "A:\25 Karaoke\English\Linkin Park - In The End [SF Karaoke].mp3" -b:v 1M -y -speed 2 "LP_inTheEnd.mp4"&#xA;ffmpeg version 4.2.1 Copyright (c) 2000-2019 the FFmpeg developers&#xA;  built with gcc 9.1.1 (GCC) 20190807&#xA;  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt&#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;  libswscale      5.  5.100 /  5.  5.100&#xA;  libswresample   3.  5.100 /  3.  5.100&#xA;  libpostproc    55.  5.100 / 55.  5.100&#xA;Input #0, cdg, from &#x27;A:\25 Karaoke\English\Linkin Park - In The End [SF Karaoke].cdg&#x27;:&#xA;  Duration: 00:03:56.21, start: 0.480000, bitrate: 57 kb/s&#xA;    Stream #0:0: Video: cdgraphics, pal8, 300x216, 300 fps, 300 tbr, 300 tbn, 300 tbc&#xA;[mp3 @ 000001bb3c14bb40] Estimating duration from bitrate, this may be inaccurate&#xA;Input #1, mp3, from &#x27;A:\25 Karaoke\English\Linkin Park - In The End [SF Karaoke].mp3&#x27;:&#xA;  Metadata:&#xA;    title           : In The End [SF Karaoke]&#xA;    artist          : Linkin Park&#xA;    comment         : http://www.otslabs.com/&#xA;  Duration: 00:03:56.26, start: 0.000000, bitrate: 128 kb/s&#xA;    Stream #1:0: Audio: mp3, 44100 Hz, stereo, fltp, 128 kb/s&#xA;Codec AVOption speed () specified for output file #0 (LP_inTheEnd.mp4) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (cdgraphics (native) -> h264 (libx264))&#xA;  Stream #1:0 -> #0:1 (mp3 (mp3float) -> aac (native))&#xA;Press [q] to stop, [?] for help&#xA;[libx264 @ 000001bb3c13bc00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2&#xA;[libx264 @ 000001bb3c13bc00] profile High 4:4:4 Predictive, level 3.1, 4:4:4, 8-bit&#xA;[libx264 @ 000001bb3c13bc00] 264 - core 158 r2984 3759fcb - H.264/MPEG-4 AVC codec - Copyleft 2003-2019 - 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=4 threads=7 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=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=1000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00&#xA;Output #0, mp4, to &#x27;LP_inTheEnd.mp4&#x27;:&#xA;  Metadata:&#xA;    encoder         : Lavf58.29.100&#xA;    Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv444p(progressive), 300x216, q=-1--1, 1000 kb/s, 300 fps, 19200 tbn, 300 tbc&#xA;    Metadata:&#xA;      encoder         : Lavc58.54.100 libx264&#xA;    Side data:&#xA;      cpb: bitrate max/min/avg: 0/0/1000000 buffer size: 0 vbv_delay: -1&#xA;    Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s&#xA;    Metadata:&#xA;      encoder         : Lavc58.54.100 aac&#xA;More than 1000 frames duplicated&#xA;More than 10000 frames duplicated   2048kB time=00:00:42.16 bitrate= 397.9kbits/s dup=9625 drop=0 speed=11.5x&#xA;frame=59170 fps=3226 q=-1.0 Lsize=   11887kB time=00:03:56.26 bitrate= 412.2kbits/s dup=43525 drop=0 speed=12.9x&#xA;video:7749kB audio:3340kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 7.203599%&#xA;[libx264 @ 000001bb3c13bc00] frame I:242   Avg QP: 0.26  size: 17214&#xA;[libx264 @ 000001bb3c13bc00] frame P:16651 Avg QP: 0.14  size:   164&#xA;[libx264 @ 000001bb3c13bc00] frame B:42277 Avg QP: 0.25  size:    25&#xA;[libx264 @ 000001bb3c13bc00] consecutive B-frames:  2.7%  4.9%  3.8% 88.6%&#xA;[libx264 @ 000001bb3c13bc00] mb I  I16..4: 73.7%  1.6% 24.7%&#xA;[libx264 @ 000001bb3c13bc00] mb P  I16..4:  0.1%  0.0%  0.1%  P16..4:  0.4%  0.0%  0.0%  0.0%  0.0%    skip:99.4%&#xA;[libx264 @ 000001bb3c13bc00] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.3%  0.0%  0.0%  direct: 0.0%  skip:99.7%  L0:44.2% L1:55.6% BI: 0.2%&#xA;[libx264 @ 000001bb3c13bc00] final ratefactor: -19.48&#xA;[libx264 @ 000001bb3c13bc00] 8x8 transform intra:1.5% inter:14.0%&#xA;[libx264 @ 000001bb3c13bc00] coded y,u,v intra: 14.1% 14.8% 14.9% inter: 0.0% 0.0% 0.0%&#xA;[libx264 @ 000001bb3c13bc00] i16 v,h,dc,p: 90%  0%  9%  0%&#xA;[libx264 @ 000001bb3c13bc00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 14% 63%  0%  0%  0%  0%  0%  1%&#xA;[libx264 @ 000001bb3c13bc00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 55% 15% 16%  1%  2%  3%  3%  2%  2%&#xA;[libx264 @ 000001bb3c13bc00] Weighted P-Frames: Y:0.2% UV:0.2%&#xA;[libx264 @ 000001bb3c13bc00] ref P L0: 97.9%  0.9%  1.0%  0.2%&#xA;[libx264 @ 000001bb3c13bc00] ref B L0: 99.6%  0.4%  0.0%&#xA;[libx264 @ 000001bb3c13bc00] ref B L1: 99.9%  0.1%&#xA;[libx264 @ 000001bb3c13bc00] kb/s:321.80&#xA;[aac @ 000001bb3c172e40] Qavg: 6813.878&#xA;

    &#xA;