Recherche avancée

Médias (1)

Mot : - Tags -/artwork

Autres articles (38)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

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

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

Sur d’autres sites (8033)

  • How do I change audio language using ffmpeg in video files contaning two or more audio tracks

    19 mai 2020, par warezsoftwarez

    I am transcoding video files, that contain 2 audio tracks - Polish and English. Unfortunately my transcoder messes somehow with metadata, and at the output, when I'm checking video file using MediaInfo, i see that both audio tracks are described as English. I'd like to change description of 1st audio track to Polish, so accordingly to ffmpeg documentation :

    



    To set the language of the first audio stream:
ffmpeg -i INPUT -metadata:s:a:0 language=eng OUTPUT


    



    Unfortunately, running command :

    



    ffmpeg -i INPUTPATH -metadata:s:a:0 language=pol OUTPUTPATH


    



    to overwrite input file resulted in saving file thats size is 63KB but it is described as Polish audio (no second audio track - English somehow was deleted)

    



    When I used this command, to save output file as another file, to avoid overwriting if something misses (which is current situation), but using parameter -metadata:s:a:4 because I thought that maybe I'm reading metadata from ffmpeg incorrectly, it resulted in saving output file as 800Mb with only English (no Polish track).

    



    I don't know what should I change in this command to run as I want it to - just changing metadata of first audio track language to Polish.

    



    Here is full ffmpeg output :

    



    C:\Users\user>ffmpeg -i F:\Path\33244813_6000_1_trailer.mp4 -metadata:s:a:4 language=pol F:\Path\testtest.mp4
ffmpeg version N-91931-gb69ea742ab Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 8.2.1 (GCC) 20180813
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enabl
e-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amr
wb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enab
le-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --
enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc -
-enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --e
nable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
  libavutil      56. 19.101 / 56. 19.101
  libavcodec     58. 30.100 / 58. 30.100
  libavformat    58. 18.100 / 58. 18.100
  libavdevice    58.  4.103 / 58.  4.103
  libavfilter     7. 29.100 /  7. 29.100
  libswscale      5.  2.100 /  5.  2.100
  libswresample   3.  2.100 /  3.  2.100
  libpostproc    55.  2.100 / 55.  2.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'F:\Path\33244813_6000_1_trailer.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 1
    compatible_brands: isom
    creation_time   : 2020-04-22T16:18:04.000000Z
  Duration: 00:40:39.12, start: 0.000000, bitrate: 8848 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], Closed C
aptions, 5068 kb/s, 25 fps, 25 tbr, 120k tbn, 50 tbc (default)
    Metadata:
      creation_time   : 2020-04-22T16:18:04.000000Z
      handler_name    : Video
    Stream #0:1(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], Closed C
aptions, 1857 kb/s, 25 fps, 25 tbr, 120k tbn, 50 tbc (default)
    Metadata:
      creation_time   : 2020-04-22T16:18:04.000000Z
      handler_name    : Video
    Stream #0:2(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], Closed Ca
ptions, 902 kb/s, 25 fps, 25 tbr, 120k tbn, 50 tbc (default)
    Metadata:
      creation_time   : 2020-04-22T16:18:04.000000Z
      handler_name    : Video
    Stream #0:3(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 640x480 [SAR 4:3 DAR 16:9], Closed Cap
tions, 628 kb/s, 25 fps, 25 tbr, 120k tbn, 50 tbc (default)
    Metadata:
      creation_time   : 2020-04-22T16:18:04.000000Z
      handler_name    : Video
    Stream #0:4(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 125 kb/s (default)
    Metadata:
      creation_time   : 2020-04-22T16:18:04.000000Z
      handler_name    : Sound
    Stream #0:5(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 253 kb/s (default)
    Metadata:
      creation_time   : 2020-04-22T16:18:04.000000Z
      handler_name    : Sound
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:5 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
[libx264 @ 00000012bef91f80] using SAR=1/1
[libx264 @ 00000012bef91f80] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 00000012bef91f80] profile High, level 4.0, 4:2:0, 8-bit
[libx264 @ 00000012bef91f80] 264 - core 157 r2932 303c484 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.vid
eolan.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=34 looka
head_threads=5 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_lookah
ead=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 'F:\Path\testtest.mp4'
:
  Metadata:
    major_brand     : isom
    minor_version   : 1
    compatible_brands: isom
    encoder         : Lavf58.18.100
    Stream #0:0(und): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps,
 12800 tbn, 25 tbc (default)
    Metadata:
      creation_time   : 2020-04-22T16:18:04.000000Z
      handler_name    : Video
      encoder         : Lavc58.30.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 341 kb/s (default)
    Metadata:
      creation_time   : 2020-04-22T16:18:04.000000Z
      handler_name    : Sound
      encoder         : Lavc58.30.100 aac
