Recherche avancée

Médias (1)

Mot : - Tags -/publier

Autres articles (97)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Participer à sa documentation

    10 avril 2011

    La documentation est un des travaux les plus importants et les plus contraignants lors de la réalisation d’un outil technique.
    Tout apport extérieur à ce sujet est primordial : la critique de l’existant ; la participation à la rédaction d’articles orientés : utilisateur (administrateur de MediaSPIP ou simplement producteur de contenu) ; développeur ; la création de screencasts d’explication ; la traduction de la documentation dans une nouvelle langue ;
    Pour ce faire, vous pouvez vous inscrire sur (...)

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

Sur d’autres sites (6603)

  • configure : Fix handling of _select dependencies

    24 mai 2017, par Diego Biurrun
    configure : Fix handling of _select dependencies
    

    The handling of _select dependencies had two issues :

    1) extralibs from _select dependencies of a component were not added to
    the list of extralibs for that component.
    2) extralibs from dependencies were only added to the extralibs of a
    component if the component was enabled. This led to incorrect results
    if that component was enabled by another component later in the dependency
    resolution process. Instead, always generate the full list of component
    extralibs for use later in the dependency resolution process.

    Also remove a leftover unused variable.

    • [DBH] configure
  • ffmpeg doesn't seem to be working with multiple audio streams correctly

    21 juin 2017, par Caius Jard

    I’m having an issue with ffmpeg 3.2.2 ; ordinarily I ask it to make an MP4 video file with 2 audio streams. The command line looks like this :

    ffmpeg.exe
    -rtbufsize 256M
    -f dshow -i video="screen-capture-recorder" -thread_queue_size 512
    -f dshow -i audio="Line 2 (Virtual Audio Cable)"
    -f dshow -i audio="Line 3 (Virtual Audio Cable)"
    -map 0:v -map 1:a -map 2:a
    -af silencedetect=n=-50dB:d=60 -pix_fmt yuv420p -y "c:\temp\2channelvideo.mp4"

    I’ve wrapped it for legibility. This once worked fine, but something is wrong lately - it doesnt seem to record any audio, even though I can use other tools like Audacity to record audio from these devices just fine

    I’m trying to do some diag on it by dropping the video component and asking ffmpeg to record the two audio devices to two separate files :

    ffmpeg.exe
    -f dshow -i audio="Line 2 (Virtual Audio Cable)" "c:\temp\line2.mp3"
    -f dshow -i audio="Line 3 (Virtual Audio Cable)" "c:\temp\line3.mp3"

    ffmpeg’s console output looks like :

    Guessed Channel Layout for Input Stream #0.0 : stereo
    Input #0, dshow, from 'audio=Line 2 (Virtual Audio Cable)':
     Duration: N/A, start: 5935.810000, bitrate: 1411 kb/s
       Stream #0:0: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s
    Guessed Channel Layout for Input Stream #1.0 : stereo
    Input #1, dshow, from 'audio=Line 3 (Virtual Audio Cable)':
     Duration: N/A, start: 5936.329000, bitrate: 1411 kb/s
       Stream #1:0: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s
    Output #0, mp3, to 'c:\temp\line2.mp3':
     Metadata:
       TSSE            : Lavf57.56.100
       Stream #0:0: Audio: mp3 (libmp3lame), 44100 Hz, stereo, s16p
       Metadata:
         encoder         : Lavc57.64.101 libmp3lame
    Output #1, mp3, to 'c:\temp\line3.mp3':
     Metadata:
       TSSE            : Lavf57.56.100
       Stream #1:0: Audio: mp3 (libmp3lame), 44100 Hz, stereo, s16p
       Metadata:
         encoder         : Lavc57.64.101 libmp3lame
    Stream mapping:
     Stream #0:0 -> #0:0 (pcm_s16le (native) -> mp3 (libmp3lame))
     Stream #0:0 -> #1:0 (pcm_s16le (native) -> mp3 (libmp3lame))
    Press [q] to stop, [?] for help

    The problem i’m currently having is that the produced mp3 are identical copies of line 2 only ; line 3 audio is not recorded. The last line is of concern ; it seems to be saying that stream 0 is being mapped to both output 0 and 1 ? Do I need a map command for each file also ? I thought it would be implicit due to the way i specified the arguments

  • Streaming audio + still image using ffmpeg

    21 juin 2017, par AEnimaH

    I’m streaming an audio source to azure media services using RTMP and a raspberry pi. This works great using this command :

    ffmpeg -f alsa -ac 1 -i hw:1,0 -c:a aac -b:a 128k -ar 44100 -f flv rtmp://...

    But know we want to add an image to this flv container because azure media player wants a video component.

    So I added video using this command :

    ffmpeg -loop 1 -i image.png -f alsa -ac 1 -i hw:1,0 -c:a aac -b:a 128k -ar 44100 -g 50 -pix_fmt yuv420p -f flv rtmp://...

    Yet it crashes with following log :

    ffmpeg version N-86429-gf8593c2 Copyright (c) 2000-2017 the FFmpeg developers
    built with gcc 4.9.2 (Raspbian 4.9.2-10)
    configuration: --prefix=/home/pi/ffmpeg/dependencies/output --enable-gpl --enable-libx264 --enable-libmp3lame --enable-nonfree --extra-cflags=-I/home/pi/ffmpeg/dependencies/output/include --extra-ldflags=-L/home/pi/ffmpeg/dependencies/output/lib --extra-libs='-lx264 -lpthread -lm -ldl'
    libavutil      55. 63.100 / 55. 63.100
    libavcodec     57. 98.100 / 57. 98.100
    libavformat    57. 73.100 / 57. 73.100
    libavdevice    57.  7.100 / 57.  7.100
    libavfilter     6. 91.100 /  6. 91.100
    libswscale      4.  7.101 /  4.  7.101
    libswresample   2.  8.100 /  2.  8.100
    libpostproc    54.  6.100 / 54.  6.100
    Input #0, png_pipe, from 'image.png':
    Duration: N/A, bitrate: N/A
       Stream #0:0: Video: png, rgba(pc), 600x400 [SAR 5669:5669 DAR 3:2], 25 fps, 25 tbr, 25 tbn, 25 tbc
    Guessed Channel Layout for Input Stream #1.0 : mono
    Input #1, alsa, from 'hw:1,0':
    Duration: N/A, start: 1497522851.947685, bitrate: 768 kb/s
       Stream #1:0: Audio: pcm_s16le, 48000 Hz, mono, s16, 768 kb/s
    Stream mapping:
    Stream #0:0 -> #0:0 (png (native) -> flv1 (flv))
    Stream #1:0 -> #0:1 (pcm_s16le (native) -> aac (native))
    Press [q] to stop, [?] for help
    [alsa @ 0x18e3330] Thread message queue blocking; consider raising the thread_queue_size option (current value: :sunglasses:
    Output #0, flv, to 'rtmp://aptus2-aptus.channel.mediaservices.windows.net:1935/live/b962f6df8d3b4e97a608981d019faaa4/default':
    Metadata:
       encoder         : Lavf57.73.100
       Stream #0:0: Video: flv1 (flv) ([2][0][0][0] / 0x0002), yuv420p(progressive), 600x400 [SAR 1:1 DAR 3:2], q=2-31, 200 kb/s, 25 fps, 1k tbn, 25 tbc
       Metadata:
       encoder         : Lavc57.98.100 flv
       Side data:
       cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
       Stream #0:1: Audio: aac (LC) ([10][0][0][0] / 0x000A), 44100 Hz, mono, fltp, 128 kb/s
       Metadata:
       encoder         : Lavc57.98.100 aac
    frame=    3 fps=0.0 q=2.0 size=      56kB time=00:00:00.08 bitrate=5700.0kbits/sframe=   12 fps= 12 q=2.0 size=      66kB time=00:00:00.44 bitrate=1227.2kbits/sframe=   21 fps= 14 q=2.0 size=      72kB time=00:00:00.80 bitrate= 739.8kbits/sframe=   29 fps= 14 q=2.0 size=      79kB time=00:00:01.12 bitrate= 573.9kbits/s[alsa @ 0x18e3330] ALSA buffer xrun.
    frame=   39 fps= 15 q=2.0 size=      85kB time=00:00:02.81 bitrate= 246.9kbits/sframe=   50 fps= 16 q=2.0 size=      86kB time=00:00:02.81 bitrate= 251.4kbits/sframe=   60 fps= 17 q=2.0 size=     157kB time=00:00:02.81 bitrate= 457.1kbits/sframe=   71 fps= 17 q=2.0 size=     159kB time=00:00:02.81 bitrate= 462.2kbits/s[alsa @ 0x18e3330] ALSA buffer xrun.
    frame=   81 fps= 18 q=2.0 size=     161kB time=00:00:04.57 bitrate= 289.0kbits/sframe=   92 fps= 18 q=2.0 size=     163kB time=00:00:04.57 bitrate= 291.8kbits/sframe=  103 fps= 18 q=2.0 size=     234kB time=00:00:04.57 bitrate= 418.5kbits/sframe=  114 fps= 19 q=2.0 size=     235kB time=00:00:04.57 bitrate= 421.3kbits/s[alsa @ 0x18e3330] ALSA buffer xrun.
    frame=  124 fps= 19 q=2.0 size=     238kB time=00:00:06.66 bitrate= 292.8kbits/sframe=  135 fps= 19 q=2.0 size=     240kB time=00:00:06.66 bitrate= 294.7kbits/sframe=  146 fps= 19 q=2.0 size=     241kB time=00:00:06.66 bitrate= 296.6kbits/sav_interleaved_write_frame(): Broken pipe
    [flv @ 0x18f9ea0] Failed to update header with correct duration.
    [flv @ 0x18f9ea0] Failed to update header with correct filesize.
    Error writing trailer of rtmp://aptus2-aptus.channel.mediaservices.windows.net:1935/live/b962f6df8d3b4e97a608981d019faaa4/default: Broken pipe
    frame=  151 fps= 15 q=1.6 Lsize=     306kB time=00:00:06.70 bitrate= 373.5kbits/s speed=0.644x    
    video:284kB audio:24kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
    [aac @ 0x18fe6e0] Qavg: 3428.370
    Conversion failed!

    what am I doing wrong ? Any help would be awesome !