Recherche avancée

Médias (1)

Mot : - Tags -/getid3

Autres articles (59)

  • 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

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

Sur d’autres sites (6003)

  • avformat/matroskaenc : Don't ignore tags of chapters written late

    29 avril 2020, par Andreas Rheinhardt
    avformat/matroskaenc : Don't ignore tags of chapters written late
    

    The Matroska muxer writes the Chapters early when chapters were already
    available when writing the header ; in this case any tags pertaining to
    these chapters get written, too.

    Yet if no chapters had been supplied before writing the header, Chapters
    can also be written when writing the trailer if any are supplied. Tags
    belonging to these chapters were up until now completely ignored.

    This commit changes this : Writing the tags belonging to chapters has
    been moved to mkv_write_chapters(). If mkv_write_tags() has not been
    called yet (i.e. when chapters are written when writing the header),
    the AVIOContext for writing the ordinary Tags element is used, but not
    output, as this is left to mkv_write_tags() in order to only write one
    Tags element. Yet if mkv_write_tags() has already been called,
    mkv_write_chapters() will output a Tags element of its own which only
    contains the tags for chapters.

    When chapters are available initially, the corresponding tags will now
    be the first tags in the Tags element ; but the ordering of tags in Tags
    is irrelevant anyway.

    This commit also makes chapter_id_offset local to mkv_write_chapters()
    as it is used only there and not reused at all.

    Potentially writing a second Tags element means that the maximum number
    of SeekHead entries had to be incremented. All the changes to FATE
    result from the ensuing increase in the amount of space reserved for the
    SeekHead (21 bytes more).

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>

    • [DH] libavformat/matroskaenc.c
    • [DH] tests/fate/matroska.mak
    • [DH] tests/fate/wavpack.mak
    • [DH] tests/ref/fate/aac-autobsf-adtstoasc
    • [DH] tests/ref/fate/binsub-mksenc
    • [DH] tests/ref/fate/matroska-flac-extradata-update
    • [DH] tests/ref/fate/rgb24-mkv
    • [DH] tests/ref/fate/webm-dash-chapters
    • [DH] tests/ref/lavf-fate/av1.mkv
    • [DH] tests/ref/lavf/mka
    • [DH] tests/ref/lavf/mkv
    • [DH] tests/ref/lavf/mkv_attachment
    • [DH] tests/ref/seek/lavf-mkv
  • FFMPEG - How can I synchronize 2 IP cameras and audio ?

    25 novembre 2020, par Bashev

    Goal :&#xA;I want to capture 2 IP cameras and merge their video streams + one of the audio.

    &#xA;

    Problem :&#xA;I can either synchronize the videos and then the audio is not synchronized or I can synchronize one of the videos with the audio and then the other video is not synchronized.

    &#xA;

    What I did :&#xA;Both IP cameras are configured with the same NTP server

    &#xA;

      &#xA;
    • Command 1
    • &#xA;

    &#xA;

    ffmpeg &#xA;   -fflags &#x2B;genpts -r 24 -copyts -rtsp_transport tcp -thread_queue_size 102400 -rtbufsize 50M  -i rtsp://user:password@camera1/axis-media/media.amp &#xA;   -fflags &#x2B;genpts -r 24 -copyts -rtsp_transport tcp -thread_queue_size 102400 -rtbufsize 50M  -i rtsp://user:password@camera2/axis-media/media.amp &#xA;   -filter_complex "[0:v]setpts=&#x27;(RTCTIME - RTCSTART) / (TB * 1000000)&#x27;,crop=iw/2:ih:ow/2:0[v1]; [1:v]setpts=&#x27;(RTCTIME - RTCSTART) / (TB * 1000000)&#x27;,crop=iw/2:ih:ow/2:0[v2]; [v1][v2]hstack=inputs=2[comb];[0:a]asetpts=&#x27;(RTCTIME - RTCSTART) / (TB * 1000000)&#x27;[audio]"  &#xA;   -map [comb] -c:v libx265 -preset ultrafast -map [audio] -c:a aac -b:a 128k fileName&#xA;

    &#xA;

    The above command saves both videos synchronized but the audio is either delayed or comes too early. This could happen because the audio and the video of the stream that comes from the IP camera has different start_pts and start_time.

    &#xA;

    Example of the stream info :

    &#xA;

    {&#xA;    "streams": [&#xA;        {&#xA;            "index": 0,&#xA;            "codec_name": "h264",&#xA;            "codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",&#xA;            "profile": "High",&#xA;            "codec_type": "video",&#xA;            "codec_time_base": "0/2",&#xA;            "codec_tag_string": "[0][0][0][0]",&#xA;            "codec_tag": "0x0000",&#xA;            "width": 1280,&#xA;            "height": 720,&#xA;            "coded_width": 1280,&#xA;            "coded_height": 720,&#xA;            "closed_captions": 0,&#xA;            "has_b_frames": 0,&#xA;            "pix_fmt": "yuvj420p",&#xA;            "level": 41,&#xA;            "color_range": "pc",&#xA;            "color_space": "bt709",&#xA;            "color_transfer": "bt709",&#xA;            "color_primaries": "bt709",&#xA;            "chroma_location": "center",&#xA;            "field_order": "progressive",&#xA;            "refs": 1,&#xA;            "is_avc": "false",&#xA;            "nal_length_size": "0",&#xA;            "r_frame_rate": "25/1",&#xA;            "avg_frame_rate": "0/0",&#xA;            "time_base": "1/90000",&#xA;            "start_pts": 7200,&#xA;            "start_time": "0.080000",&#xA;            "bits_per_raw_sample": "8",&#xA;            "disposition": {&#xA;                "default": 0,&#xA;                "dub": 0,&#xA;                "original": 0,&#xA;                "comment": 0,&#xA;                "lyrics": 0,&#xA;                "karaoke": 0,&#xA;                "forced": 0,&#xA;                "hearing_impaired": 0,&#xA;                "visual_impaired": 0,&#xA;                "clean_effects": 0,&#xA;                "attached_pic": 0,&#xA;                "timed_thumbnails": 0&#xA;            }&#xA;        },&#xA;        {&#xA;            "index": 1,&#xA;            "codec_name": "aac",&#xA;            "codec_long_name": "AAC (Advanced Audio Coding)",&#xA;            "profile": "LC",&#xA;            "codec_type": "audio",&#xA;            "codec_time_base": "1/48000",&#xA;            "codec_tag_string": "[0][0][0][0]",&#xA;            "codec_tag": "0x0000",&#xA;            "sample_fmt": "fltp",&#xA;            "sample_rate": "48000",&#xA;            "channels": 1,&#xA;            "channel_layout": "mono",&#xA;            "bits_per_sample": 0,&#xA;            "r_frame_rate": "0/0",&#xA;            "avg_frame_rate": "0/0",&#xA;            "time_base": "1/48000",&#xA;            "start_pts": 5078,&#xA;            "start_time": "0.105792",&#xA;            "disposition": {&#xA;                "default": 0,&#xA;                "dub": 0,&#xA;                "original": 0,&#xA;                "comment": 0,&#xA;                "lyrics": 0,&#xA;                "karaoke": 0,&#xA;                "forced": 0,&#xA;                "hearing_impaired": 0,&#xA;                "visual_impaired": 0,&#xA;                "clean_effects": 0,&#xA;                "attached_pic": 0,&#xA;                "timed_thumbnails": 0&#xA;            }&#xA;        }&#xA;    ]&#xA;}&#xA;

    &#xA;

    Warning messages from FFMPEG, these appear constantly when I run the above command :

    &#xA;

    [aac @ 0000021766d575c0] Queue input is backward in time.49 bitrate=   5.8kbits/s dup=0 drop=142 speed=0.985x&#xA;    Last message repeated 10 times&#xA;

    &#xA;

      &#xA;
    • Command 2
    • &#xA;

    &#xA;

    ffmpeg &#xA;-rtsp_transport tcp -probesize 32 -analyzeduration 0  -i rtsp://user:password@camera1/axis-media/media.amp &#xA;-rtsp_transport tcp -probesize 32 -analyzeduration 0  -i rtsp://user:password@camera2/axis-media/media.amp  &#xA;-filter_complex "[0:v]setpts=&#x27;PTS-STARTPTS&#x27;,crop=iw/2:ih:ow/2:0[v1]; [1:v]setpts=&#x27;PTS-STARTPTS&#x27;,crop=iw/2:ih:ow/2:0[v2]; [v1][v2]hstack=inputs=2[comb];[0:a]asetpts=&#x27;PTS-STARTPTS&#x27;[audio]"  &#xA;-map [comb] -vcodec libx264 -preset ultrafast -pix_fmt yuv420p -strict 2 -r 15 -tune zerolatency -map [audio] -c:a aac -b:a 128k fileName&#xA;

    &#xA;

    The above command keep the first video and audio synchronized but the second video is always delayed a little bit.

    &#xA;

    Any hints how I can solve my problem ?

    &#xA;

  • ffmpeg encode video with incorrect output mediainfo encoding settings

    24 août 2021, par Foong

    I've been trying to do batch encode videos to H265 format. I am using media-autobuild_suite to build ffmpeg and have already updating ffmpeg to the latest version.

    &#xA;

    ffmpeg version N-103367-g5ddb4b6a1b-g88b3e31562&#x2B;1 Copyright (c) 2000-2021 the FFmpeg developers&#xA;built with gcc 10.3.0 (Rev5, Built by MSYS2 project)&#xA;configuration:  --pkg-config=pkgconf --cc=&#x27;ccache gcc&#x27; --cxx=&#x27;ccache g&#x2B;&#x2B;&#x27; --ld=&#x27;ccache g&#x2B;&#x2B;&#x27; --disable-autodetect --enable-amf --enable-bzlib --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-iconv --enable-lzma --enable-nvenc --enable-schannel --enable-zlib --enable-sdl2 --enable-ffnvcodec --enable-nvdec --enable-cuda-llvm --enable-gmp --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libdav1d --enable-libaom --disable-debug --enable-libfdk-aac --extra-libs=-liconv --enable-gpl --enable-version3 --enable-nonfree&#xA;libavutil      57.  4.101 / 57.  4.101&#xA;libavcodec     59.  5.101 / 59.  5.101&#xA;libavformat    59.  4.102 / 59.  4.102&#xA;libavdevice    59.  0.101 / 59.  0.101&#xA;libavfilter     8.  3.100 /  8.  3.100&#xA;libswscale      6.  0.100 /  6.  0.100&#xA;libswresample   4.  0.100 /  4.  0.100&#xA;libpostproc    56.  0.100 / 56.  0.100&#xA;

    &#xA;

    However, the Writing library and Encoding settings output is incorrect. Before update ffmpeg doesn't have this issue. I wonder what have been missing that causing this issue.

    &#xA;

    encoding CLI :

    &#xA;

    ffmpeg -y -hide_banner -loglevel error -stats -hwaccel dxva2 -i "input.mkv" -c:v libx265 -vsync cfr -pix_fmt yuv420p10le -preset fast -tune animation -x265-params ctu=32:min-cu-size=8:max-tu-size=16:tu-intra-depth=2:tu-inter-depth=2:me=1:subme=3:merange=44:max-merge=2:keyint=250:min-keyint=23:rc-lookahead=60:lookahead-slices=6:bframes=6:bframe-bias=0:b-adapt=2:ref=6:limit-refs=3:limit-tu=1:aq-mode=3:aq-strength=0.6:rd=3:psy-rd=1.00:psy-rdoq=1.50:rdoq-level=1:deblock=-1,-1:crf=21.0:qblur=0.50:qcomp=0.60:qpmin=0:qpmax=51:frame-threads=1:strong-intra-smoothing=1:no-lossless=1:no-cu-lossless=1:constrained-intra=1:no-fast-intra=1:no-open-gop=1:no-temporal-layers=1:no-limit-modes=1:weightp=1:no-weightb=1:no-analyze-src-pics=1:no-rd-refine=1:signhide=1:sao=1:no-sao-non-deblock=1:b-pyramid=1:no-cutree=1:no-intra-refresh=1:no-amp=1:temporal-mvp=1:no-early-skip=1:no-tskip=1:no-tskip-fast=1:no-deblock=1:no-b-intra=1:no-splitrd-skip=1:no-strict-cbr=1:no-rc-grain=1:no-const-vbv=1:no-opt-qp-pps=1:no-opt-ref-list-length-pps=1:no-multi-pass-opt-rps=1:no-opt-cu-delta-qp=1:no-hdr=1:no-hdr-opt=1:no-dhdr10-opt=1:no-idr-recovery-sei=1:no-limit-sao=1:no-lowpass-dct=1:no-dynamic-refine=1:no-single-sei=1 -c:a libfdk_aac -vf "fps=fps=29.970,setdar=16/9,scale=960:540:flags=lanczos" -map 0:v:? -map 0:a:? -map_metadata:g -1 -map_chapters 0 "output.mkv"&#xA;

    &#xA;

    Input video info :

    &#xA;

    Video&#xA;ID                          : 1&#xA;Format                      : AVC&#xA;Format/Info                 : Advanced Video Codec&#xA;Format profile              : High@L3&#xA;Format settings             : CABAC / 5 Ref Frames&#xA;Format settings, CABAC      : Yes&#xA;Format settings, Reference  : 5 frames&#xA;Codec ID                    : V_MPEG4/ISO/AVC&#xA;Bit rate                    : 1 595 kb/s&#xA;Nominal bit rate            : 2 030 kb/s&#xA;Width                       : 720 pixels&#xA;Height                      : 480 pixels&#xA;Display aspect ratio        : 16:9&#xA;Original display aspect rat : 3:2&#xA;Frame rate mode             : Variable&#xA;Original frame rate         : 29.970 FPS&#xA;Color space                 : YUV&#xA;Chroma subsampling          : 4:2:0&#xA;Bit depth                   : 8 bits&#xA;Scan type                   : Progressive&#xA;Bits/(Pixel*Frame)          : 0.196&#xA;Writing library             : x264 core 66 r1115M 11863ac&#xA;Encoding settings           : cabac=1 / ref=5 / deblock=1:1:1 / analyse=0x3:0x133 / me=esa / subme=7 / psy_rd=1.0:0.0 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=2 / deadzone=21,11 / chroma_qp_offset=-2 / threads=1 / nr=0 / decimate=0 / mbaff=0 / bframes=1 / b_pyramid=0 / b_adapt=1 / b_bias=0 / direct=3 / wpredb=1 / keyint=250 / keyint_min=25 / scenecut=40 / rc=2pass / bitrate=2030 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / pb_ratio=1.30 / aq=1:1.00&#xA;Default                     : Yes&#xA;Forced                      : No&#xA;

    &#xA;

    Output video info :

    &#xA;

    Video&#xA;ID                          : 1&#xA;Format                      : HEVC&#xA;Format/Info                 : High Efficiency Video Coding&#xA;Format profile              : Main 10@L3.1@Main&#xA;Codec ID                    : V_MPEGH/ISO/HEVC&#xA;Duration                    : 23 min 29 s&#xA;Width                       : 960 pixels&#xA;Height                      : 540 pixels&#xA;Display aspect ratio        : 16:9&#xA;Frame rate mode             : Constant&#xA;Frame rate                  : 29.970 (29970/1000) FPS&#xA;Color space                 : YUV&#xA;Chroma subsampling          : 4:2:0&#xA;Bit depth                   : 10 bits&#xA;Writing library             : Lavc59.5.100 libx265&#xA;Encoding settings           : cabac=1 / ref=5 / deblock=1:1:1 / analyse=0x3:0x133 / me=esa / subme=7 / psy_rd=1.0:0.0 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / cqm=2 / deadzone=21,11 / chroma_qp_offset=-2 / threads=1 / nr=0 / decimate=0 / mbaff=0 / bframes=1 / b_pyramid=0 / b_adapt=1 / b_bias=0 / direct=3 / wpredb=1 / keyint=250 / keyint_min=25 / scenecut=40 / rc=2pass / bitrate=2030 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / pb_ratio=1.30 / aq=1:1.00&#xA;Default                     : Yes&#xA;Forced                      : No&#xA;Color range                 : Limited&#xA;

    &#xA;

    Expecting (from previous encoded videos) :

    &#xA;

    Video&#xA;ID                          : 1&#xA;Format                      : HEVC&#xA;Format/Info                 : High Efficiency Video Coding&#xA;Format profile              : Main 10@L3.1@Main&#xA;Codec ID                    : V_MPEGH/ISO/HEVC&#xA;Duration                    : 24 min 37 s&#xA;Bit rate                    : 833 kb/s&#xA;Width                       : 960 pixels&#xA;Height                      : 720 pixels&#xA;Display aspect ratio        : 4:3&#xA;Frame rate mode             : Constant&#xA;Frame rate                  : 23.976 (23976/1000) FPS&#xA;Color space                 : YUV&#xA;Chroma subsampling          : 4:2:0&#xA;Bit depth                   : 10 bits&#xA;Bits/(Pixel*Frame)          : 0.050&#xA;Stream size                 : 147 MiB&#xA;Title                       : HEVC&#xA;Writing library             : x265 3.4&#x2B;28-419182243:[Windows][GCC 10.2.0][64 bit] 10bit&#xA;Encoding settings           : cpuid=1111039 / frame-threads=3 / numa-pools=12 / wpp / no-pmode / no-pme / no-psnr / no-ssim / log-level=2 / input-csp=1 / input-res=960x720 / interlace=0 / total-frames=0 / level-idc=0 / high-tier=1 / uhd-bd=0 / ref=5 / no-allow-non-conformance / no-repeat-headers / annexb / no-aud / no-hrd / info / hash=0 / no-temporal-layers / no-open-gop / min-keyint=1 / keyint=360 / gop-lookahead=0 / bframes=4 / b-adapt=2 / b-pyramid / bframe-bias=0 / rc-lookahead=20 / lookahead-slices=4 / scenecut=40 / hist-scenecut=0 / radl=0 / no-splice / no-intra-refresh / ctu=64 / min-cu-size=8 / no-rect / no-amp / max-tu-size=32 / tu-inter-depth=1 / tu-intra-depth=1 / limit-tu=0 / rdoq-level=0 / dynamic-rd=0.00 / no-ssim-rd / signhide / no-tskip / nr-intra=0 / nr-inter=0 / no-constrained-intra / strong-intra-smoothing / max-merge=2 / limit-refs=3 / no-limit-modes / me=1 / subme=3 / merange=16 / temporal-mvp / no-frame-dup / no-hme / weightp / no-weightb / no-analyze-src-pics / no-deblock / sao / no-sao-non-deblock / rd=3 / selective-sao=4 / no-early-skip / rskip / no-fast-intra / no-tskip-fast / no-cu-lossless / no-b-intra / no-splitrd-skip / rdpenalty=0 / psy-rd=0.20 / psy-rdoq=0.00 / no-rd-refine / no-lossless / cbqpoffs=0 / crqpoffs=0 / rc=crf / crf=26.0 / qcomp=0.60 / qpstep=4 / stats-write=0 / stats-read=0 / ipratio=1.40 / pbratio=1.00 / aq-mode=0 / aq-strength=0.00 / no-cutree / zone-count=0 / no-strict-cbr / qg-size=64 / no-rc-grain / qpmax=51 / qpmin=0 / no-const-vbv / sar=1 / overscan=0 / videoformat=5 / range=0 / colorprim=2 / transfer=2 / colormatrix=2 / chromaloc=0 / display-window=0 / cll=0,0 / min-luma=0 / max-luma=1023 / log2-max-poc-lsb=8 / vui-timing-info / vui-hrd-info / slices=1 / no-opt-qp-pps / no-opt-ref-list-length-pps / no-multi-pass-opt-rps / scenecut-bias=0.05 / hist-threshold=0.03 / no-opt-cu-delta-qp / no-aq-motion / no-hdr10 / no-hdr10-opt / no-dhdr10-opt / no-idr-recovery-sei / analysis-reuse-level=0 / analysis-save-reuse-level=0 / analysis-load-reuse-level=0 / scale-factor=0 / refine-intra=0 / refine-inter=0 / refine-mv=1 / refine-ctu-distortion=0 / no-limit-sao / ctu-info=0 / no-lowpass-dct / refine-analysis-type=0 / copy-pic=1 / max-ausize-factor=1.0 / no-dynamic-refine / no-single-sei / no-hevc-aq / no-svt / no-field / qp-adaptation-range=1.00 / no-scenecut-aware-qpconformance-window-offsets / right=0 / bottom=0 / decoder-max-rate=0 / no-vbv-live-multi-pass&#xA;Language                    : English&#xA;Default                     : Yes&#xA;Forced                      : No&#xA;Color range                 : Limited&#xA;

    &#xA;

    I have tried with simplest ffmpeg from official wedsite and encoding cli but the output still same.

    &#xA;

    ffmpeg -i "input.mkv" -c:v libx265 "output.mkv"&#xA;

    &#xA;