frame=60981 fps= 84 q=-1.0 Lsize=  816313kB time=00:40:39.12 bitrate=2741.7kbits/s dup=3 drop=0 speed=3.36x
video:713292kB audio:101322kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.208512%
[libx264 @ 00000012bef91f80] frame I:769   Avg QP:16.36  size: 46713
[libx264 @ 00000012bef91f80] frame P:37125 Avg QP:19.81  size: 15059
[libx264 @ 00000012bef91f80] frame B:23087 Avg QP:21.11  size:  5866
[libx264 @ 00000012bef91f80] consecutive B-frames: 40.4% 24.0% 10.2% 25.5%
[libx264 @ 00000012bef91f80] mb I  I16..4: 40.3% 58.0%  1.7%
[libx264 @ 00000012bef91f80] mb P  I16..4:  6.2% 12.5%  0.1%  P16..4: 29.8%  3.7%  2.7%  0.0%  0.0%    skip:45.0%
[libx264 @ 00000012bef91f80] mb B  I16..4:  1.0%  1.7%  0.0%  B16..8: 27.9%  1.1%  0.1%  direct: 2.0%  skip:66.2%  L0:49
.4% L1:49.3% BI: 1.3%
[libx264 @ 00000012bef91f80] 8x8 transform intra:65.3% inter:95.1%
[libx264 @ 00000012bef91f80] coded y,uvDC,uvAC intra: 24.7% 39.7% 3.2% inter: 7.0% 14.6% 0.0%
[libx264 @ 00000012bef91f80] i16 v,h,dc,p: 34% 26% 13% 28%
[libx264 @ 00000012bef91f80] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 15% 41%  3%  3%  4%  3%  3%  2%
[libx264 @ 00000012bef91f80] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 32% 25% 20%  3%  6%  5%  4%  3%  2%
[libx264 @ 00000012bef91f80] i8c dc,h,v,p: 58% 19% 20%  3%
[libx264 @ 00000012bef91f80] Weighted P-Frames: Y:0.1% UV:0.0%
[libx264 @ 00000012bef91f80] ref P L0: 72.2%  6.3% 15.8%  5.7%  0.0%
[libx264 @ 00000012bef91f80] ref B L0: 86.6% 11.5%  1.9%
[libx264 @ 00000012bef91f80] ref B L1: 97.6%  2.4%
[libx264 @ 00000012bef91f80] kb/s:2395.53
[aac @ 00000012bef93b00] Qavg: 471.415


    


  • Picture in picture problem on output stream in FFMPEG

    7 mai 2020, par mat thew

    I have a problem with ffmpeg output video.

    



    I am using Raspberry Pi to connect video (stream with IP camera) and audio. Its work fine.
I would like to add to my output video another video with second camera (in left-top side).

    



    Graphics it is looks like :

    



    _________________
| |_2_|         |
|               |
|        1      |
|_______________|


    



    1 is head video, 2 is video to add

    



    that is my code to situation with top :

    



    /home/pi/FFmpeg/ffmpeg -y -thread_queue_size 512K \
-re -vsync 1 -rtsp_transport tcp -itsoffset 0 -use_wallclock_as_timestamps 1 \
-i "rtsp://admin:admin@172.16.7.7:554/cam/realmonitor?channel=1&subtype=0" \
-thread_queue_size 512K -i "rtsp://video:video@172.16.7.8:554/cam/realmonitor?channel=1&subtype=0" \
-filter_complex "[1]scale=iw/3:ih/3 [pip]; [0][pip] overlay=3:3" \
-ar 44100 -itsoffset 1.5 -ac 2 -f alsa -ac 2 -thread_queue_size 512K -i default -f h264 \
-c:a aac -ab 128k -g 50 -strict -2 -f flv rtmp://127.0.0.1/sesja/transmisja


    



    Stream is running, however number of fps is 4-5, speed is 0.3 what makes it output stream does not work properly.

    



    I am asking from help in configuration, maybe Raspberry does not support this solution in hardware.

    



    FULL LOG :

    



    ffmpeg version N-92540-g28c96c2ce2 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 6.3.0 (Raspbian 6.3.0-18+rpi1+deb9u1) 20170516
  configuration: --arch=armel --target-os=linux --enable-gpl --enable-omx --enable-omx-rpi --enable-nonfree --enable-indev=alsa --enable-outdev=alsa
  libavutil      56. 24.101 / 56. 24.101
  libavcodec     58. 40.100 / 58. 40.100
  libavformat    58. 23.100 / 58. 23.100
  libavdevice    58.  6.100 / 58.  6.100
  libavfilter     7. 46.100 /  7. 46.100
  libswscale      5.  4.100 /  5.  4.100
  libswresample   3.  4.100 /  3.  4.100
  libpostproc    55.  4.100 / 55.  4.100
