Recherche avancée

Médias (0)

Mot : - Tags -/diogene

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (97)

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

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (5778)

  • FFMPEG : How to manually select video quality from mpd manifest ?

    18 juin 2022, par Deoxys

    I want to ask what command should I use to select video quality from mpd manifest ?

    



    mpd manifest link

    



    https://anevia115(dot)mncnow(dot)id/vod/eds/kiko-season1-eps1-mobil-kabur-anv6/_/sa_dash_vmx/kiko-season1-eps1-mobil-kabur-anv6.mpd


    



    Here, the mpd file :

    



    &lt;?xml version="1.0" encoding="utf-8"?>&#xA;<mpd xmlns="urn:mpeg:dash:schema:mpd:2011" profiles="urn:mpeg:dash:profile:isoff-live:2011" type="static" mediapresentationduration="PT7M59.240000S" minbuffertime="PT0S" maxsegmentduration="PT4S">&#xA;  <period duration="PT7M59.240000S">&#xA;    <adaptationset group="1" mimetype="audio/mp4" lang="en" contenttype="audio" minbandwidth="32000" maxbandwidth="64000">&#xA;<contentprotection schemeiduri="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"></contentprotection><contentprotection schemeiduri="urn:mpeg:dash:mp4protection:2011" value="cenc"></contentprotection>      <role schemeiduri="urn:mpeg:dash:role:2011" value="main"></role>&#xA;      <representation bandwidth="32000" audiosamplingrate="22050" codecs="mp4a.40.2">&#xA;        <audiochannelconfiguration schemeiduri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2"></audiochannelconfiguration>&#xA;        <segmenttemplate timescale="10000000" initialization="kiko-season1-eps1-mobil-kabur-anv6-$RepresentationID$-init.mp4" media="kiko-season1-eps1-mobil-kabur-anv6-$RepresentationID$-$Time$.mp4">&#xA;          <segmenttimeline>&#xA;            <s t="0" d="36223129" r="1"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758731"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223130"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758731"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223130"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223130"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129" r="1"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223130"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758731"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223130"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758731"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223130"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129" r="1"></s>&#xA;            <s d="35758731"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223130"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758731"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223130"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758731"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="36223130"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758731"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223130"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758731"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223130"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758731"></s>&#xA;            <s d="36223129" r="1"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223130"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758731"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223130"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758731"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223130"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129" r="1"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223130"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="3715193"></s>&#xA;          </segmenttimeline>&#xA;        </segmenttemplate>&#xA;      </representation>&#xA;      <representation bandwidth="64000" audiosamplingrate="22050" codecs="mp4a.40.2">&#xA;        <audiochannelconfiguration schemeiduri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2"></audiochannelconfiguration>&#xA;        <segmenttemplate timescale="10000000" initialization="kiko-season1-eps1-mobil-kabur-anv6-$RepresentationID$-init.mp4" media="kiko-season1-eps1-mobil-kabur-anv6-$RepresentationID$-$Time$.mp4">&#xA;          <segmenttimeline>&#xA;            <s t="0" d="36223129" r="1"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758731"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223130"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758731"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223130"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223130"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129" r="1"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223130"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758731"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223130"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758731"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223130"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129" r="1"></s>&#xA;            <s d="35758731"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223130"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758731"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223130"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758731"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="36223130"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758731"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223130"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758731"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223130"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758731"></s>&#xA;            <s d="36223129" r="1"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223130"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758731"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223130"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758731"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223130"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129" r="1"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223130"></s>&#xA;            <s d="35758730"></s>&#xA;            <s d="36223129"></s>&#xA;            <s d="3715193"></s>&#xA;          </segmenttimeline>&#xA;        </segmenttemplate>&#xA;      </representation>&#xA;    </adaptationset>&#xA;    <adaptationset group="2" framerate="25" mimetype="video/mp4" startwithsap="1" contenttype="video" par="16:9" minbandwidth="150119" maxbandwidth="5002530" minwidth="256" maxwidth="1920" minheight="144" maxheight="1080">&#xA;<contentprotection schemeiduri="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"></contentprotection><contentprotection schemeiduri="urn:mpeg:dash:mp4protection:2011" value="cenc"></contentprotection>      <role schemeiduri="urn:mpeg:dash:role:2011" value="main"></role>&#xA;      <segmenttemplate timescale="10000000" initialization="kiko-season1-eps1-mobil-kabur-anv6-$RepresentationID$-init.mp4" media="kiko-season1-eps1-mobil-kabur-anv6-$RepresentationID$-$Time$.mp4">&#xA;        <segmenttimeline>&#xA;          <s t="0" d="36000000" r="132"></s>&#xA;          <s d="4400000"></s>&#xA;        </segmenttimeline>&#xA;      </segmenttemplate>&#xA;      <representation bandwidth="150119" width="256" height="144" codecs="avc1.4d400c"></representation>&#xA;      <representation bandwidth="500565" width="640" height="360" codecs="avc1.4d401e"></representation>&#xA;      <representation bandwidth="1001193" width="854" height="480" codecs="avc1.4d401e"></representation>&#xA;      <representation bandwidth="2502286" width="1280" height="720" codecs="avc1.4d401f"></representation>&#xA;      <representation bandwidth="5002530" width="1920" height="1080" codecs="avc1.4d4028"></representation>&#xA;    </adaptationset>&#xA;  </period>&#xA;</mpd>&#xA;

    &#xA;&#xA;

    The video is not encrypted with DRM. When I tried to download with FFmpeg, success, but FFmpeg automatically select the worst quality (144p).

    &#xA;&#xA;

    FFmpeg command I use :

    &#xA;&#xA;

    ffmpeg -i https://anevia115(dot)mncnow(dot)id/vod/eds/kiko-season1-eps1-mobil-kabur-anv6/_/sa_dash_vmx/kiko-season1-eps1-mobil-kabur-anv6.mpd -c copy kiko1.mp4&#xA;

    &#xA;&#xA;

    Result from ffmpeg

    &#xA;&#xA;

    ffmpeg version 3.4.6-0ubuntu0.18.04.1 Copyright (c) 2000-2019 the FFmpeg developers&#xA;  built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)&#xA;  configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.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&#xA;  libavutil      55. 78.100 / 55. 78.100&#xA;  libavcodec     57.107.100 / 57.107.100&#xA;  libavformat    57. 83.100 / 57. 83.100&#xA;  libavdevice    57. 10.100 / 57. 10.100&#xA;  libavfilter     6.107.100 /  6.107.100&#xA;  libavresample   3.  7.  0 /  3.  7.  0&#xA;  libswscale      4.  8.100 /  4.  8.100&#xA;  libswresample   2.  9.100 /  2.  9.100&#xA;  libpostproc    54.  7.100 / 54.  7.100&#xA;[dash @ 0x562ae2e98000] Opening &#x27;[URL]https://anevia115(dot)mncnow(dot)id/vod/eds/kiko-season1-eps1-mobil-kabur-anv6/_/sa_dash_vmx/kiko-season1-eps1-mobil-kabur-anv6-avc1_150119=5-init.mp4[/URL]&#x27; for reading [dash @ 0x562ae2e98000] Could not read complete fragment.&#xA;[dash @ 0x562ae2e98000] Opening &#x27;[URL]https://anevia115(dot)mncnow(dot)id/vod/eds/kiko-season1-eps1-mobil-kabur-anv6/_/sa_dash_vmx/kiko-season1-eps1-mobil-kabur-anv6-avc1_150119=5-0.mp4[/URL]&#x27; for reading&#xA;[dash @ 0x562ae2e98000] Opening &#x27;[URL]https://anevia115(dot)mncnow(dot)id/vod/eds/kiko-season1-eps1-mobil-kabur-anv6/_/sa_dash_vmx/kiko-season1-eps1-mobil-kabur-anv6-mp4a_32000_eng=6-init.mp4[/URL]&#x27; for reading [dash @ 0x562ae2e98000] Could not read complete fragment.&#xA;[dash @ 0x562ae2e98000] Opening &#x27;[URL]https://anevia115(dot)mncnow(dot)id/vod/eds/kiko-season1-eps1-mobil-kabur-anv6/_/sa_dash_vmx/kiko-season1-eps1-mobil-kabur-anv6-mp4a_32000_eng=6-0.mp4[/URL]&#x27; for reading&#xA;[aac @ 0x562ae32ced00] channel element 2.3 is not allocated&#xA;[h264 @ 0x562ae32cc500] top block unavailable for requested intra mode -1&#xA;[h264 @ 0x562ae32cc500] error while decoding MB 0 0, bytestream 38&#xA;[h264 @ 0x562ae32cc500] concealing 144 DC, 144 AC, 144 MV errors in I frame&#xA;Input #0, dash, from &#x27;[URL]https://anevia115(dot)mncnow(dot)id/vod/eds/kiko-season1-eps1-mobil-kabur-anv6/_/sa_dash_vmx/kiko-season1-eps1-mobil-kabur-anv6.mpd[/URL]&#x27;:&#xA;  Duration: 00:07:59.00, start: 0.000000, bitrate: 0 kb/s &#xA;Program 0&#xA;     Stream #0:0: Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 256x144 [SAR 1:1 DAR 16:9], 153 kb/s, 25 fps, 25 tbr, 10000k tbn, 50 tbc  &#xA;     Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 32 kb/s&#xA;Output #0, mp4, to &#x27;kiko1.mp4&#x27;: &#xA;   Metadata:   &#xA;      encoder         : Lavf57.83.100   &#xA;      Stream #0:0: Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 256x144 [SAR 1:1 DAR 16:9], q=2-31, 153 kb/s, 25 fps, 25 tbr, 10000k tbn, 10000k tbc&#xA;Stream mapping: &#xA;   Stream #0:0 -> #0:0 (copy)&#xA;Press [q] to stop, [?] for help&#xA;[dash @ 0x562ae2e98000] Opening &#x27;[URL]https://anevia115(dot)mncnow(dot)id/vod/eds/kiko-season1-eps1-mobil-kabur-anv6/_/sa_dash_vmx/kiko-season1-eps1-mobil-kabur-anv6-mp4a_32000_eng=6-36223129.mp4[/URL]&#x27; for reading&#xA;[dash @ 0x562ae2e98000] Opening &#x27;[URL]https://anevia115(dot)mncnow(dot)id/vod/eds/kiko-season1-eps1-mobil-kabur-anv6/_/sa_dash_vmx/kiko-season1-eps1-mobil-kabur-anv6-avc1_150119=5-36000000.mp4[/URL]&#x27; for reading&#xA;....&#xA;....&#xA;frame=11978 fps= 99 q=-1.0 Lsize=    8891kB time=00:07:59.08 bitrate= 152.0kbits/s speed=3.97x&#xA;video:8779kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.269990%&#xA;

    &#xA;&#xA;

    Tried youtube-dl & streamlink but failed.&#xA;So, I use FFmpeg because it success to download the video and audio. I have read FFmpeg documentation but I have no idea what command should I use.&#xA;What command should I use to select another quality ? (ex : audio 64 kbps, video : 720p)

    &#xA;&#xA;

    &#xA;

    Note : just change (dot) to .

    &#xA;

    &#xA;

  • FFMPEG Audio/video out of sync after cutting and concatonating even after transcoding

    4 mai 2020, par Ham789

    I am attempting to take cuts from a set of videos and concatonate them together with the concat demuxer.

    &#xA;&#xA;

    However, the audio is out of sync of the video in the output. The audio seems to drift further out of sync as the video progresses. Interestingly, if I click to seek another time in the video with the progress bar on the player, the audio becomes synced up with the video but then gradually drifts out of sync again. Seeking to a new time in the player seems to reset the audio/video. It is like they are being played back at different rates or something. I get this behaviour in both Quicktime and VLC players.

    &#xA;&#xA;

    For each video, I decode it, trim a clip from it and then encode it to 4k resolution at 25 fps with its audio :

    &#xA;&#xA;

    ffmpeg -ss 0.5 -t 0.5 -i input_video1.mp4 -r 25 -vf scale=3840:2160 output_video1.mp4

    &#xA;&#xA;

    I then take each of these videos and concatonate them together with the concat demuxer :

    &#xA;&#xA;

    ffmpeg -f concat -safe 0 -i cut_videos.txt -c copy -y output.mp4

    &#xA;&#xA;

    I am taking short cuts of each video (approximately 0.5s)

    &#xA;&#xA;

    I am using Python's subprocess to automate the cutting and concatonating of the videos.

    &#xA;&#xA;

    I am not sure if this happens because of the trimming or concatenation steps but when I play back the intermediate cut video files (output_video1.mp4 in the above command), there seems to be some silence before the audio comes in at the start of the video.

    &#xA;&#xA;

    When I concatonate the videos, I sometimes get a lot of these warnings however the audio still becomes out of sync even when I do not get them :

    &#xA;&#xA;

    [mp4 @ 0000021a252ce080] Non-monotonous DTS in output stream 0:1; previous: 51792, current: 50009; changing to 51793. This may result in incorrect timestamps in the output file.

    &#xA;&#xA;

    From this post, it seems to be a problem with cutting the videos and their timestamps. The solution proposed in the post is to decode, cut and then encode the video however I am already doing that.

    &#xA;&#xA;

    How can I ensure the audio and video are in sync ? Am I transcoding incorrectly ? This seems to be the only solution I can find online however it does not seem to work.

    &#xA;&#xA;

    UPDATE :

    &#xA;&#xA;

    I took inspiration from this post and seperated the audio and video from output_video1.mp4 using :

    &#xA;&#xA;

    ffmpeg -i output_video1.mp4 -acodec copy -vn video.mp4

    &#xA;&#xA;

    and

    &#xA;&#xA;

    ffmpeg -i output_video1.mp4 -vcodec copy -an audio.mp4

    &#xA;&#xA;

    I then compared the durations of video.mp4 and audio.mp4 and got 0.57s and 0.52s respectively. Since the video is longer, this explains why there is a period of silence in the videos. The post then suggests transcoding is the solution however as you can see from the code above that does not work for me.

    &#xA;&#xA;

    Sample Output Log for the Trim Command

    &#xA;&#xA;

      built with Apple LLVM version 10.0.0 (clang-1000.11.45.5)&#xA;  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.2.2 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags=&#x27;-I/Library/Java/JavaVirtualMachines/adoptopenjdk-13.0.1.jdk/Contents/Home/include -I/Library/Java/JavaVirtualMachines/adoptopenjdk-13.0.1.jdk/Contents/Home/include/darwin&#x27; --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libmp3lame --enable-libopus --enable-librubberband --enable-libsnappy --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libsoxr --enable-videotoolbox --disable-libjack --disable-indev=jack&#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;  libavresample   4.  0.  0 /  4.  0.  0&#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;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;input_video1.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2avc1mp41&#xA;    encoder         : Lavf58.29.100&#xA;  Duration: 00:00:04.06, start: 0.000000, bitrate: 14266 kb/s&#xA;    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 3840x2160, 14268 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)&#xA;    Metadata:&#xA;      handler_name    : Core Media Video&#xA;    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 94 kb/s (default)&#xA;    Metadata:&#xA;      handler_name    : Core Media Audio&#xA;File &#x27;output_video1.mp4&#x27; already exists. Overwrite ? [y/N] y&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))&#xA;  Stream #0:1 -> #0:1 (aac (native) -> aac (native))&#xA;Press [q] to stop, [?] for help&#xA;[libx264 @ 0x7fcae4001e00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2&#xA;[libx264 @ 0x7fcae4001e00] profile High, level 5.1&#xA;[libx264 @ 0x7fcae4001e00] 264 - core 155 r2917 0a84d98 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - 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=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00&#xA;Output #0, mp4, to &#x27;output_video1.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2avc1mp41&#xA;    encoder         : Lavf58.29.100&#xA;    Stream #0:0(und): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 3840x2160, q=-1--1, 25 fps, 12800 tbn, 25 tbc (default)&#xA;    Metadata:&#xA;      handler_name    : Core Media Video&#xA;      encoder         : Lavc58.54.100 libx264&#xA;    Side data:&#xA;      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1&#xA;    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 69 kb/s (default)&#xA;    Metadata:&#xA;      handler_name    : Core Media Audio&#xA;      encoder         : Lavc58.54.100 aac&#xA;frame=   14 fps=7.0 q=-1.0 Lsize=     928kB time=00:00:00.51 bitrate=14884.2kbits/s dup=0 drop=1 speed=0.255x    &#xA;video:922kB audio:5kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.194501%&#xA;[libx264 @ 0x7fcae4001e00] frame I:1     Avg QP:21.06  size:228519&#xA;[libx264 @ 0x7fcae4001e00] frame P:4     Avg QP:22.03  size: 85228&#xA;[libx264 @ 0x7fcae4001e00] frame B:9     Avg QP:22.88  size: 41537&#xA;[libx264 @ 0x7fcae4001e00] consecutive B-frames: 14.3%  0.0%  0.0% 85.7%&#xA;[libx264 @ 0x7fcae4001e00] mb I  I16..4: 27.6% 64.3%  8.1%&#xA;[libx264 @ 0x7fcae4001e00] mb P  I16..4:  9.1% 10.7%  0.2%  P16..4: 48.5%  7.3%  3.9%  0.0%  0.0%    skip:20.2%&#xA;[libx264 @ 0x7fcae4001e00] mb B  I16..4:  1.1%  1.0%  0.0%  B16..8: 44.5%  2.9%  0.2%  direct: 8.3%  skip:42.0%  L0:45.6% L1:53.2% BI: 1.2%&#xA;[libx264 @ 0x7fcae4001e00] 8x8 transform intra:58.2% inter:93.4%&#xA;[libx264 @ 0x7fcae4001e00] coded y,uvDC,uvAC intra: 31.4% 62.2% 5.2% inter: 11.4% 30.9% 0.0%&#xA;[libx264 @ 0x7fcae4001e00] i16 v,h,dc,p: 15% 52% 12% 21%&#xA;[libx264 @ 0x7fcae4001e00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 33% 32%  2%  2%  2%  4%  2%  4%&#xA;[libx264 @ 0x7fcae4001e00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 39%  9%  3%  4%  4% 12%  3%  4%&#xA;[libx264 @ 0x7fcae4001e00] i8c dc,h,v,p: 43% 36% 18%  3%&#xA;[libx264 @ 0x7fcae4001e00] Weighted P-Frames: Y:0.0% UV:0.0%&#xA;[libx264 @ 0x7fcae4001e00] ref P L0: 69.3%  8.0% 14.8%  7.9%&#xA;[libx264 @ 0x7fcae4001e00] ref B L0: 88.1%  9.2%  2.6%&#xA;[libx264 @ 0x7fcae4001e00] ref B L1: 90.2%  9.8%&#xA;[libx264 @ 0x7fcae4001e00] kb/s:13475.29&#xA;[aac @ 0x7fcae4012400] Qavg: 125.000```&#xA;

    &#xA;

  • How do I properly format a request for ffmpeg to decode using a particular codec ? [migrated]

    9 mai 2013, par user2062660

    r3d is listed as a supported codec for decoding, however when I attempt to specify the r3d decoder, I get the error message "Unknown decoder". What is the correct manner of specifying a decoder codec ?

    me$ ffmpeg -c r3d -i one.r3d one.mpg
    ffmpeg version 1.2 Copyright (c) 2000-2013 the FFmpeg developers
     built on May  8 2013 19:48:08 with Apple clang version 4.0 (tags/Apple/clang-421.0.57) (based on LLVM 3.1svn)
     configuration: --prefix=/usr/local/Cellar/ffmpeg/1.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda --cc=cc --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid
     libavutil      52. 18.100 / 52. 18.100
     libavcodec     54. 92.100 / 54. 92.100
     libavformat    54. 63.104 / 54. 63.104
     libavdevice    54.  3.103 / 54.  3.103
     libavfilter     3. 42.103 /  3. 42.103
     libswscale      2.  2.100 /  2.  2.100
     libswresample   0. 17.102 /  0. 17.102
     libpostproc    52.  2.100 / 52.  2.100
    [mp3 @ 0x7fa2e4006600] Format mp3 detected only with low score of 1, misdetection possible!
    Unknown decoder &#39;r3d&#39;