Recherche avancée

Médias (91)

Autres articles (70)

  • Le plugin : Gestion de la mutualisation

    2 mars 2010, par

    Le plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
    Installation basique
    On installe les fichiers de SPIP sur le serveur.
    On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
    On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
    < ?php (...)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

  • Le plugin : Podcasts.

    14 juillet 2010, par

    Le problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
    Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
    Types de fichiers supportés dans les flux
    Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)

Sur d’autres sites (2364)

  • How to preserve data stream with none codec from a video while compressing it using ffmpeg ?

    5 octobre 2022, par rj_7

    I'm using the following command to compress a video of size 1.5GB to 80 MB.

    &#xA;

    ffmpeg -i input.mp4 -copy_unknown -map_metadata 0 -c copy -c:v h264 -b:v 5000k -c:a aac -b:a 48k -map 0:v -map 0:a -map 0:d output.mp4&#xA;

    &#xA;

    The problem I'm facing is - it doesn't copy the data stream to the output video even when I explicitly mention it via mapping. If I don't use the -map options for each kind of stream, it just process the video and audio as expected. But I also want the data stream in my output video.

    &#xA;

    The logs for the above command are -

    &#xA;

    ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers&#xA;  built with gcc 9.2.1 (GCC) 20200122&#xA;  configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --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-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt&#xA;  libavutil      56. 31.100 / 56. 31.100&#xA;  libavcodec     58. 54.100 / 58. 54.100&#xA;  libavformat    58. 29.100 / 58. 29.100&#xA;  libavdevice    58.  8.100 / 58.  8.100&#xA;  libavfilter     7. 57.100 /  7. 57.100&#xA;  libswscale      5.  5.100 /  5.  5.100&#xA;  libswresample   3.  5.100 /  3.  5.100&#xA;  libpostproc    55.  5.100 / 55.  5.100&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 0000022581bc0f80] stream 0, timescale not set&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;input.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : mp42&#xA;    minor_version   : 0&#xA;    compatible_brands: mp42mp41isomiso2&#xA;    creation_time   : 2021-09-16T16:10:08.000000Z&#xA;    artist          : AnafiThermal-H006560&#xA;    title           : Thu, 16 Sep 2021 09:10:08 -0700&#xA;    date            : 2021-09-16T09:10:08-07:00&#xA;    make            : Parrot&#xA;    model           : AnafiThermal&#xA;    encoder         : PI040445AC0H006560&#xA;    location        : &#x2B;33.67128695-117.61610583&#x2B;415.50/&#xA;    com.apple.quicktime.artist: AnafiThermal-H006560&#xA;    com.apple.quicktime.title: Thu, 16 Sep 2021 09:10:08 -0700&#xA;    com.apple.quicktime.creationdate: 2021-09-16T09:10:08-07:00&#xA;    com.apple.quicktime.make: Parrot&#xA;    com.apple.quicktime.model: AnafiThermal&#xA;    com.apple.quicktime.software: 1.8.0&#xA;    com.apple.quicktime.location.ISO6709: &#x2B;33.67128695-117.61610583&#x2B;415.50/&#xA;    com.parrot.model.id: 0919&#xA;    com.parrot.serial: PI040445AC0H006560&#xA;    com.parrot.build.id: anafi-thermal-1.8.0&#xA;    com.parrot.run.date: 2021-09-16T09:04:29-07:00&#xA;    com.parrot.run.id: 0B3D536B2F1A425EFA8978850B4C2C71&#xA;    com.parrot.boot.id: 992D5FBA74A04BA5077C3FCA3BE9C707&#xA;    com.parrot.video.mode: Standard&#xA;  Duration: 00:02:05.49, start: 0.000000, bitrate: 100391 kb/s&#xA;    Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 3840x2160 [SAR 1:1 DAR 16:9], 99998 kb/s, 29.98 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)&#xA;    Metadata:&#xA;      creation_time   : 2021-09-16T16:10:08.000000Z&#xA;      handler_name    : DefaultVideo&#xA;    Stream #0:1(eng): Data: none (mett / 0x7474656D), 27 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : 2021-09-16T16:10:08.000000Z&#xA;      handler_name    : ParrotVideoMetadata&#xA;    Stream #0:2(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 384 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : 2021-09-16T16:10:08.000000Z&#xA;      handler_name    : DefaultAudio&#xA;    Stream #0:3: Video: mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 320x180 [SAR 1:1 DAR 16:9], 90k tbr, 90k tbn, 90k tbc (attached pic)&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))&#xA;  Stream #0:3 -> #0:1 (mjpeg (native) -> h264 (libx264))&#xA;  Stream #0:2 -> #0:2 (aac (native) -> aac (native))&#xA;  Stream #0:1 -> #0:3 (copy)&#xA;Press [q] to stop, [?] for help&#xA;[mp4 @ 0000022581c5e280] Frame rate very high for a muxer not efficiently supporting it.&#xA;Please consider specifying a lower framerate, a different muxer or -vsync 2&#xA;[libx264 @ 0000022582975a00] using SAR=1/1&#xA;[libx264 @ 0000022582975a00] MB rate (21600000) > level limit (16711680)&#xA;[libx264 @ 0000022582975a00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2&#xA;[libx264 @ 0000022582975a00] profile High, level 6.2, 4:2:0, 8-bit&#xA;[libx264 @ 0000022582975a00] 264 - core 159 - H.264/MPEG-4 AVC codec - Copyleft 2003-2019 - 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=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=5000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00&#xA;[libx264 @ 000002258241c980] using SAR=1/1&#xA;[libx264 @ 000002258241c980] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2&#xA;[libx264 @ 000002258241c980] profile High, level 5.1, 4:2:0, 8-bit&#xA;[libx264 @ 000002258241c980] 264 - core 159 - H.264/MPEG-4 AVC codec - Copyleft 2003-2019 - 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=12 lookahead_threads=2 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_lookahead=40 rc=abr mbtree=1 bitrate=5000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00&#xA;[mp4 @ 0000022581c5e280] Could not find tag for codec h264 in stream #1, codec not currently supported in container&#xA;Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument&#xA;Error initializing output stream 0:0 --&#xA;[libx264 @ 000002258241c980] final ratefactor: 25.51&#xA;[libx264 @ 0000022582975a00] final ratefactor: 73.59&#xA;[aac @ 00000225829747c0] Qavg: 63100.754&#xA;[aac @ 00000225829747c0] 2 frames left in the queue on closing&#xA;Conversion failed!&#xA;

    &#xA;

    I've also tried mapping the streams via number, that doesn't work either (shows same logs as above).

    &#xA;

    ffmpeg -i input.mp4 -copy_unknown -map_metadata 0 -c copy -c:v h264 -b:v 5000k -c:a aac -b:a 48k -map 0:0 -map 0:1 -map 0:2 output.mp4&#xA;

    &#xA;

    So, essentially my question is - How to preserve data stream (packed) with none codec from a video while compressing it using ffmpeg ?

    &#xA;

  • failed to converted raw H264 to mp4 wiht FFMPEG and playback it

    27 décembre 2015, par Efimk

    I am trying to convert raw video file captured from Cisco EX60 to valid MP4 file.
    I use the following command
    ffmpeg -f rawvideo -pix_fmt yuv420p -s:v 1920x1080 -r 25 -i input2 -vcodec libx264 output2.mp4

    and get

    libpostproc    54.  0.100 / 54.  0.100
    [rawvideo @ 0000000000703920] Estimating duration from bitrate, this may be inac
    curate
    Input #0, rawvideo, from 'input2':
     Duration: 00:00:00.20, start: 0.000000, bitrate: 630883 kb/s
       Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 1920x1080, 622080
    kb/s, 25 tbr, 25 tbn, 25 tbc

    File 'output2.mp4' already exists. Overwrite ? [y/N] y
    [libx264 @ 00000000007115e0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
    AVX FMA3 AVX2 LZCNT BMI2
    [libx264 @ 00000000007115e0] profile High, level 4.0
    [libx264 @ 00000000007115e0] 264 - core 148 r2638 7599210 - H.264/MPEG-4 AVC cod
    ec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=1 r
    ef=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_pski
    p=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 deci
    mate=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=2
    5 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.6
    0 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    Output #0, mp4, to 'output2.mp4':
     Metadata:
       encoder         : Lavf57.18.100
       Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1920x1
    080, q=-1--1, 25 fps, 12800 tbn, 25 tbc
       Metadata:
         encoder         : Lavc57.15.100 libx264
    Stream mapping:
     Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
    Press [q] to stop, [?] for help
    [rawvideo @ 00000000007101c0] ****Invalid buffer size, packet size 220075 &lt; expected
    frame_size 3110400
    Error while decoding stream #0:0: Invalid argument****
    frame=    5 fps=2.5 q=-1.0 Lsize=    6514kB time=00:00:00.12 bitrate=444706.9kbi
    ts/s
    video:6513kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing
    overhead: 0.013209%
    [libx264 @ 00000000007115e0] frame I:1     Avg QP:35.99  size:1334571
    [libx264 @ 00000000007115e0] frame P:4     Avg QP:35.00  size:1333616
    [libx264 @ 00000000007115e0] mb I  I16..4:  0.0%  0.0% 100.0%
    [libx264 @ 00000000007115e0] mb P  I16..4: 98.7%  0.0%  1.3%  P16..4:  0.0%  0.0
    %  0.0%  0.0%  0.0%    skip: 0.0%

    with

    Invalid buffer size, packet size 220075 &lt; expected
        frame_size 3110400
       Error while decoding stream #0:0: Invalid argument**

    inside

    When I use just
    ffmpeg -f h264 -i input -vcodec copy -r 25 outfile.mp4
    It replace initial IFrame with B-frames so I cannot playback it. I can view it with VCL, but not with Windows Media player, for example.
    What is wrong with the command ?
    Thanks
    Efim

  • Add SRT subtitle to video with ffmpeg [closed]

    28 décembre 2024, par jAckOdE

    I use ffmpeg to encode, and add subtitle to a video by following command

    &#xA;

    $ ffmpeg -i hifi.avi -i hifi.srt -acodec libfaac -ar 48000 -ab 128k -ac 2 -vcodec libx264 -vpre ipod640 -s 480x240 -b 256k -scodec copy  hifi.m4v -newsubtitle&#xA;

    &#xA;

    Here is the output

    &#xA;

    ffmpeg version 0.8.git, Copyright (c) 2000-2011 the FFmpeg developers&#xA;  built on Aug  4 2011 11:11:39 with gcc 4.5.2&#xA;  configuration: --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib --disable-shared --enable-static --enable-gpl --enable-postproc --enable-pthreads --enable-ffplay --disable-ffserver --enable-memalign-hack --enable-nonfree --enable-libfaac --arch=x86 --enable-swscale --enable-libx264 --enable-avfilter --enable-debug=3&#xA;  libavutil    51. 11. 1 / 51. 11. 1&#xA;  libavcodec   53.  9. 1 / 53.  9. 1&#xA;  libavformat  53.  6. 0 / 53.  6. 0&#xA;  libavdevice  53.  2. 0 / 53.  2. 0&#xA;  libavfilter   2. 27. 5 /  2. 27. 5&#xA;  libswscale    2.  0. 0 /  2.  0. 0&#xA;  libpostproc  51.  2. 0 / 51.  2. 0&#xA;Input #0, avi, from &#x27;hifi.avi&#x27;:&#xA;  Metadata:&#xA;    encoder         : VirtualDubMod 1.5.4.1 (build 2178/release)&#xA;    IAS1            : English&#xA;  Duration: 01:49:02.20, start: 0.000000, bitrate: 897 kb/s&#xA;    Stream #0.0: Video: mpeg4 (Simple Profile), yuv420p, 544x304 [SAR 1:1 DAR 34:19], 25 tbr, 25 tbn, 25 tbc&#xA;    Stream #0.1: Audio: mp3, 48000 Hz, stereo, s16, 32 kb/s&#xA;[srt @ 0152c100] Estimating duration from bitrate, this may be inaccurate&#xA;Input #1, srt, from &#x27;hifi.srt&#x27;:&#xA;  Duration: N/A, start: 56.080000, bitrate: N/A&#xA;    Stream #1.0: Subtitle: srt&#xA;File &#x27;hifi.m4v&#x27; already exists. Overwrite ? [y/N] y&#xA;[buffer @ 02548920] w:544 h:304 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:&#xA;[scale @ 02558ee0] w:544 h:304 fmt:yuv420p -> w:480 h:240 fmt:yuv420p flags:0x4&#xA;[libx264 @ 02547f20] Default settings detected, using medium profile&#xA;[libx264 @ 02547f20] using SAR=1/1&#xA;[libx264 @ 02547f20] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64&#xA;[libx264 @ 02547f20] profile High, level 3.0&#xA;[libx264 @ 02547f20] 264 - core 115 - H.264/MPEG-4 AVC codec - Copyleft 2003-2011 - 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=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=0 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=256 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=10000 vbv_bufsize=10000 nal_hrd=none ip_ratio=1.40 aq=1:1.00&#xA;Output #0, ipod, to &#x27;hifi.m4v&#x27;:&#xA;    Stream #0.0: Video: libx264, yuv420p, 480x240 [SAR 1:1 DAR 2:1], q=2-31, 256 kb/s, 90k tbn, 25 tbc&#xA;    Stream #0.1: Audio: libfaac, 48000 Hz, 2 channels, s16, 128 kb/s&#xA;    Stream #0.2: Subtitle: srt&#xA;    Stream #0.3: Subtitle: [0][0][0][0] / 0x0000, 64 kb/s&#xA;Stream mapping:&#xA;  Stream #0.0 -> #0.0&#xA;  Stream #0.1 -> #0.1&#xA;  Stream #1.0 -> #0.2&#xA;  Stream #1.0 -> #0.3&#xA;Encoder (codec id 0) not found for output stream #0.3&#xA;

    &#xA;

    Can anyone tell what is wrong with my command ?

    &#xA;