Input #0, rtsp, from 'rtsp://admin:admin@172.16.7.7:554/cam/realmonitor?channel=1&subtype=0':
  Metadata:
    title           : RTSP Session/2.0
  Duration: N/A, start: 1588833830.370000, bitrate: N/A
    Stream #0:0: Video: h264 (High), yuvj420p(pc, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 20 fps, 20 tbr, 90k tbn, 40 tbc
[rtsp @ 0x31cc480] max delay reached. need to consume packet
[rtsp @ 0x31cc480] RTP: missed 35 packets
[rtsp @ 0x31cc480] max delay reached. need to consume packet
[rtsp @ 0x31cc480] RTP: missed 7 packets
[h264 @ 0x31e4180] concealing 3081 DC, 3081 AC, 3081 MV errors in I frame
[rtsp @ 0x31cc480] max delay reached. need to consume packet
[rtsp @ 0x31cc480] RTP: missed 34 packets
[h264 @ 0x31e4180] error while decoding MB 30 1, bytestream -11
[h264 @ 0x31e4180] concealing 3539 DC, 3539 AC, 3539 MV errors in P frame
[rtsp @ 0x31cc480] max delay reached. need to consume packet
[rtsp @ 0x31cc480] RTP: missed 13 packets
Input #1, rtsp, from 'rtsp://video:video@172.16.7.8:554/cam/realmonitor?channel=1&subtype=0':
  Metadata:
    title           : RTSP Session/2.0
  Duration: N/A, start: 0.430000, bitrate: N/A
    Stream #1:0: Video: h264 (High), yuvj420p(pc, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], 20 fps, 100 tbr, 90k tbn, 40 tbc
Guessed Channel Layout for Input Stream #2.0 : stereo
Input #2, alsa, from 'default':
  Duration: N/A, start: 1588833833.133715, bitrate: 1411 kb/s
    Stream #2:0: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s
Stream mapping:
  Stream #0:0 (h264) -> overlay:main (graph 0)
  Stream #1:0 (h264) -> scale (graph 0)
  overlay (graph 0) -> Stream #0:0 (flv)
  Stream #2:0 -> #0:1 (pcm_s16le (native) -> aac (native))
Press [q] to stop, [?] for help
[h264 @ 0x3389140] concealing 3081 DC, 3081 AC, 3081 MV errors in I frame
[rtsp @ 0x31cc480] max delay reached. need to consume packet
[rtsp @ 0x31cc480] RTP: missed 51 packets
[swscaler @ 0x3b3b6f0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x3b56cf0] deprecated pixel format used, make sure you did set range correctly
Output #0, flv, to 'rtmp://127.0.0.1/sesja/transmisja':
  Metadata:
    title           : RTSP Session/2.0
    encoder         : Lavf58.23.100
    Stream #0:0: Video: flv1 (flv) ([2][0][0][0] / 0x0002), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 20 fps, 1k tbn, 20 tbc (default)
    Metadata:
      encoder         : Lavc58.40.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, stereo, fltp, 128 kb/s
    Metadata:
      encoder         : Lavc58.40.100 aac
