Recherche avancée

Médias (0)

Mot : - Tags -/diogene

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (95)

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

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

Sur d’autres sites (7096)

  • How to record audio with ffmpeg on ubuntu 22.04 with python ?

    22 juillet 2024, par Dinh Chu

    I encountered the problem of recording output audio on Ubuntu with Python.
I want to record the output sound from the browser.
I used USB Headphone as the output device, then record sounded with FFMPEG.

    


    pactl list short sources

    


    0. alsa_output.usb-0c76_USB_PnP_Audio_Device-00.analog-stereo.monitor  module-alsa-card.c      s16le 2ch 48000Hz       SUSPENDED
1. alsa_input.usb-0c76_USB_PnP_Audio_Device-00.mono-fallback  module-alsa-card.c      s16le 1ch 48000Hz       SUSPENDED 
2. alsa_output.pci-0000_00_1f.3.iec958-stereo.monitor     module-alsa-card.c      s16le 2ch 44100Hz       SUSPENDED


    


    When I run command on Ubuntu, It recorded audio successfully.

    


    ffmpeg -f pulse -i alsa_output.usb-0c76_USB_PnP_Audio_Device-00.analog-stereo.monitor -t 10 output.wav


    


    However, when I executed the command in the project Python, the error reported :

    


    alsa_output.usb-0c76_USB_PnP_Audio_Device-00.analog-stereo.monitor: Operation not permitted


    


    or if using orther ouput :

    


    alsa_output.pci-0000_00_1f.3.iec958-stereo.monitor: Operation not permitted


    


    Details can see more attached photos :
enter image description here
Record error :
enter image description here

    


  • Unable to find suitable output format for 'libmp3lame' and 'flv'

    24 février 2017, par user2108727

    Currently I am trying to setup a livestream using ffmpeg in Kubuntu. I got really far, but unfortunately I cannot figure out one bit that mentions output format errors. Here’s the code I am using for my .sh file :

    #! /bin/bash

    # streaming on Ubuntu via ffmpeg.
    # see http://ubuntuguide.org/wiki/Screencasts for full documentation

    # input resolution, currently fullscreen.
    # you can set it manually in the format "WIDTHxHEIGHT" instead.
    INRES="1920x1200"

    # output resolution.
    # keep the aspect ratio the same or your stream will not fill the display.
    OUTRES="1280x720"

    # input audio. You can use "/dev/dsp" for your primary audio input.
    #INAUD="pulse"

    # target fps
    FPS="30"

    # video preset quality level.
    # more FFMPEG presets avaiable in /usr/share/ffmpeg
    QUAL="ultrafast"

    # stream key. You can set this manually, or reference it from a hidden file    
    like what is done here.
    STREAM_KEY=$(cat ~/.twitch_key)

    # stream url. Note the formats for twitch.tv and justin.tv
    # twitch:"rtmp://live.twitch.tv/app/$STREAM_KEY"
    # justin:"rtmp://live.justin.tv/app/$STREAM_KEY"
    STREAM_URL="rtmp://live-cdg.twitch.tv/app/$STREAM_KEY"

    ffmpeg \
    -f alsa -ac 2 -i "$INAUD" \
    -f x11grab -s "$INRES" -r "$FPS" -i :50.0 \
    -vcodec libx264 -s "$OUTRES" -preset "$QUAL" -crf 22\
    -acodec libmp3lame -threads 6 -q:a 0 -b:a 160k \
    -f flv -ar 44100 "$STREAM_URL"

    Now the issue is that whenever I run the .sh file, I get an error at the end saying

    Unable to find a suitable output format for 'libmp3lame'
    libmp3lame: Invalid argument

    So I decided to troubleshoot by removing the audio line at the bottom and it just turned into

    Unable to find a suitable output format for 'flv'
    flv: Invalid argument

    Something tells me this is because the stream key is not defined properly, but I have no idea whatsoever how to fix this.

    So does anyone have an idea ?
    Thanks in advance !

    Misterff1

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