Recherche avancée

Médias (39)

Mot : - Tags -/audio

Autres articles (104)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • L’utiliser, en parler, le critiquer

    10 avril 2011

    La première attitude à adopter est d’en parler, soit directement avec les personnes impliquées dans son développement, soit autour de vous pour convaincre de nouvelles personnes à l’utiliser.
    Plus la communauté sera nombreuse et plus les évolutions seront rapides ...
    Une liste de discussion est disponible pour tout échange entre utilisateurs.

Sur d’autres sites (6747)

  • ffmpeg in bash only works on every second file

    5 août 2016, par kay

    EDIT :

    The Solution is to change the original ffmpeg-call below to the following :
    ffmpeg -nostdin -loglevel 16 -i "$dir/$var" -map_channel 0.0.0 "$left" -map_channel 0.0.1 "$right"
    where the -nostdin is the crucial thing.
    For reference see apply ffmpeg to many files (comment by macmichael01)


    I’m trying to convert all .wav-files in a given directory and it’s subdirectorys into two mono-files each with the following bash script. The crucial part is almost at the bottom - the ffmpeg call :

    #!/bin/bash
    # "[One] Stereo [file] to two mono [files] - stereo22mono"

    # Syntax ffmpeg siehe: https://trac.ffmpeg.org/wiki/AudioChannelManipulation


    ls -R $1 > .s22mtmp.txt

    while read -r line || [[ -n "$line" ]]; do

       var=$line
       tst=$var
       tst="${tst%:}"

       if [ -d "${tst%./}" ]       # is directory name
       then
           dir=$tst

       elif [ -f "$dir/$var" ]     # is file name
       then
           left=$dir/left_$var
           right=$dir/right_$var

           #loglevel 16 = only errors
           # -i ...-> input file
           # ffmpeg ... [SOURCE] ... [TARGET1] ... [TARGET2]
           ffmpeg -loglevel 16 -i "$dir/$var" -map_channel 0.0.0 "$left" -map_channel 0.0.1 "$right"
       fi

    done < .s22mtmp.txt


    rm .s22mtmp.txt

    It almost works - besides the fact, that it only does it’s job on only every second file, although the for-loop correctly goes through all files (watched it with echo) and calls ffmpeg.
    I thought it might be that ffmpeg has not finished it’s assigned work by the time it is asked to work on the next file and therefore just refuses, which seems to be true.
    Because I made one try with disowning every call of ffmpeg like so :

    ffmpeg -loglevel 16 -i "$dir/$var" -map_channel 0.0.0 "$left" -map_channel 0.0.1 "$right" & disown

    This worked almost, the problem was just that kind of hundreds of processes and multiple times more threads where starting to run and wouldn’t complete in a reasonable time, so I arborted. :D
    But at least it didn’t skip every second file anymore with that kind of call.

    Can anyone give me a hint, how to get this done ? Would be very thankful.. it’s actually the first time I’m trying with bash scripts.
    Thanks in advance !

  • Anomalie #1966 (Fermé) : The Porte Plume works with Opera incorrect

    30 mars 2011, par cedric -

    Je ne reproduis pas le bug avec SPIP 2.3dev + Opera 10.53

  • Ffmpeg stream works from cli but not inside bash script, no errors

    21 juillet 2022, par Sidharth Rao

    I'm running an Ffmpeg stream on Ubuntu writing to an rtp address, and it appears to work perfectly from my cli every time but fails to actually write anything from inside a bash script. After running from inside the cli, the bash script works every time I run it for about the next 5 minutes and then starts failing without errors again.

    


    Here is the command :

    


    ffmpeg -i video.mp4 -fflags nobuffer -flags low_delay -s 640x480 -c:v libx264 -profile:v baseline -b:v 2M -r 24 -g 60 -an -rtsp_transport tcp -f rtp rtp://CENSOREDCENSORED:0000


    


    Here is the bash script :

    


    #!/bin/bash

ffmpeg -i video.mp4 -fflags nobuffer -flags low_delay -s 640x480 -c:v libx264 -profile:v baseline -b:v 2M -r 24 -g 60 -an -rtsp_transport tcp -f rtp rtp://CENSOREDCENSORED:0000


    


    And here is the same output to cli for both of them :

    


    ffmpeg version 3.4.11-0ubuntu0.1 Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
  configuration: --prefix=/usr --extra-version=0ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
  libavutil      55. 78.100 / 55. 78.100
  libavcodec     57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter     6.107.100 /  6.107.100
  libavresample   3.  7.  0 /  3.  7.  0
  libswscale      4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
  libpostproc    54.  7.100 / 54.  7.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'out.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.76.100
  Duration: 00:00:26.00, start: 0.000000, bitrate: 227 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 640x480, 226 kb/s, 2.31 fps, 2.31 tbr, 18464 tbn, 4.62 tbc (default)
    Metadata:
      handler_name    : VideoHandler
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[libx264 @ 0x5585318623c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x5585318623c0] profile Constrained Baseline, level 3.0
Output #0, rtp, to 'rtp://us.robotics.cognitedata.com:5005':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf57.83.100
    Stream #0:0(und): Video: h264 (libx264), yuv420p, 640x480, q=-1--1, 2000 kb/s, 24 fps, 90k tbn, 24 tbc (default)
    Metadata:
      handler_name    : VideoHandler
      encoder         : Lavc57.107.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/2000000 buffer size: 0 vbv_delay: -1
SDP:
v=0
o=- 0 0 IN IP4 127.0.0.1
s=No Name
c=IN IP4 20.232.153.224
t=0 0
a=tool:libavformat 57.83.100
m=video 5005 RTP/AVP 96
b=AS:2000
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1

frame=  624 fps=194 q=-1.0 Lsize=    6288kB time=00:00:25.95 bitrate=1984.3kbits/s dup=564 drop=0 speed=8.08x
video:6226kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.992690%
[libx264 @ 0x5585318623c0] frame I:11    Avg QP: 2.77  size:132437
[libx264 @ 0x5585318623c0] frame P:613   Avg QP: 4.97  size:  8024
[libx264 @ 0x5585318623c0] mb I  I16..4: 20.2%  0.0% 79.8%
[libx264 @ 0x5585318623c0] mb P  I16..4:  0.8%  0.0%  2.0%  P16..4: 12.3%  1.0%  1.2%  0.0%  0.0%    skip:82.6%
[libx264 @ 0x5585318623c0] final ratefactor: 6.07
[libx264 @ 0x5585318623c0] coded y,uvDC,uvAC intra: 87.7% 87.0% 68.2% inter: 8.6% 7.0% 6.6%
[libx264 @ 0x5585318623c0] i16 v,h,dc,p: 34% 15% 41% 10%
[libx264 @ 0x5585318623c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 43% 24% 13%  3%  3%  3%  4%  3%  4%
[libx264 @ 0x5585318623c0] i8c dc,h,v,p: 36% 22% 37%  6%
[libx264 @ 0x5585318623c0] ref P L0: 97.5%  1.9%  0.6%
[libx264 @ 0x5585318623c0] kb/s:1961.69


    


    The ffmpeg stream also fails from inside of a docker image.