frame=    0 fps=0.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   [h264 @ 0x3831c40] error while decoding MB 30 1, bytestream -11
[h264 @ 0x3831c40] concealing 3539 DC, 3539 AC, 3539 MV errors in P frame
frame=    2 fps=1.5 q=2.0 size=       0kB time=00:00:00.05 bitrate=  57.9kbits/s[h264 @ 0x384a1a0] error while decoding MB 64 6, bytestream -13
[h264 @ 0x384a1a0] concealing 3105 DC, 3105 AC, 3105 MV errors in P frame
frame=    6 fps=2.8 q=7.0 size=     265kB time=00:00:01.50 bitrate=1447.5kbits/sframe=    9 fps=3.3 q=15.5 size=     270kB time=00:00:01.50 bitrate=1472.7kbits/frame=   13 fps=3.7 q=26.4 size=     274kB time=00:00:01.50 bitrate=1496.4kbits/frame=   15 fps=3.6 q=30.2 size=     276kB time=00:00:01.50 bitrate=1507.6kbits/frame=   17 fps=3.6 q=31.0 size=     278kB time=00:00:01.50 bitrate=1518.9kbits/frame=   20 fps=3.6 q=31.0 size=     284kB time=00:00:01.50 bitrate=1551.1kbits/[h264 @ 0x3389140] error while decoding MB 42 4, bytestream -5
[h264 @ 0x3389140] concealing 3287 DC, 3287 AC, 3287 MV errors in P frame
frame=   23 fps=3.7 q=31.0 size=     287kB time=00:00:01.50 bitrate=1568.5kbits/frame=   24 fps=3.6 q=31.0 size=     288kB time=00:00:01.50 bitrate=1574.1kbits/frame=   60 fps=5.7 q=31.0 size=     295kB time=00:00:02.95 bitrate= 817.9kbits/frame=   62 fps=5.5 q=31.0 size=     418kB time=00:00:03.05 bitrate=1121.3kbits/frame=   62 fps=5.2 q=31.0 size=     419kB time=00:00:03.07 bitrate=1114.9kbits/frame=   62 fps=5.0 q=31.0 size=     419kB time=00:00:03.07 bitrate=1114.9kbits/frame=   62 fps=4.8 q=31.0 size=     419kB time=00:00:03.07 bitrate=1114.9kbits/frame=   62 fps=4.6 q=31.0 size=     419kB time=00:00:03.07 bitrate=1114.9kbits/frame=   62 fps=4.4 q=31.0 size=     419kB time=00:00:03.07 bitrate=1114.9kbits/frame=   62 fps=4.2 q=31.0 size=     419kB time=00:00:03.07 bitrate=1114.9kbits/frame=   63 fps=4.1 q=31.0 size=     419kB time=00:00:03.10 bitrate=1108.0kbits/frame=   65 fps=4.0 q=31.0 size=     424kB time=00:00:03.20 bitrate=1084.3kbits/frame=   68 fps=4.0 q=31.0 size=     429kB time=00:00:03.35 bitrate=1049.4kbits/frame=   71 fps=4.0 q=31.0 size=     435kB time=00:00:03.50 bitrate=1017.3kbits/frame=   74 fps=4.1 q=31.0 size=     441kB time=00:00:03.65 bitrate= 988.5kbits/frame=   77 fps=4.1 q=31.0 size=     446kB time=00:00:03.80 bitrate= 961.0kbits/frame=   80 fps=4.1 q=31.0 size=     452kB time=00:00:03.95 bitrate= 936.5kbits/frame=   83 fps=4.1 q=31.0 size=     457kB time=00:00:04.10 bitrate= 913.1kbits/frame=   85 fps=4.1 q=31.0 size=     461kB time=00:00:04.21 bitrate= 896.4kbits/frame=   88 fps=4.1 q=31.0 size=     467kB time=00:00:04.35 bitrate= 878.6kbits/frame=   91 fps=4.1 q=31.0 size=     473kB time=00:00:04.50 bitrate= 860.1kbits/[flv @ 0x37246b0] Failed to update header with correct duration.
[flv @ 0x37246b0] Failed to update header with correct filesize.
frame=   93 fps=4.0 q=31.0 Lsize=     478kB time=00:00:04.63 bitrate= 844.7kbits/s dup=38 drop=36 speed=0.202x    
video:425kB audio:49kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.859331%
[aac @ 0x3268610] Qavg: 185.380
Exiting normally, received signal 2.


    



    Thanks

    


  • Using ffmpeg To Convert wav file to g729 file

    30 novembre 2023, par UserProg

    I am using ffmpeg in my Windows laptop to convert .wav to .g729 format. I have spent some times on the documentation, tutorials, and some threads with no success till now.

    



    Below is my ffmpeg version details :

    



    ffmpeg version N-89674-g57d0c24132 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 7.2.0 (GCC)
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-amf --enable-cuda --enable-cuvid --enable-d3d11va --enable-nvenc --enable-dxva2 --enable-avisynth --enable-libmfx
libavutil      56.  7.100 / 56.  7.100
libavcodec     58.  9.100 / 58.  9.100
libavformat    58.  3.100 / 58.  3.100
libavdevice    58.  0.100 / 58.  0.100
libavfilter     7.  8.100 /  7.  8.100
libswscale      5.  0.101 /  5.  0.101
libswresample   3.  0.101 /  3.  0.101
libpostproc    55.  0.100 / 55.  0.100

    



    I have tried ffmpeg -i testA.wav -c:a libavformat -f g.729 output.g729 and ended up with error saying [NULL @ 0000022aa639dd80] Requested output format 'g.729' is not a suitable output format
output.g729: Invalid argument.

    



    I did try some different format names with no success still.

    



    Appreciate some guidance on this. Thanks.