Recherche avancée

Médias (1)

Mot : - Tags -/ogg

Autres articles (26)

  • 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.

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

  • Selection of projects using MediaSPIP

    2 mai 2011, par

    The examples below are representative elements of MediaSPIP specific uses for specific projects.
    MediaSPIP farm @ Infini
    The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)

Sur d’autres sites (7196)

  • FFmpeg scaling issue

    12 janvier 2018, par DonX

    I am trying to down scale a video from 607x1080 to 440 width with the height automatically being calculated using the following command. It does scale the video but not to the specified dimension. The video is scaled to 216x384 even though the output below indicates 440x384.

    ffmpeg -i video.mp4 -vf scale=440:-2 -c:v libx264 -c:a aac -y video-out.mp4

    The output is as follows :

    ffmpeg version N-87043-gf0f48884b0-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-libfribidi --enable-libass --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg
     libavutil      55. 74.100 / 55. 74.100
     libavcodec     57.103.100 / 57.103.100
     libavformat    57. 77.100 / 57. 77.100
     libavdevice    57.  7.101 / 57.  7.101
     libavfilter     6.100.100 /  6.100.100
     libswscale      4.  7.103 /  4.  7.103
     libswresample   2.  8.100 /  2.  8.100
     libpostproc    54.  6.100 / 54.  6.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       creation_time   : 2017-12-13T19:49:15.000000Z
       encoder         : HandBrake 1.0.7 2017040900
     Duration: 00:00:04.37, start: 0.000000, bitrate: 10080 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1238x1080 [SAR 27:55 DAR 619:1100], 10244 kb/s, 30 fps, 30 tbr, 90k tbn, 180k tbc (default)
       Metadata:
         creation_time   : 2017-12-13T19:49:15.000000Z
         handler_name    : VideoHandler
       Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 2 kb/s (default)
       Metadata:
         creation_time   : 2017-12-13T19:49:15.000000Z
         handler_name    : Stereo
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
     Stream #0:1 -> #0:1 (aac (native) -> aac (native))
    Press [q] to stop, [?] for help
    [libx264 @ 0x5aef920] using SAR=1215/2474
    [libx264 @ 0x5aef920] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
    [libx264 @ 0x5aef920] profile High, level 2.2
    [libx264 @ 0x5aef920] 264 - core 152 r19 ba24899 - 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=12 lookahead_threads=2 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 'video-out.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf57.77.100
       Stream #0:0(und): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 440x384 [SAR 7428:15125 DAR 619:1100], q=-1--1, 30 fps, 15360 tbn, 30 tbc (default)
       Metadata:
         creation_time   : 2017-12-13T19:49:15.000000Z
         handler_name    : VideoHandler
         encoder         : Lavc57.103.100 libx264
       Side data:
         cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
       Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
       Metadata:
         creation_time   : 2017-12-13T19:49:15.000000Z
         handler_name    : Stereo
         encoder         : Lavc57.103.100 aac
    frame=  121 fps=0.0 q=29.0 size=       0kB time=00:00:04.33 bitrate=   0.1kbits/s speed=8.65x    
    frame=  129 fps=0.0 q=-1.0 Lsize=     255kB time=00:00:04.37 bitrate= 478.0kbits/s speed=6.81x    
    video:248kB audio:1kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.344491%
    [libx264 @ 0x5aef920] frame I:1     Avg QP:22.07  size:  5065
    [libx264 @ 0x5aef920] frame P:52    Avg QP:23.68  size:  4248
    [libx264 @ 0x5aef920] frame B:76    Avg QP:24.30  size:   361
    [libx264 @ 0x5aef920] consecutive B-frames: 12.4% 20.2% 20.9% 46.5%
    [libx264 @ 0x5aef920] mb I  I16..4: 13.1% 81.7%  5.2%
    [libx264 @ 0x5aef920] mb P  I16..4:  2.1%  5.2%  1.5%  P16..4: 36.4% 12.2%  8.2%  0.0%  0.0%    skip:34.4%
    [libx264 @ 0x5aef920] mb B  I16..4:  0.2%  0.2%  0.1%  B16..8: 16.3%  1.3%  0.2%  direct: 0.5%  skip:81.2%  L0:42.2% L1:52.1% BI: 5.8%
    [libx264 @ 0x5aef920] 8x8 transform intra:62.0% inter:70.3%
    [libx264 @ 0x5aef920] coded y,uvDC,uvAC intra: 52.3% 45.2% 20.0% inter: 13.3% 10.0% 2.6%
    [libx264 @ 0x5aef920] i16 v,h,dc,p: 17% 48% 11% 24%
    [libx264 @ 0x5aef920] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu:  8% 35% 23%  5%  3%  2%  6%  3% 14%
    [libx264 @ 0x5aef920] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu:  8% 29% 16%  6%  7%  4% 12%  4% 14%
    [libx264 @ 0x5aef920] i8c dc,h,v,p: 64% 26%  7%  2%
    [libx264 @ 0x5aef920] Weighted P-Frames: Y:32.7% UV:5.8%
    [libx264 @ 0x5aef920] ref P L0: 55.7% 22.1% 15.8%  5.8%  0.7%
    [libx264 @ 0x5aef920] ref B L0: 77.8% 15.9%  6.3%
    [libx264 @ 0x5aef920] ref B L1: 97.6%  2.4%
    [libx264 @ 0x5aef920] kb/s:471.40
    [aac @ 0x5b7e180] Qavg: 65536.000

    I did some searching and learned this may be an issue scaling with libx264 codec and the input width being an odd number ? If so, is there a workaround so get the video to scale to the specified size ? Thank you.

  • Recording screencast using ffmpeg produces audio that is out of sync with the video

    7 décembre 2014, par AgilE

    I’m on Fedora 20. I got it pre-compiled from the repo.

    I use the follow command to record screencasts :

    ffmpeg -f alsa -ac 2 -i pulse -f x11grab -r 30 -s 1366x768 -i :0.0 -acodec pcm_s16le -vcodec libx264 -preset ultrafast -crf 0 -threads 0 filename.mkv

    The audio is perfectly synced with the video at the beginning. However, as the video progresses, the audio starts lagging behind severely (say a lag of more than 4 seconds). I’ve included a sample output that ffmpeg shows while recording a video.

    ffmpeg version 2.1.3 Copyright (c) 2000-2013 the FFmpeg developers
     built on Jan 25 2014 15:11:42 with gcc 4.8.2 (GCC) 20131212 (Red Hat 4.8.2-7)
     configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' --enable-bzlib --disable-crystalhd --enable-frei0r --enable-gnutls --enable-libass --enable-libcdio --enable-libcelt --enable-libdc1394 --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopencv --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect
     libavutil      52. 48.101 / 52. 48.101
     libavcodec     55. 39.101 / 55. 39.101
     libavformat    55. 19.104 / 55. 19.104
     libavdevice    55.  5.100 / 55.  5.100
     libavfilter     3. 90.100 /  3. 90.100
     libavresample   1.  1.  0 /  1.  1.  0
     libswscale      2.  5.101 /  2.  5.101
     libswresample   0. 17.104 /  0. 17.104
     libpostproc    52.  3.100 / 52.  3.100
    Guessed Channel Layout for  Input Stream #0.0 : stereo
    Input #0, alsa, from 'pulse':
     Duration: N/A, start: 1391533629.323015, bitrate: 1536 kb/s
       Stream #0:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
    [x11grab @ 0x153ad80] device: :0.0 -> display: :0.0 x: 0 y: 0 width: 1366 height: 768
    [x11grab @ 0x153ad80] shared memory extension found
    Input #1, x11grab, from ':0.0':
     Duration: N/A, start: 1391533629.365274, bitrate: 1007124 kb/s
       Stream #1:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 1366x768, 1007124 kb/s, 30 tbr, 1000k tbn, 30 tbc
    [swscaler @ 0x1520460] deprecated pixel format used, make sure you did set range correctly
    No pixel format specified, yuv444p for H.264 encoding chosen.
    Use -pix_fmt yuv420p for compatibility with outdated media players.
    [libx264 @ 0x1551420] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
    [libx264 @ 0x1551420] profile High 4:4:4 Predictive, level 3.2, 4:4:4 8-bit
    [libx264 @ 0x1551420] 264 - core 138 r2363 c628e3b - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=0 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=0 chroma_qp_offset=0 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=0 intra_refresh=0 rc=cqp mbtree=0 qp=0
    Output #0, matroska, to 'testing.mkv':
     Metadata:
       encoder         : Lavf55.19.104
       Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuv444p, 1366x768, q=-1--1, 1k tbn, 30 tbc
       Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s16, 1536 kb/s
    Stream mapping:
     Stream #1:0 -> #0:0 (rawvideo -> libx264)
     Stream #0:0 -> #0:1 (pcm_s16le -> pcm_s16le)
    Press [q] to stop, [?] for help
    [swscaler @ 0x1520460] Warning: data is not aligned! This can lead to a speedloss
    frame=  213 fps= 27 q=-1.0 Lsize=    3572kB time=00:00:08.00 bitrate=3653.6kbits/s    
    video:2025kB audio:1501kB subtitle:0 global headers:0kB muxing overhead 1.291094%
    [libx264 @ 0x1551420] frame I:1     Avg QP: 0.00  size:692585
    [libx264 @ 0x1551420] frame P:212   Avg QP: 0.00  size:  6509
    [libx264 @ 0x1551420] mb I  I16..4: 100.0%  0.0%  0.0%
    [libx264 @ 0x1551420] mb P  I16..4: 47.2%  0.0%  0.0%  P16..4:  0.1%  0.0%  0.0%  0.0%  0.0%    skip:52.8%
    [libx264 @ 0x1551420] coded y,u,v intra: 0.7% 0.7% 0.7% inter: 0.1% 0.1% 0.1%
    [libx264 @ 0x1551420] i16 v,h,dc,p: 100%  0%  0%  0%
    [libx264 @ 0x1551420] kb/s:2335.32

    Is there something I’m missing ?

  • FFmpeg wrong duration(double) when convert mp4

    13 novembre 2017, par crazymxm

    The output file has the double duration :

    Source video duration :00:01:58.88

    output video duration :00:03:57.76

    (video’s duration is double ,audio’s duration is correct. So, the video looks like played twice, with no sound in the second half )

    here is the log:

    ./ffmpeg -i /Volumes/LANKEXIN/1383.mp4 out.mp4
    ffmpeg version N-82977-g8fd3e02-tessus Copyright (c) 2000-2016 the FFmpeg developers
    built with Apple LLVM version 8.0.0 (clang-800.0.42.1)
    configuration : —cc=/usr/bin/clang —prefix=/opt/ffmpeg —extra-version=tessus —enable-avisynth —enable-fontconfig —enable-gpl —enable-libass —enable-libbluray —enable-libfreetype —enable-libgsm —enable-libmodplug —enable-libmp3lame —enable-libopencore-amrnb —enable-libopencore-amrwb —enable-libopus —enable-libschroedinger —enable-libsnappy —enable-libsoxr —enable-libspeex —enable-libtheora —enable-libvidstab —enable-libvo-amrwbenc —enable-libvorbis —enable-libvpx —enable-libwavpack —enable-libx264 —enable-libx265 —enable-libxavs —enable-libxvid —enable-libzmq —enable-version3 —disable-ffplay —disable-indev=qtkit —disable-indev=x11grab_xcb

     libavutil      55. 43.100 / 55. 43.100
     libavcodec     57. 70.100 / 57. 70.100
     libavformat    57. 61.100 / 57. 61.100
     libavdevice    57.  2.100 / 57.  2.100
     libavfilter     6. 68.100 /  6. 68.100
     libswscale      4.  3.101 /  4.  3.101
     libswresample   2.  4.100 /  2.  4.100
     libpostproc    54.  2.100 / 54.  2.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Volumes/LANKEXIN/1383.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: mp42isom
       creation_time   : 2017-10-30T14:58:05.000000Z
       encoder         : mp4creator 1.6.1d
     Duration: 00:01:58.88, start: 0.000000, bitrate: 1918 kb/s
       Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1729 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc (default)
       Metadata:
         creation_time   : 2017-10-30T14:58:05.000000Z
         encoder         : VC Coding
       Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 189 kb/s (default)
       Metadata:
         creation_time   : 2017-10-30T14:58:05.000000Z
    File 'out.mp4' already exists. Overwrite ? [y/N] y
    [libx264 @ 0x7fbaca003c00] using SAR=1/1
    [libx264 @ 0x7fbaca003c00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
    [libx264 @ 0x7fbaca003c00] profile High, level 3.1
    [libx264 @ 0x7fbaca003c00] 264 - core 148 - H.264/MPEG-4 AVC codec - Copyleft 2003-2016 - 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=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 'out.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: mp42isom
       encoder         : Lavf57.61.100
       Stream #0:0(eng): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 12800 tbn, 25 tbc (default)
       Metadata:
         creation_time   : 2017-10-30T14:58:05.000000Z
         encoder         : Lavc57.70.100 libx264
       Side data:
         cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
       Stream #0:1(eng): Audio: aac (LC) ([64][0][0][0] / 0x0040), 48000 Hz, stereo, fltp, 128 kb/s (default)
       Metadata:
         creation_time   : 2017-10-30T14:58:05.000000Z
         encoder         : Lavc57.70.100 aac
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
     Stream #0:1 -> #0:1 (aac (native) -> aac (native))
    Press [q] to stop, [?] for help
    frame=   46 fps=0.0 q=0.0 size=       0kB time=00:00:00.93 bitrate=   0.0kbits/sframe=   64 fps= 45 q=28.0 size=     137kB time=00:00:01.66 bitrate= 672.2kbits/frame=   85 fps= 44 qframe= 5944 fps= 33 q=-1.0 Lsize=   38746kB time=00:03:57.64 bitrate=1335.7kbits/s speed=1.33x    4kB time=00:00:02.94 bitrate= 818.0kbits/s speed= 1.2x    
    video:36779kB audio:1846kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.311413%
    [libx264 @ 0x7fbaca003c00] frame I:24    Avg QP:19.49  size: 67090
    [libx264 @ 0x7fbaca003c00] frame P:1806  Avg QP:21.65  size: 14304
    [libx264 @ 0x7fbaca003c00] frame B:4114  Avg QP:25.42  size:  2484
    [libx264 @ 0x7fbaca003c00] consecutive B-frames:  2.2%  8.1% 25.5% 64.2%
    [libx264 @ 0x7fbaca003c00] mb I  I16..4: 20.6% 55.8% 23.6%
    [libx264 @ 0x7fbaca003c00] mb P  I16..4:  5.2%  9.3%  0.8%  P16..4: 36.0%  9.9%  4.2%  0.0%  0.0%    skip:34.5%
    [libx264 @ 0x7fbaca003c00] mb B  I16..4:  0.5%  1.0%  0.0%  B16..8: 27.2%  1.8%  0.2%  direct: 0.9%  skip:68.5%  L0:48.6% L1:47.6% BI: 3.8%
    [libx264 @ 0x7fbaca003c00] 8x8 transform intra:60.9% inter:78.2%
    [libx264 @ 0x7fbaca003c00] coded y,uvDC,uvAC intra: 38.3% 61.5% 12.3% inter: 6.6% 11.3% 0.6%
    [libx264 @ 0x7fbaca003c00] i16 v,h,dc,p: 22% 35% 10% 33%
    [libx264 @ 0x7fbaca003c00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 24% 21%  5%  6%  6%  6%  5%  6%
    [libx264 @ 0x7fbaca003c00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 33% 11%  4%  7%  6%  6%  4%  4%
    [libx264 @ 0x7fbaca003c00] i8c dc,h,v,p: 43% 30% 20%  7%
    [libx264 @ 0x7fbaca003c00] Weighted P-Frames: Y:0.3% UV:0.2%
    [libx264 @ 0x7fbaca003c00] ref P L0: 73.5%  9.0% 13.8%  3.7%  0.0%
    [libx264 @ 0x7fbaca003c00] ref B L0: 92.4%  6.6%  1.1%
    [libx264 @ 0x7fbaca003c00] ref B L1: 97.7%  2.3%
    [libx264 @ 0x7fbaca003c00] kb/s:1267.21
    [aac @ 0x7fbaca021800] Qavg: 897.576