Recherche avancée

Médias (91)

Autres articles (49)

  • Changer son thème graphique

    22 février 2011, par

    Le thème graphique ne touche pas à la disposition à proprement dite des éléments dans la page. Il ne fait que modifier l’apparence des éléments.
    Le placement peut être modifié effectivement, mais cette modification n’est que visuelle et non pas au niveau de la représentation sémantique de la page.
    Modifier le thème graphique utilisé
    Pour modifier le thème graphique utilisé, il est nécessaire que le plugin zen-garden soit activé sur le site.
    Il suffit ensuite de se rendre dans l’espace de configuration du (...)

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

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

  • error when converting mts to mp4

    6 janvier 2015, par Chan Kim

    I have many video files that I want to convert to mp4.
    so I installed ffmpeg on my win7 PC (64 bit) which is using shared library.
    I tried to convert an MTS file to MP4 and I get this error.
    What is the problem ?

    $ ffmpeg -i 20140806114251.MTS 20140806114251.mp4
    ffmpeg version N-68788-g37b35fe Copyright (c) 2000-2014 the FFmpeg developers
     built on Dec 30 2014 22:18:55 with gcc 4.9.2 (GCC)
     configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --disable-w32threads --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-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib
     libavutil      54. 15.100 / 54. 15.100
     libavcodec     56. 19.100 / 56. 19.100
     libavformat    56. 16.102 / 56. 16.102
     libavdevice    56.  3.100 / 56.  3.100
     libavfilter     5.  6.100 /  5.  6.100
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  1.100 /  1.  1.100
     libpostproc    53.  3.100 / 53.  3.100
    Input #0, mpegts, from '20140806114251.MTS':
     Duration: 00:00:19.04, start: 1.033367, bitrate: 16273 kb/s
     Program 1
       Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
       Stream #0:1[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 448 kb/s
       Stream #0:2[0x1200]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090), 1920x1080
    [libx264 @ 0000000002b60a20] using SAR=1/1
    [libx264 @ 0000000002b60a20] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
    [libx264 @ 0000000002b60a20] profile High, level 4.0
    [libx264 @ 0000000002b60a20] 264 - core 144 r2525 40bb568 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - 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
    [libvo_aacenc @ 00000000028a4020] Unable to set encoding parameters
    Output #0, mp4, to '20140806114251.mp4':
       Stream #0:0: Video: h264 (libx264), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 29.97 fps, 29.97 tbn, 29.97 tbc
       Metadata:
         encoder         : Lavc56.19.100 libx264
       Stream #0:1: Audio: aac, 0 channels, 128 kb/s
       Metadata:
         encoder         : Lavc56.19.100 libvo_aacenc
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
     Stream #0:1 -> #0:1 (ac3 (native) -> aac (libvo_aacenc))
    Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height

    EDIT : I thought I solved this problem by using

    ffmpeg -i filename1.mts filename1.mkv

    my Samsung LED TV supports mkv file and during the conversion, it shows

     Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
     Stream #0:1 -> #0:1 (ac3 (native) -> vorbis (libvorbis))

    But Alas ! my TV doesn’t support vorbis codec. It only supports mp3, ac3, lpcm, and ADPCM when using mkv container. So the question is : How do people select output audio codec ?

  • avconv : Saving MP4 is Taking Hours

    4 septembre 2015, par PeregrineStudios

    not entirely sure if I should post this on askubuntu or stackoverflow. Posted on askubuntu and not getting any answers. I’m hoping I can find an answer here.

    I’m setting up a website where users can upload videos and share them. I’m using avconv to reduce the video size and save it twice, once as an mp4 and again as a webm.

    Uploading a .MOV from a phone, the video conversion is quick and manageable.

    Uploading a .mp4 from a Samsung Galaxy S3, the video conversion to webm is also quick. But, the conversion to another mp4 takes FOREVER - literally hours. Why ? Is anyone able to shed light on the problem ?

    My avconv output is below.

    avconv -i /var/www/dev_jackpine/ottawa2017/temp_videos/37a949071acaee714dae829ca8df9b29.mp4 -c:v libx264 -vf transpose=1,transpose=1,transpose=1 -s 640x480 /var/www/dev_jackpine/ottawa2017/spinnies/test.mp4
    avconv version 0.8.17-4:0.8.17-0ubuntu0.12.04.1, Copyright (c) 2000-2014 the Libav developers
    built on Mar 16 2015 13:26:50 with gcc 4.6.3
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/var/www/dev_jackpine/ottawa2017/temp_videos/37a949071acaee714dae829ca8df9b29.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 0
       compatible_brands: isom3gp4
       creation_time   : 2015-09-04 15:08:21
    Duration: 00:00:07.76, start: 0.000000, bitrate: 11756 kb/s
    Stream #0.0(eng): Video: h264 (Constrained Baseline), yuv420p, 1280x720, 11967 kb/s, 29.81 fps, 90k tbr, 90k tbn, 180k tbc
    Metadata:
     creation_time   : 2015-09-04 15:08:21
    Stream #0.1(eng): Audio: aac, 48000 Hz, stereo, s16, 119 kb/s
    Metadata:
     creation_time   : 2015-09-04 15:08:21
    File '/var/www/dev_jackpine/ottawa2017/spinnies/test.mp4' already exists. Overwrite ? [y/N] y
    [buffer @ 0xc3d580] w:1280 h:720 pixfmt:yuv420p
    [scale @ 0xc3dac0] w:1280 h:720 fmt:yuv420p -> w:640 h:480 fmt:yuv420p flags:0x4
    [transpose @ 0xc3e280] w:640 h:480 dir:1 -> w:480 h:640 rotation:clockwise vflip:0
    [transpose @ 0xc3e7c0] w:480 h:640 dir:1 -> w:640 h:480 rotation:clockwise vflip:0
    [transpose @ 0xc3ede0] w:640 h:480 dir:1 -> w:480 h:640 rotation:clockwise vflip:0
    [libx264 @ 0xc2b100] MB rate (108000000) > level limit (983040)
    [libx264 @ 0xc2b100] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX
    [libx264 @ 0xc2b100] profile Main, level 5.1
    [libx264 @ 0xc2b100] 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=3 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 '/var/www/dev_jackpine/ottawa2017/spinnies/test.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 0
       compatible_brands: isom3gp4
       creation_time   : 2015-09-04 15:08:21
       encoder         : Lavf53.21.1
       Stream #0.0(eng): Video: libx264, yuv420p, 480x640, q=-1--1, 180k tbn, 90k tbc
       Metadata:
         creation_time   : 2015-09-04 15:08:21
       Stream #0.1(eng): Audio: libvo_aacenc, 48000 Hz, stereo, s16, 200 kb/s
       Metadata:
         creation_time   : 2015-09-04 15:08:21
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 -> libx264)
     Stream #0:1 -> #0:1 (aac -> libvo_aacenc)
    Press ctrl-c to stop encoding

    Here’s an example frame output :

    frame=124398 fps=142 q=33.0 size=   16885kB time=1.38 bitrate=100110.2kbits/s dup=124356 drop=0

    I’ve had the process running the whole time I’ve been writing this question, and so far it’s done... 22 frames.

    What could be the problem ?

  • Ffmpeg - Convert Wav to OGG on Android (wrong metadata on some devices)

    13 décembre 2016, par Pepa Zapletal

    I have in the app Wav file and I want to convert it to the OGG format.

    I’m using ffmpeg library for it and this command :

    ffmpeg -i /storage/emulated/0/Test.wav -c:a libvorbis -q:a 5 /storage/emulated/0/Test.ogg

    But I have problem play correctly the generated OGG file on some Android devices. If I open this file in standard MediaPlayer then I get the wrong file duration, seeking is also not working very well BUT the file is played whole and correctly. This happens for example on Huawei M2 with Android 5.1 but on Samsung Galaxy S5 (with Android 5.1) the generated file is OK and playing is also OK.

    Do you have some idea where can be a problem ?

    Full output from ffmpeg :

    ffmpeg version n2.6.2 Copyright (c) 2000-2015 the FFmpeg developers
    built with gcc 4.9 (GCC) 20140827 (prerelease)
     configuration: --target-os=linux --cross-prefix=/home/chrono/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --enable-runtime-cpudetect --sysroot=/home/chrono/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libtheora --enable-libfdk-aac --enable-nonfree --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/chrono/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/chrono/ffmpeg-android/build/armeabi-v7a --extra-cflags='-I/home/chrono/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp' --extra-ldflags='-L/home/chrono/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie -Wl,--fix-cortex-a8' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=
     libavutil      54. 20.100 / 54. 20.100
     libavcodec     56. 26.100 / 56. 26.100
     libavformat    56. 25.101 / 56. 25.101
     libavdevice    56.  4.100 / 56.  4.100
     libavfilter     5. 11.102 /  5. 11.102
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  1.100 /  1.  1.100
     libpostproc    53.  3.100 / 53.  3.100
    Guessed Channel Layout for  Input Stream #0.0 : stereo
    Input #0, wav, from '/storage/emulated/0/IAMDJ/MyLoops/mix folder/Test.wav':
      Metadata:
        encoder         : Lavf56.25.101
      Duration: 00:00:16.01, bitrate: 1411 kb/s
        Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 2 channels, s16, 1411 kb/s
    Output #0, ogg, to '/storage/emulated/0/Test.ogg':
      Metadata:
        encoder         : Lavf56.25.101
        Stream #0:0: Audio: vorbis (libvorbis), 44100 Hz, stereo, fltp
     Metadata:
         encoder         : Lavc56.26.100 libvorbis
    Stream mapping:
    Stream #0:0 -> #0:0 (pcm_s16le (native) -> vorbis (libvorbis))
    Press [q] to stop, [?] for help
    size=       4kB time=00:00:01.00 bitrate=  35.0kbits/s    
    size=      27kB time=00:00:02.01 bitrate= 107.8kbits/s    
    size=      48kB time=00:00:03.04 bitrate= 129.3kbits/s    
    size=      70kB time=00:00:04.06 bitrate= 140.3kbits/s    
    size=      91kB time=00:00:05.14 bitrate= 144.9kbits/s    
    size=     113kB time=00:00:06.15 bitrate= 149.7kbits/s    
    video:0kB audio:344kB subtitle:0kB other streams:0kB global headers:4kB muxing overhead: 1.994279%

    Edit : here is the result file : Test.ogg

    Edit 2 : Maybe there can be a problem with standard MediaPlayer but another Ogg file is played correctly.