Recherche avancée

Médias (91)

Autres articles (95)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (12696)

  • avconv on debian jessie throws error when trying to convert raw video to mp4

    20 août 2017, par Vinay Divakar

    I am trying to convert a raw video captured using a Logitech USB Cam(YUYV) to mp4 using avconv. I have tried the below to do so :

    avconv -i out.raw -c copy output.mp4
    avconv -i out.raw -vcodec copy -acodec copy output.mp4

    but I get an error as shown below.

    root@beaglebone:~/BBB_CV/boneCV# avconv -i out.raw -c copy output.mp4
    avconv version 11.9-6:11.9-1~deb8u1, Copyright (c) 2000-2017 the Libav developersbuilt on Apr 23 2017 23:00:54 with gcc 4.9.2 (Debian 4.9.2-10)
    out.raw: Invalid data found when processing input

    I have checked here, but did not find any relevant examples for the above purpose.

    Edit : Added more details—

    I tried doing the below by adding the infile options as suggested :

    root@beaglebone:~/BBB_CV/boneCV# avconv -s 640x480 -framerate 30 -pix_fmt yuyv422 -f rawvideo -i out.raw -c copy output.mp4

    This got me rid of the previous error and some new ones popped up as shown below.

    root@beaglebone:~/BBB_CV/boneCV# avconv -s 640x480 -framerate 30 -pix_fmt yuyv422 -f rawvideo -i out.raw -c copy output.mp4
    avconv version 11.9-6:11.9-1~deb8u1, Copyright (c) 2000-2017 the Libav
    developers built on Apr 23 2017 23:00:54 with gcc 4.9.2 (Debian 4.9.2-10)
    [rawvideo @ 0x17e21c0] Estimating duration from bitrate, this may be inaccurate
    Input #0, rawvideo, from 'out.raw':
    Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: rawvideo, yuyv422, 640x480, 30 tbn
    [mp4 @ 0x17eb840] Codec for stream 0 does not use global headers but
    container format requires global headers
    [mp4 @ 0x17eb840] track 0: could not find tag, codec not currently
    supported in container
    Output #0, mp4, to 'output.mp4':
    Metadata:
    encoder         : Lavf56.1.0
    Stream #0.0: Video: rawvideo, yuyv422, 640x480, q=2-31, 30 tbn, 30 tbc
    Stream mapping:
    Stream #0:0 -> #0:0 (copy)
    Could not write header for output file #0 (incorrect codec parameters ?):
    Operation not permitted

    The output.mp4 is being generated but when tried to open it throws an error.

    Edit : I ran a "sudo apt-get install libav-tools" an then tried. This is what I got.

    root@beaglebone:~/BBB_CV/boneCV# avconv -s 640x480 -framerate 30 -pix_fmt
    yuyv422 -f rawvideo -i out.raw -c copy output.mp4
    ffmpeg version 2.6.9 Copyright (c) 2000-2016 the FFmpeg developers
    built with gcc 4.9.2 (Debian 4.9.2-10)
    configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector-
    strong -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro'
      -cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-
       nonfree --enable-libvorbis --enable-pthreads --enable-libfaac --enable-
       libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-
       libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-
       libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-
       libvpx --enable-libschroedinger --disable-encoder=libschroedinger --
       enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter -
       enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-
      libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/arm-linux-gnueabihf -
      -disable-vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-
      frei0r --enable-openssl --enable-libass --enable-libopus --enable-
      fontconfig --enable-libpulse --disable-mips32r2 --disable-mipsdspr1 --
      disable-mipsdspr2 --enable-libvidstab --enable-libzvbi --enable-avresample
      --disable-htmlpages --disable-podpages --enable-libutvideo --enable-
      libfdk-aac --enable-libx265 --enable-libiec61883 --enable-libdc1394 --
      disable-altivec --shlibdir=/usr/lib/arm-linux-gnueabihf
      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
      libavresample   2.  1.  0 /  2.  1.  0
      libswscale      3.  1.101 /  3.  1.101
      libswresample   1.  1.100 /  1.  1.100
      libpostproc    53.  3.100 / 53.  3.100
     [rawvideo @ 0x18465e0] Estimating duration from bitrate, this may be
      inaccurate
      Input #0, rawvideo, from 'out.raw':
      Duration: 00:00:00.10, start: 0.000000, bitrate: 146626 kb/s
      Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 640x480, 147456
      kb/s, 30 tbr, 30 tbn, 30 tbc
      [mp4 @ 0x184f790] Could not find tag for codec rawvideo in stream #0,
      codec not currently supported in container
      Output #0, mp4, to 'output.mp4':
      Metadata:
      encoder         : Lavf56.25.101
      Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 640x480, q=2-
      31, 147456 kb/s, 30 tbr, 30 tbn, 30 tbc
      Stream mapping:
      Stream #0:0 -> #0:0 (copy)
      Could not write header for output file #0 (incorrect codec parameters ?):
      Invalid argument

    I ran "ffmpeg -s 640x480 -framerate 30 -pix_fmt yuv420p -f rawvideo -i out.raw output.mp4" and below is what I got.

    root@beaglebone:~/BBB_CV/boneCV# ffmpeg -s 640x480 -framerate 30 -pix_fmt yuv420p -f rawvideo -i out.raw output.mp4
    ffmpeg version 2.6.9 Copyright (c) 2000-2016 the FFmpeg developers
     built with gcc 4.9.2 (Debian 4.9.2-10)
     configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector-strong -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libvpx --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/arm-linux-gnueabihf --disable-vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl --enable-libass --enable-libopus --enable-fontconfig --enable-libpulse --disable-mips32r2 --disable-mipsdspr1 --disable-mipsdspr2 --enable-libvidstab --enable-libzvbi --enable-avresample --disable-htmlpages --disable-podpages --enable-libutvideo --enable-libfdk-aac --enable-libx265 --enable-libiec61883 --enable-libdc1394 --disable-altivec --shlibdir=/usr/lib/arm-linux-gnueabihf
     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
     libavresample   2.  1.  0 /  2.  1.  0
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  1.100 /  1.  1.100
     libpostproc    53.  3.100 / 53.  3.100
    [rawvideo @ 0x1d55e0] Estimating duration from bitrate, this may be inaccurate
    Input #0, rawvideo, from 'out.raw':
     Duration: 00:00:00.13, start: 0.000000, bitrate: 109969 kb/s
       Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 640x480, 110592 kb/s, 30 tbr, 30 tbn, 30 tbc
    [libx264 @ 0x1df6c0] using cpu capabilities: ARMv6 NEON
    [libx264 @ 0x1df6c0] profile High, level 3.0
    [libx264 @ 0x1df6c0] 264 - core 146 - 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=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 'output.mp4':
     Metadata:
       encoder         : Lavf56.25.101
       Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 640x480, q=-1--1, 30 fps, 15360 tbn, 30 tbc
       Metadata:
         encoder         : Lavc56.26.100 libx264
    Stream mapping:
     Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
    Press [q] to stop, [?] for help
    [rawvideo @ 0x1de3a0] Invalid buffer size, packet size 450428 < expected frame_size 460800
    Error while decoding stream #0:0: Invalid argument
    frame=    3 fps=1.7 q=29.0 Lsize=     263kB time=00:00:00.03 bitrate=64692.6kbits/s    
    video:262kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.318205%
    [libx264 @ 0x1df6c0] frame I:1     Avg QP:33.09  size:100676
    [libx264 @ 0x1df6c0] frame P:2     Avg QP:32.99  size: 83672
    [libx264 @ 0x1df6c0] mb I  I16..4:  0.0% 95.4%  4.6%
    [libx264 @ 0x1df6c0] mb P  I16..4:  0.0% 45.7%  3.0%  P16..4: 35.9% 10.7%  4.8%  0.0%  0.0%    skip: 0.0%
    [libx264 @ 0x1df6c0] 8x8 transform intra:94.6% inter:86.1%
    [libx264 @ 0x1df6c0] coded y,uvDC,uvAC intra: 100.0% 100.0% 100.0% inter: 53.6% 100.0% 100.0%
    [libx264 @ 0x1df6c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 56% 12% 24%  2%  0%  1%  1%  2%  3%
    [libx264 @ 0x1df6c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 82% 11%  4%  0%  0%  0%  1%  0%  1%
    [libx264 @ 0x1df6c0] i8c dc,h,v,p: 48% 30% 14%  7%
    [libx264 @ 0x1df6c0] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264 @ 0x1df6c0] ref P L0: 83.5%  7.9%  8.6%
    [libx264 @ 0x1df6c0] kb/s:21441.60
  • Encode flv video with no audio with ffmpeg

    15 avril 2012, par David Bengoa

    I'm making an application that needs to convert videos to webm or mp4, it works great with all videos I've tried, but it fails if I use a flv file with no audio channels.

    $ ffmpeg -i 0986229665-339108519108-86498841039-6078455325.flv out.webm
    ffmpeg version 0.7.3-4:0.7.3-0ubuntu0.11.10.1, Copyright (c) 2000-2011 the Libav developers
     built on Jan  4 2012 16:08:51 with gcc 4.6.1
     configuration: --extra-version='4:0.7.3-0ubuntu0.11.10.1' --arch=amd64 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static
     WARNING: library configuration mismatch
     avutil      configuration: --extra-version='4:0.7.3ubuntu0.11.10.1' --arch=amd64 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-libopenjpeg --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdirac --enable-libmp3lame --enable-librtmp --enable-libx264 --enable-libxvid --enable-libvo-aacenc --enable-version3 --enable-libvo-amrwbenc --enable-version3 --enable-libdc1394 --enable-shared --disable-static
     avcodec     configuration: --extra-version='4:0.7.3ubuntu0.11.10.1' --arch=amd64 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-libopenjpeg --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdirac --enable-libmp3lame --enable-librtmp --enable-libx264 --enable-libxvid --enable-libvo-aacenc --enable-version3 --enable-libvo-amrwbenc --enable-version3 --enable-libdc1394 --enable-shared --disable-static
     libavutil    51.  7. 0 / 51.  7. 0
     libavcodec   53.  6. 0 / 53.  6. 0
     libavformat  53.  3. 0 / 53.  3. 0
     libavdevice  53.  0. 0 / 53.  0. 0
     libavfilter   2.  4. 0 /  2.  4. 0
     libswscale    2.  0. 0 /  2.  0. 0
     libpostproc  52.  0. 0 / 52.  0. 0
    [flv @ 0x2184560] Could not find codec parameters (Audio: [0][0][0][0] / 0x0000, 0 channels)
    [flv @ 0x2184560] Estimating duration from bitrate, this may be inaccurate
    Input #0, flv, from '0986229665-339108519108-86498841039-6078455325.flv':
     Metadata:
       audiocodecid    : -1
       server          : Red5 Server 1.0.0 RC1 $Rev: 4193 $
       duration        : 3
       canSeekToEnd    : true
       videocodecid    : 2
     Duration: 00:00:03.02, start: 0.000000, bitrate: N/A
       Stream #0.0: Video: flv, yuv420p, 640x362, 1k tbr, 1k tbn, 1k tbc
       Stream #0.1: Audio: [0][0][0][0] / 0x0000, 0 channels
    Incompatible sample format '(null)' for codec 'libvorbis', auto-selecting format 's16'
    [buffer @ 0x21852c0] w:640 h:362 pixfmt:yuv420p
    [libvpx @ 0x2184040] v0.9.6
    [libvorbis @ 0x2185ee0] oggvorbis_encode_init: init_encoder failed
    Output #0, webm, to 'out.webm':
       Stream #0.0: Video: libvpx, yuv420p, 640x362, q=2-31, 200 kb/s, 90k tbn, 1k tbc
       Stream #0.1: Audio: libvorbis, 0 channels, s16, 64 kb/s
    Stream mapping:
     Stream #0.0 -> #0.0
     Stream #0.1 -> #0.1
    Error while opening encoder for output stream #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height

    If I pass the -an option, it works, but I can't do that because then all videos wouldn't have audio.

    Any ideas ?

  • ffmpeg segments only the first part of my audio file

    30 juin 2012, par hammat

    I'm implementing a http live streaming server to send audio file to iOS devices.
    No problem with Apple's tools, mediafilesegmenter, my files are valid and it works fine.

    I'm trying now to segment the same file using ffmpeg. I've downloaded the last stable version which is the 0.10.2 for now.

    Here is how I try to segment my mp3 file :

    ./ffmpeg -re -i input.mp3 -f segment -segment_time 10 -segment_list outputList.m3u8 -acodec libmp3lame -map 0 output%03d.mp3

    It starts the mapping like expected but finish with only one .mp3 file.

    Did I miss something in the process ?
    Thanks in advance.

    edit

    Ok here is my latest command line :

    ffmpeg -i input.mp3 -c:a libmp3lame -b:a 128k -map 0:0 -f segment -segment_time 10 -segment_list outputlist.m3u8 -segment_format mp3 'output%03d.mp3'

    It still gives me only one file but the file is the hole song, not only one part.
    Here is the output of ffmpeg :

    ffmpeg version 0.10.2 Copyright (c) 2000-2012 the FFmpeg developers
    built on Apr 20 2012 07:08:29 with gcc 4.5.2  
    configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libmp3lame  
       libavutil      51. 35.100 / 51. 35.100  
       libavcodec     53. 61.100 / 53. 61.100  
       libavformat    53. 32.100 /
           53. 32.100  
       libavdevice    53.  4.100 / 53.  4.100  
       libavfilter     2. 61.100 /  2. 61.100  
       libswscale      2.  1.100 /  2.  1.100  
       libswresample   0.  6.100 /  0.  6.100  
       libpostproc    52.  0.100 /  52.  0.100
       [mp3 @ 0x8e4f120] max_analyze_duration 5000000 reached at 5015510
    Input #0, mp3, from 'BeachHouse-Myth.mp3':  
       Metadata:
               title           : Myth
               artist          : Beach House
               track           : /
               album           : Bloom
               disc            : /
               genre           : Alternative
               TSRC            : USSUB1296501  
       Duration: 00:04:18.69, start: 0.000000, bitrate: 320 kb/s
               Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16, 320 kb/s Output #0, segment, to 'stream%03d.mp3':   Metadata:
               title           : Myth
               artist          : Beach House
               track           : /
               album           : Bloom
               disc            : /
               genre           : Alternative
               TSRC            : USSUB1296501
               encoder         : Lavf53.32.100
               Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16, 128 kb/s
    Stream mapping:  
       Stream #0:0 -> #0:0 (mp3 -> libmp3lame)
       Press [q] to stop, [?] for help
       Truncating packet of size 1024 to 105ate=   0.0kbits/s    
       Truncating packet of size 1024 to 1
       size=       0kB time=00:04:18.71 bitrate=   0.0kbits/s     video:0kB audio:4042kB global headers:0kB muxing overhead -100.000000%