Recherche avancée

Médias (39)

Mot : - Tags -/audio

Autres articles (39)

  • Other interesting software

    13 avril 2011, par

    We don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
    The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
    We don’t know them, we didn’t try them, but you can take a peek.
    Videopress
    Website : http://videopress.com/
    License : GNU/GPL v2
    Source code : (...)

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

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

Sur d’autres sites (7178)

  • compile ffmpeg with alsa support on Ubuntu 12.04 amd64

    6 octobre 2015, par user1129812

    I had followed the ffmpeg compile instructions described in "CompilationGuide/Ubuntu – FFmpeg" and had successfully compiled a version of ffmpeg on my Ubuntu 12.04 amd64 system. This compiled version of ffmpeg works ok for my normal usage. However, recently, I want to grab my Ubuntu desktop with sound from applications, I follow the instructions in "HOWTO : Proper Screencasting on Linux" and I use the command :

    ~/bin/ffmpeg -f alsa -ac 2 -i hw:0 -f x11grab -r 30 -s 1024x768 -i :0.0 -acodec pcm_s16le -vcodec libx264 -preset ultrafast -crf 0 -threads 0 out_video_test.mkv

    to want to grab my Ubuntu desktop with sound from application. The terminal output from this command is :

    ffmpeg version 2.4.git Copyright (c) 2000-2014 the FFmpeg developers
     built on Oct 13 2014 17:38:17 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
     configuration: --prefix=/home/tkwinfo/ffmpeg_build --extra-cflags=-I/home/tkwinfo/ffmpeg_build/include --extra-ldflags=-L/home/tkwinfo/ffmpeg_build/lib --bindir=/home/tkwinfo/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-x11grab
     libavutil      54. 10.100 / 54. 10.100
     libavcodec     56.  4.101 / 56.  4.101
     libavformat    56.  9.100 / 56.  9.100
     libavdevice    56.  1.100 / 56.  1.100
     libavfilter     5.  1.103 /  5.  1.103
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  1.100 /  1.  1.100
     libpostproc    53.  1.100 / 53.  1.100
    Guessed Channel Layout for  Input Stream #0.0 : stereo
    Input #0, alsa, from 'hw:0':
     Duration: N/A, start: 1444111224.703996, bitrate: 1536 kb/s
       Stream #0:0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
    [x11grab @ 0x3971360] device: :0.0 -> display: :0.0 x: 0 y: 0 width: 1024 height: 768
    [x11grab @ 0x3971360] shared memory extension found
    Input #1, x11grab, from ':0.0':
     Duration: N/A, start: 1444111224.739397, bitrate: 754974 kb/s
       Stream #1:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 1024x768, 754974 kb/s, 30 tbr, 1000k tbn, 30 tbc
    No pixel format specified, yuv444p for H.264 encoding chosen.
    Use -pix_fmt yuv420p for compatibility with outdated media players.
    [libx264 @ 0x39941e0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
    [libx264 @ 0x39941e0] profile High 4:4:4 Predictive, level 3.1, 4:4:4 8-bit
    [libx264 @ 0x39941e0] 64 - core 142 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - 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 'out_video_test.mkv':
     Metadata:
       encoder         : Lavf56.9.100
       Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuv444p, 1024x768, q=-1--1, 30 fps, 1k tbn, 30 tbc
       Metadata:
         encoder         : Lavc56.4.101 libx264
       Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s16, 1536 kb/s
       Metadata:
         encoder         : Lavc56.4.101 pcm_s16le
    Stream mapping:
     Stream #1:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
     Stream #0:0 -> #0:1 (pcm_s16le (native) -> pcm_s16le (native))
    Press [q] to stop, [?] for help
    frame=   16 fps=0.0 q=0.0 size=    1370kB time=00:00:00.54 bitrate=20438.5kbits/
    frame=   31 fps= 31 q=0.0 size=   etc, etc

    The video part is grabbed ok but there is no sound in the output video. I had followed the procedures described in the FAQ in "HOWTO : Proper Screencasting on Linux" to use "pavucontrol" to set "capture application audio instead of mic". However, I still could only grab video from my Ubuntu desktop.

    I find that I have installed libasound2-dev in my Ubuntu 12.04 amd64 system. The "libasound.so" file is in /usr/lib/x86_64-linux-gnu while the "asoundlib.h" file is in /usr/include/alsa. The config options when I compile ffmpeg is :

    PATH="$PATH:$HOME/bin" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure
     --prefix="$HOME/ffmpeg_build"
     --extra-cflags="-I$HOME/ffmpeg_build/include"
     --extra-ldflags="-L$HOME/ffmpeg_build/lib"
     --bindir="$HOME/bin"
     --enable-gpl
     --enable-libass
     --enable-libfdk-aac
     --enable-libfreetype
     --enable-libmp3lame
     --enable-libopus
     --enable-libtheora
     --enable-libvorbis
     --enable-libvpx
     --enable-libx264
     --enable-nonfree
     --enable-x11grab

    I want to know that how do I find out whether I have compiled the alsa support into my ffmpeg ? Do I need to add the ffmpeg config option

    --extra-libs=-lasound

    to get alsa support when compiling ffmpeg ? (as described in some discussions in the internet) If yes, how do I specify the paths of "libasound.so" and "asoundlib.h" so that they would be used in the ffmpeg compilation process ?

    Moreover, if alsa support is already compiled in my ffmpeg, what else should I try so as to be able to grab sound from application using my ffmpeg ?

    Any idea. Thanks for any suggestion.

  • How to config FFmpeg for xrgb and Aver Media capture card [closed]

    12 mai 2023, par Plotter Desalor

    I'm trying to use FFmpeg through ffplay to display a capture card output as lossless as possible.

    


    My capture card is named "Live Gamer Ultra-Video"

    


    In OBS, the NV12, YV12, P010 and YUY2 lead to blurriness around text and fine pixels edges, but the XRGB one offer clear output. So I've tried to focus on this mode with FFmpeg as the default one lead to same blurriness seen in OBS.

    


    Running "ffmpeg -f dshow -list_options true -i video="Live Gamer Ultra-Video" show me this result
(i've only kept line with wanted resolution)

    


    ffmpeg version 6.0-essentials_build-www.gyan.dev Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 12.2.0 (Rev10, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libvpl --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband
  libavutil      58.  2.100 / 58.  2.100
  libavcodec     60.  3.100 / 60.  3.100
  libavformat    60.  3.100 / 60.  3.100
  libavdevice    60.  1.100 / 60.  1.100
  libavfilter     9.  3.100 /  9.  3.100
  libswscale      7.  1.100 /  7.  1.100
  libswresample   4. 10.100 /  4. 10.100
  libpostproc    57.  1.100 / 57.  1.100
[dshow @ 00000240bf0eac40] DirectShow video device options (from video devices)
[dshow @ 00000240bf0eac40]  Pin "Capturer" (alternative pin name "0")
[dshow @ 00000240bf0eac40]   pixel_format=yuyv422  min s=2560x1440 fps=30 max s=2560x1440 fps=50
[dshow @ 00000240bf0eac40]   pixel_format=yuyv422  min s=2560x1440 fps=30 max s=2560x1440 fps=50 (tv, bt709/bt709/unknown, topleft)
[dshow @ 00000240bf0eac40]   pixel_format=yuv420p  min s=2560x1440 fps=30 max s=2560x1440 fps=60.0002
[dshow @ 00000240bf0eac40]   pixel_format=yuv420p  min s=2560x1440 fps=30 max s=2560x1440 fps=60.0002 (tv, bt709/bt709/unknown, topleft)
[dshow @ 00000240bf0eac40]   pixel_format=nv12  min s=2560x1440 fps=30 max s=2560x1440 fps=60.0002
[dshow @ 00000240bf0eac40]   pixel_format=nv12  min s=2560x1440 fps=30 max s=2560x1440 fps=60.0002 (tv, bt709/bt709/unknown, topleft)
[dshow @ 00000240bf0eac40]   unknown compression type 0xE436EB7D  min s=2560x1440 fps=30 max s=2560x1440 fps=30
[dshow @ 00000240bf0eac40]   unknown compression type 0xE436EB7D  min s=2560x1440 fps=30 max s=2560x1440 fps=30 (tv, bt709/bt709/unknown, topleft)
[dshow @ 00000240bf0eac40]   unknown compression type 0x30313050  min s=2560x1440 fps=30 max s=2560x1440 fps=30
[dshow @ 00000240bf0eac40]   unknown compression type 0x30313050  min s=2560x1440 fps=30 max s=2560x1440 fps=30 (tv, bt709/bt709/unknown, topleft)

video=Live Gamer Ultra-Video: Immediate exit requested


    


    "unknown compression type 0xE436EB7D" is a pretty bad start but from https://trac.ffmpeg.org/ticket/6279 I could figured out it was just unproperly parsed RGB24 format

    


    But if I run a very simple "ffplay -f dshow -i video="Live Gamer Ultra-Video" -pixel_format rgb24"
I got this output

    


    ffplay version 6.0-essentials_build-www.gyan.dev Copyright (c) 2003-2023 the FFmpeg developers
  built with gcc 12.2.0 (Rev10, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libvpl --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband
  libavutil      58.  2.100 / 58.  2.100
  libavcodec     60.  3.100 / 60.  3.100
  libavformat    60.  3.100 / 60.  3.100
  libavdevice    60.  1.100 / 60.  1.100
  libavfilter     9.  3.100 /  9.  3.100
  libswscale      7.  1.100 /  7.  1.100
  libswresample   4. 10.100 /  4. 10.100
  libpostproc    57.  1.100 / 57.  1.100
[dshow @ 000001ec3fa39300] Could not set video options   0B f=0/0
video=Live Gamer Ultra-Video: I/O error


    


    How could I use rgb format with this capture card ?

    


    If not possible, any other format leading to proper output would be ok too.
I've tried parameters from this topic Capture full-range/lossless rgb frame from capture card that supports NV12 and YUYV output without any good result sadly.

    


  • ffmpeg does not copy custom metadata

    20 juin 2015, par e110c0

    I’m trying to fix some videos made with an iDevice. The videos have a rotation in the metadata which is only understood by Apple and its software but noone else. Fixing this is quite simple, but I also would like to keep the other metadata in the files like the geolocation.

    I tried a couple of versions, all with the same result, e.g. :

    ffmpeg -i input.mov -vf vflip,hflip -map_metadata 0 -metadata:s:v:0 rotate=0  -acodec copy output.mp4

    This should work, it already gives the correct preview of metadata :

    ffmpeg version 1.1.2 Copyright (c) 2000-2013 the FFmpeg developers
    built on Feb  8 2013 23:55:22 with Apple clang version 4.0 (tags/Apple/clang-421.0.60) (based on LLVM 3.1svn)
    configuration: --prefix=/usr/local/Cellar/ffmpeg/1.1.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --cc=cc --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid
    libavutil      52. 13.100 / 52. 13.100
    libavcodec     54. 86.100 / 54. 86.100
    libavformat    54. 59.106 / 54. 59.106
    libavdevice    54.  3.102 / 54.  3.102
    libavfilter     3. 32.100 /  3. 32.100
    libswscale      2.  1.103 /  2.  1.103
    libswresample   0. 17.102 /  0. 17.102
    libpostproc    52.  2.100 / 52.  2.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '2013-02-17 00.39.36.mov':
     Metadata:
       major_brand     : qt  
       minor_version   : 0
       compatible_brands: qt  
       creation_time   : 2013-02-16 23:39:25
       model           : iPhone 5
       model-deu       : iPhone 5
       encoder         : 6.1
       encoder-deu     : 6.1
       date            : 2013-02-17T00:39:25+0100
       date-deu        : 2013-02-17T00:39:25+0100
       location        : +48.2683+007.7205+172.710/
       location-deu    : +48.2683+007.7205+172.710/
       make            : Apple
       make-deu        : Apple
     Duration: 00:00:09.67, start: 0.000000, bitrate: 16764 kb/s
       Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080, 16696 kb/s, 24 fps, 24 tbr, 600 tbn, 1200 tbc
       Metadata:
         rotate          : 180
         creation_time   : 2013-02-16 23:39:25
         handler_name    : Core Media Data Handler
       Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 61 kb/s
       Metadata:
         creation_time   : 2013-02-16 23:39:25
         handler_name    : Core Media Data Handler
    w:1920 h:1080 pixfmt:yuv420p tb:1/600 fr:24/1 sar:0/1 sws_param:flags=2
    [libx264 @ 0x7fc248829a00] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX
    [libx264 @ 0x7fc248829a00] profile High, level 4.0
    [libx264 @ 0x7fc248829a00] 264 - core 125 - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - 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=24 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:
     major_brand     : qt  
     minor_version   : 0
     compatible_brands: qt  
     creation_time   : 2013-02-16 23:39:25
     model           : iPhone 5
     model-deu       : iPhone 5
     encoder-deu     : 6.1
     date            : 2013-02-17T00:39:25+0100
     date-deu        : 2013-02-17T00:39:25+0100
     location        : +48.2683+007.7205+172.710/
     location-deu    : +48.2683+007.7205+172.710/
     make            : Apple
     make-deu        : Apple
     encoder         : Lavf54.59.106
    Stream #0:0(und): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1920x1080, q=-1--1, 12288 tbn, 24 tbc
    Metadata:
     handler_name    : Core Media Data Handler
     creation_time   : 2013-02-16 23:39:25
     rotate          : 0
    Stream #0:1(und): Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, mono, 61 kb/s
    Metadata:
     creation_time   : 2013-02-16 23:39:25
     handler_name    : Core Media Data Handler
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 -> libx264)
     Stream #0:1 -> #0:1 (copy)

    But the resulting file keeps only some of these metadata tags :

    ffmpeg -i output.mp4

    shows :

    fmpeg version 1.1.2 Copyright (c) 2000-2013 the FFmpeg developers
     built on Feb  8 2013 23:55:22 with Apple clang version 4.0 (tags/Apple/clang-421.0.60) (based on LLVM 3.1svn)
    configuration: --prefix=/usr/local/Cellar/ffmpeg/1.1.2 --enable-shared --enable-pthreads -  -enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --cc=cc --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid
    libavutil      52. 13.100 / 52. 13.100
    libavcodec     54. 86.100 / 54. 86.100
    libavformat    54. 59.106 / 54. 59.106
    libavdevice    54.  3.102 / 54.  3.102
    libavfilter     3. 32.100 /  3. 32.100
    libswscale      2.  1.103 /  2.  1.103
    libswresample   0. 17.102 /  0. 17.102
    libpostproc    52.  2.100 / 52.  2.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mp4':
    Metadata:
     major_brand     : isom
     minor_version   : 512
     compatible_brands: isomiso2mp41
     creation_time   : 2013-02-16 23:39:25
     date            : 2013-02-17T00:39:25+0100
     encoder         : Lavf54.59.106
    Duration: 00:00:09.67, start: 0.000000, bitrate: 3286 kb/s
     Stream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 3219 kb/s, 24 fps, 24 tbr, 12288 tbn, 24 tbc
     Metadata:
       creation_time   : 2013-02-16 23:39:25
       handler_name    : VideoHandler
     Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 61 kb/s
     Metadata:
       creation_time   : 2013-02-16 23:39:25
       handler_name    : SoundHandler

    I also tried to add the one tag I’m interested in by hand with

    -metadata:g location=+48.2683+007.7205+172.710/

    with no change in the result.

    Output as .mov doesn’t change anything, neither.

    Is there any trick to add non-standard metadata ? How do I get the location back in there ?

    Thanks in advance to anyone who can give some insight on this.