Recherche avancée

Médias (17)

Mot : - Tags -/wired

Autres articles (30)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (6497)

  • ffmpeg concatenate image and audio to beginning of file

    18 mai 2017, par swg1cor14

    So I want to try and use the ffmpeg MAP command to do the following :

    Merge audio and jpg
    Concatenate mp4 to end

    Still.jpg
    audio.mp3   ->    video.mp4     =    output.mp4

    Right now I have

    /home/admin/ffmpeg/ffmpeg -i still.jpg -i audio.mp3 render1.mp4

    But I want to also go ahead and add on the video.mp4 as well. I tried reading the map function but I’m so confused as to how you know how many streams a file has, etc

    Heres the output of the command....note I have different file names

    Input #0, image2, from 'slide_2.jpg':
     Duration: 00:00:00.04, start: 0.000000, bitrate: 8276 kb/s
       Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 1280x720 [SAR 1:1 DAR 16:9], 25 tbr, 25 tbn, 25 tbc
    Input #1, mp3, from '/home/admin/web/admin.simplewebevents.com/public_html/cron/steveng1.mp3':
     Metadata:
       encoder         : Lavf57.56.100
     Duration: 00:00:05.78, start: 0.023021, bitrate: 64 kb/s
       Stream #1:0: Audio: mp3, 48000 Hz, mono, s16p, 64 kb/s
    File 'introFile62.mp4' already exists. Overwrite ? [y/N] y
    Stream mapping:
     Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
     Stream #1:0 -> #0:1 (mp3 (native) -> aac (native))
    Press [q] to stop, [?] for help
    No pixel format specified, yuvj420p for H.264 encoding chosen.
    Use -pix_fmt yuv420p for compatibility with outdated media players.
    [libx264 @ 0x3589a00] using SAR=1/1
    [libx264 @ 0x3589a00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
    [libx264 @ 0x3589a00] profile High, level 3.1
    [libx264 @ 0x3589a00] 264 - core 148 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - 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=1 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=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 'introFile62.mp4':
     Metadata:
       encoder         : Lavf57.72.101
       Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuvj420p(pc, progressive), 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 12800 tbn, 25 tbc
       Metadata:
         encoder         : Lavc57.96.101 libx264
       Side data:
         cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
       Stream #0:1: Audio: aac (LC) ([64][0][0][0] / 0x0040), 48000 Hz, mono, fltp, 69 kb/s
       Metadata:
         encoder         : Lavc57.96.101 aac
    frame=    1 fps=0.2 q=28.0 Lsize=      70kB time=00:00:05.76 bitrate=  99.2kbits/s speed=1.27x    
    video:18kB audio:49kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 3.483214%
    [libx264 @ 0x3589a00] frame I:1     Avg QP:25.71  size: 18268
    [libx264 @ 0x3589a00] mb I  I16..4: 25.6% 63.4% 10.9%
    [libx264 @ 0x3589a00] 8x8 transform intra:63.4%
    [libx264 @ 0x3589a00] coded y,uvDC,uvAC intra: 14.3% 18.5% 8.9%
    [libx264 @ 0x3589a00] i16 v,h,dc,p: 81%  9% 10%  1%
    [libx264 @ 0x3589a00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 50% 12% 33%  1%  1%  1%  0%  1%  1%
    [libx264 @ 0x3589a00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 46% 21% 13%  3%  4%  5%  2%  4%  2%
    [libx264 @ 0x3589a00] i8c dc,h,v,p: 76%  8% 15%  1%
    [libx264 @ 0x3589a00] kb/s:3653.60
    [aac @ 0x358aea0] Qavg: 118.057
  • How can I play libvorbis(ogg) streams using ffplay received with udp ?

    31 mars 2017, par crisman

    ffmpeg

    ffmpeg -f dshow -i audio="virtual-audio-capturer" -codec:a libvorbis -b:a 128k -ac 2 -ar 48000 -f mpegts udp://127.0.0.1:1111

    ffplay

    ffplay -codec:a libvorbis -b:a 128k -ar 48000 -ac 2 udp://127.0.0.1:1111

    not playing audio.


    Other codecs play back working, example below.

    aac working

    ffmpeg -f dshow -i audio="virtual-audio-capturer" -codec:a aac -b:a 128k -ac 2 -ar 48000 -f mpegts udp://127.0.0.1:1111
    ffplay -codec:a aac -b:a 128k -ar 48000 -ac 2 udp://127.0.0.1:1111

    opus codec working

    ffmpeg -f dshow -i audio="virtual-audio-capturer" -codec:a libopus -b:a 128k -ac 2 -ar 48000 -f mpegts udp://127.0.0.1:1111
    ffplay -codec:a libopus -b:a 128k -ar 48000 -ac 2 udp://127.0.0.1:1111

    mp3 working

    ffmpeg -f dshow -i audio="virtual-audio-capturer" -codec:a mp3 -b:a 128k -ac 2 -ar 48000 -f mpegts udp://127.0.0.1:1111
    ffplay -codec:a mp3 -b:a 128k -ar 48000 -ac 2 udp://127.0.0.1:1111

    why libvorbis not working ?

    transport success, but can not play, i think.

    // not woring ffplay displayed log
    ffplay.exe -loglevel debug -codec:a vorbis -b:a 128k -ar 48000 -ac 2 -sync audio -i udp://127.0.0.1:1111
    ffplay version N-83781-g3016e91 Copyright (c) 2003-2017 the FFmpeg developers
    built with gcc 6.3.0 (GCC)
    configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-zlib
    libavutil 55. 48.100 / 55. 48.100
    libavcodec 57. 82.102 / 57. 82.102
    libavformat 57. 66.103 / 57. 66.103
    libavdevice 57. 3.100 / 57. 3.100
    libavfilter 6. 74.100 / 6. 74.100
    libswscale 4. 3.101 / 4. 3.101
    libswresample 2. 4.100 / 2. 4.100
    libpostproc 54. 2.100 / 54. 2.100
    [udp @ 0000000000b68700] No default whitelist set sq= 0B f=0/0
    [udp @ 0000000000b68700] end receive buffer size reported is 65536
    [mpegts @ 0000000000b68ac0] Format mpegts probed with size=2048 and score=50
    [mpegts @ 0000000000b68ac0] stream=0 stream_type=6 pid=100 prog_reg_desc=
    [mpegts @ 0000000000b68ac0] Before avformat_find_stream_info() pos: 0 bytes read:8208 seeks:0 nb_streams:1
    [mpegts @ 0000000000b68ac0] probing stream 0 pp:2500
    [mpegts @ 0000000000b68ac0] probing stream 0 pp:2499
    [mpegts @ 0000000000b68ac0] probing stream 0 pp:2498
    [mpegts @ 0000000000b68ac0] probing stream 0 pp:2497
    [mpegts @ 0000000000b68ac0] probing stream 0 pp:2496
    [mpegts @ 0000000000b68ac0] probing stream 0 pp:2495
    [mpegts @ 0000000000b68ac0] probing stream 0 pp:2494= 0B f=0/0
    [mpegts @ 0000000000b68ac0] Probe with size=10038, packets=7 detected mp3 with score=1
    [mpegts @ 0000000000b68ac0] probing stream 0 pp:2493= 0B f=0/0
    [mpegts @ 0000000000b68ac0] probing stream 0 pp:2492= 0B f=0/0
    [mpegts @ 0000000000b68ac0] probing stream 0 pp:2491= 0B f=0/0
    [mpegts @ 0000000000b68ac0] Probe with size=18321, packets=10 detected mp3 with score=1
    [mpegts @ 0000000000b68ac0] probing stream 0 pp:2490= 0B f=0/0
  • FFMPEG/AVCONV Video flipping is taking long time, How can we reduce the process time ?

    10 juillet 2014, par Prasanth P

    I am trying to flip video using FFMPEG/AVCONV on Ubuntu. When it flips 1 minute video, it takes 12 to 40 seconds for processing and conversion.

    ffmpeg is deprecated and avconv is being using instead.

    Video file size : 7mb, Duration : 1 minute

    avconv -i 1_1.mp4 -c:v libx264 -c:a copy -vf "vflip" conv.mp4

    and the result is :

    avconv version 0.8.12-4:0.8.12-0ubuntu0.12.04.1, Copyright (c) 2000-2014 the Libav developers
     built on Jun 10 2014 15:32:44 with gcc 4.6.3
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '1_1.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: mp42mp41
       creation_time   : 2013-06-06 07:42:07
     Duration: 00:03:45.15, start: 0.000000, bitrate: 266 kb/s
       Stream #0.0(eng): Video: h264 (High), yuv420p, 640x360 [PAR 1:1 DAR 16:9], 216 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc
       Metadata:
         creation_time   : 2013-06-06 07:42:07
       Stream #0.1(eng): Audio: aac, 32000 Hz, mono, s16, 46 kb/s
       Metadata:
         creation_time   : 2013-06-06 07:42:07
    [buffer @ 0x972c240] w:640 h:360 pixfmt:yuv420p
    [libx264 @ 0x9745e20] using SAR=1/1
    [libx264 @ 0x9745e20] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX
    [libx264 @ 0x9745e20] profile Main, level 3.0
    [libx264 @ 0x9745e20] 264 - core 120 r2151 a3f4407 - H.264/MPEG-4 AVC codec - Copyleft 2003-2011 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=0 b_adapt=1 b_bias=0 direct=1 weightb=0 open_gop=1 weightp=2 keyint=250 keyint_min=25 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.25 aq=1:1.00
    Output #0, mp4, to 'conv.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: mp42mp41
       creation_time   : 2013-06-06 07:42:07
       encoder         : Lavf53.21.1
       Stream #0.0(eng): Video: libx264, yuv420p, 640x360 [PAR 1:1 DAR 16:9], q=-1--1, 25 tbn, 25 tbc
       Metadata:
         creation_time   : 2013-06-06 07:42:07
       Stream #0.1(eng): Audio: libvo_aacenc, 32000 Hz, mono, 46 kb/s
       Metadata:
         creation_time   : 2013-06-06 07:42:07
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 -> libx264)
     Stream #0:1 -> #0:1 (copy)
    Press ctrl-c to stop encoding
    frame= 5627 fps=153 q=-1.0 Lsize=    7880kB time=225.04 bitrate= 286.9kbits/s    
    video:6487kB audio:1271kB global headers:0kB muxing overhead 1.580010%
    [libx264 @ 0x9745e20] frame I:27    Avg QP:15.59  size: 19598
    [libx264 @ 0x9745e20] frame P:1478  Avg QP:20.11  size:  3175
    [libx264 @ 0x9745e20] frame B:4122  Avg QP:29.13  size:   344
    [libx264 @ 0x9745e20] consecutive B-frames:  1.9%  0.5%  2.1% 95.5%
    [libx264 @ 0x9745e20] mb I  I16..4: 20.1%  0.0% 79.9%
    [libx264 @ 0x9745e20] mb P  I16..4:  1.2%  0.0%  1.7%  P16..4: 23.9% 12.3%  5.6%  0.0%  0.0%    skip:55.2%
    [libx264 @ 0x9745e20] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8: 18.4%  2.3%  0.2%  direct: 0.3%  skip:78.8%  L0:41.7% L1:51.7% BI: 6.6%
    [libx264 @ 0x9745e20] coded y,uvDC,uvAC intra: 64.4% 44.0% 15.7% inter: 4.3% 4.8% 0.2%
    [libx264 @ 0x9745e20] i16 v,h,dc,p: 40% 19% 13% 28%
    [libx264 @ 0x9745e20] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 22% 17%  5%  7%  6%  6%  5%  4%
    [libx264 @ 0x9745e20] i8c dc,h,v,p: 65% 13% 19%  3%
    [libx264 @ 0x9745e20] Weighted P-Frames: Y:1.9% UV:1.2%
    [libx264 @ 0x9745e20] ref P L0: 72.8%  7.2% 13.5%  6.4%  0.0%
    [libx264 @ 0x9745e20] ref B L0: 91.2%  8.8%
    [libx264 @ 0x9745e20] kb/s:236.07

    And time taken is 13 seconds.