Recherche avancée

Médias (1)

Mot : - Tags -/biomaping

Autres articles (54)

  • 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

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

Sur d’autres sites (9672)

  • FFMpeg drawtext not working in my code

    10 juillet 2018, par Dev

    I am trying to overlay a text on existing movie using FFMpeg. Overlaying of an image works perfectly, but failed to drawtext. My code is as below.

    GeneralUtils.checkForPermissionsMAndAbove(RecordVideo.this, true);
    LoadJNI vk = new LoadJNI();
    String[] complexCommand = {
       "ffmpeg", "-i", FilePath, "-vf",
       "drawtext=text='Hello Dev..':"
           + "fontsize=24:fontfile=/system/fonts/DroidSans.ttf:box=1:boxcolor=black@0.5:x=w-tw:y=h-th",
       FilePath1};
    vk.run(complexCommand , StorageDIR , getApplicationContext());

    I am getting error as follows

    ffmpeg version git-2016-10-26-efa89a8 Copyright (c) 2000-2016 the FFmpeg

    developers
     built with gcc 4.9 (GCC) 20140827 (prerelease)
    ffmpeg4android 3.22_00_full_LM322
     libavutil      55. 35.100 / 55. 35.100
     libavcodec     57. 65.100 / 57. 65.100
     libavformat    57. 57.100 / 57. 57.100
     libavdevice    57.  2.100 / 57.  2.100
     libavfilter     6. 66.100 /  6. 66.100
     libswscale      4.  3.100 /  4.  3.100
     libswresample   2.  4.100 /  2.  4.100
     libpostproc    54.  2.100 / 54.  2.100
    Splitting the commandline.
    Reading option '-i' ... matched as input file with argument '/storage/emulated/0/Pictures/ReporterLive/VID_10072018141402.avi'.
    Reading option '-vf' ... matched as option 'vf' (set video filters) with argument 'drawtext=text='Hello Dev..':fontsize=24:fontfile=/system/fonts/DroidSans.ttf:box=1:boxcolor=black@0.5:x=w-tw:y=h-th'.
    Reading option '/storage/emulated/0/Pictures/ReporterLive/VID_10072018141402_1.avi' ... matched as output file.
    Finished splitting the commandline.
    Parsing a group of options: global .
    Successfully parsed a group of options.
    Parsing a group of options: input file /storage/emulated/0/Pictures/ReporterLive/VID_10072018141402.avi.
    Successfully parsed a group of options.
    Opening an input file: /storage/emulated/0/Pictures/ReporterLive/VID_10072018141402.avi.
    Setting default whitelist 'file,crypto'
    Probing mov,mp4,m4a,3gp,3g2,mj2 score:100 size:2048
    Probing mp3 score:1 size:2048
    Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100
    type: 70797466 'ftyp' parent:'root' sz: 24 8 3096055
    ISO: File Type Major Brand: mp42
    type: 7461646d 'mdat' parent:'root' sz: 3093790 32 3096055
    type: 766f6f6d 'moov' parent:'root' sz: 2241 3093822 3096055
    type: 6468766d 'mvhd' parent:'moov' sz: 108 8 2233
    time scale = 1000
    type: 61746475 'udta' parent:'moov' sz: 52 116 2233
    type: 4e4c4453 'SDLN' parent:'udta' sz: 16 8 44
    type: 64726d73 'smrd' parent:'udta' sz: 16 24 44
    type: 61746d73 'smta' parent:'udta' sz: 12 40 44
    type: 6174656d 'meta' parent:'moov' sz: 119 168 2233
    type: 726c6468 'hdlr' parent:'meta' sz: 33 8 111
    ctype=  (0x00000000)
    stype= mdta
    type: 7379656b 'keys' parent:'meta' sz: 43 41 111
    type: 74736c69 'ilst' parent:'meta' sz: 35 84 111
    type: 01000000 '' parent:'ilst' sz: 27 8 27
    lang "   " tag "com.android.version" value "7.0" atom "" 7 3
    type: 6b617274 'trak' parent:'moov' sz: 1023 287 2233
    type: 64686b74 'tkhd' parent:'trak' sz: 92 8 1015
    type: 6169646d 'mdia' parent:'trak' sz: 923 100 1015
    type: 6468646d 'mdhd' parent:'mdia' sz: 32 8 915
    type: 726c6468 'hdlr' parent:'mdia' sz: 44 40 915
    ctype=  (0x00000000)
    stype= vide
    type: 666e696d 'minf' parent:'mdia' sz: 839 84 915
    type: 64686d76 'vmhd' parent:'minf' sz: 20 8 831
    type: 666e6964 'dinf' parent:'minf' sz: 36 28 831
    type: 66657264 'dref' parent:'dinf' sz: 28 8 28
    type url  size 12
    Unknown dref type 0x08206c7275 size 12
    type: 6c627473 'stbl' parent:'minf' sz: 775 64 831
    type: 64737473 'stsd' parent:'stbl' sz: 171 8 767
    size=155 4CC= avc1/0x31637661 codec_type=0
    type: 43637661 'avcC' parent:'stsd' sz: 34 8 69
    type: 70736170 'pasp' parent:'stsd' sz: 16 42 69
    type: 726c6f63 'colr' parent:'stsd' sz: 19 58 69
    nclx: pri 1 trc 1 matrix 1 full 0
    type: 73747473 'stts' parent:'stbl' sz: 304 179 767
    track[0].stts.entries = 36
    sample_count=1, sample_duration=5942
    .
    sample_count=2, sample_duration=5401
    type: 73737473 'stss' parent:'stbl' sz: 24 483 767
    keyframe_count = 2
    type: 7a737473 'stsz' parent:'stbl' sz: 188 507 767
    sample_size = 0 sample_count = 42
    type: 63737473 'stsc' parent:'stbl' sz: 52 695 767
    track[0].stsc.entries = 3
    type: 6f637473 'stco' parent:'stbl' sz: 28 747 767
    AVIndex stream 0, sample 0, offset 831f, dts 0, size 212746, distance 0, keyframe 1
    .
    AVIndex stream 0, sample 41, offset 2e28a5, dts 221935, size 68753, distance 11, keyframe 0
    type: 6b617274 'trak' parent:'moov' sz: 931 1310 2233
    type: 64686b74 'tkhd' parent:'trak' sz: 92 8 923
    type: 6169646d 'mdia' parent:'trak' sz: 831 100 923
    type: 6468646d 'mdhd' parent:'mdia' sz: 32 8 823
    type: 726c6468 'hdlr' parent:'mdia' sz: 44 40 823
    ctype=  (0x00000000)
    stype= soun
    type: 666e696d 'minf' parent:'mdia' sz: 747 84 823
    type: 64686d73 'smhd' parent:'minf' sz: 16 8 739
    type: 666e6964 'dinf' parent:'minf' sz: 36 24 739
    type: 66657264 'dref' parent:'dinf' sz: 28 8 28
    type url  size 12
    Unknown dref type 0x08206c7275 size 12
    type: 6c627473 'stbl' parent:'minf' sz: 687 60 739
    type: 64737473 'stsd' parent:'stbl' sz: 91 8 679
    size=75 4CC= mp4a/0x6134706d codec_type=1
    audio channels 2
    version =0, isom =1
    type: 73647365 'esds' parent:'stsd' sz: 39 8 39
    MPEG-4 description: tag=0x03 len=25
    MPEG-4 description: tag=0x04 len=17
    esds object type id 0x40
    MPEG-4 description: tag=0x05 len=2
    Specific MPEG-4 header len=2
    mp4a config channels 2 obj 2 ext obj 0 sample rate 48000 ext sample rate 0
    type: 73747473 'stts' parent:'stbl' sz: 32 99 679
    track[1].stts.entries = 2
    sample_count=1, sample_duration=1024
    sample_count=113, sample_duration=1024
    type: 7a737473 'stsz' parent:'stbl' sz: 476 131 679
    sample_size = 0 sample_count = 114
    type: 63737473 'stsc' parent:'stbl' sz: 52 607 679
    track[1].stsc.entries = 3
    type: 6f637473 'stco' parent:'stbl' sz: 28 659 679
    AVIndex stream 1, sample 0, offset 20, dts 0, size 682, distance 0, keyframe 1
    AVIndex stream 1, sample 1, offset 2ca, dts 1024, size 683, distance 0, keyframe 1
    .
    AVIndex stream 1, sample 99, offset 28939d, dts 101376, size 682, distance 0, keyframe 1
    .
    AVIndex stream 1, sample 113, offset 28b8f2, dts 115712, size 683, distance 0, keyframe 1
    on_parse_exit_offset=3096055
    rfps: 16.500000 0.014060
    rfps: 16.583333 0.003530
    rfps: 16.666667 0.000000
    rfps: 16.666667 0.000000
    rfps: 16.750000 0.003470
    rfps: 16.750000 0.003470
    rfps: 16.833333 0.013939
    rfps: 50.000000 0.000001
    rfps: 50.000000 0.000001
    Before avformat_find_stream_info() pos: 3096055 bytes read:35009 seeks:1 nb_streams:2
    nal_unit_type: 7, nal_ref_idc: 3
    nal_unit_type: 8, nal_ref_idc: 3
    stream 0, sample 0, dts 0
    .
    stream 1, sample 47, dts 1002667
    nal_unit_type: 5, nal_ref_idc: 3
    Reinit context to 1920x1088, pix_fmt: yuv420p
    All info found
    stream 0: start_time: 0.000 duration: 2.526
    stream 1: start_time: 0.000 duration: 2.432
    format: start_time: 0.000 duration: 2.520 bitrate=9828 kb/s
    After avformat_find_stream_info() pos: 246313 bytes read:281290 seeks:2 frames:48
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/Pictures/ReporterLive/VID_10072018141402.avi':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: isommp42
       creation_time   : 2018-07-10T08:44:06.000000Z
       com.android.version: 7.0
     Duration: 00:00:02.52, start: 0.000000, bitrate: 9828 kb/s
       Stream #0:0(eng), 1, 1/90000: Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080, 9551 kb/s, SAR 1:1 DAR 16:9, 16.63 fps, 16.67 tbr, 90k tbn, 180k tbc (default)
       Metadata:
         creation_time   : 2018-07-10T08:44:06.000000Z
         handler_name    : VideoHandle
       Stream #0:1(eng), 47, 1/48000: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 256 kb/s (default)
       Metadata:
         creation_time   : 2018-07-10T08:44:06.000000Z
         handler_name    : SoundHandle

    Successfully opened the file.
       Parsing a group of options: output file /storage/emulated/0/Pictures/ReporterLive/VID_10072018141402_1.avi.
       Applying option vf (set video filters) with argument drawtext=text='Hello Dev..':fontsize=24:fontfile=/system/fonts/DroidSans.ttf:box=1:boxcolor=black@0.5:x=w-tw:y=h-th.
       Successfully parsed a group of options.
       Opening an output file: /storage/emulated/0/Pictures/ReporterLive/VID_10072018141402_1.avi.
       Setting default whitelist 'file,crypto'
       Successfully opened the file.
       No such filter: 'drawtext'
       Error opening filters!
       Statistics: 0 seeks, 0 writeouts
       Statistics: 281290 bytes read, 2 seeks

    Can anyone tell what I am doing wrong ? I want to do it in the simplest form.

  • building ffmpeg with openh264 configure results in h264 decoder DISabled ?

    7 juillet 2018, par hal497

    I’ve got openh264, built from source, installed locally,

    pkg-config --libs --cflags openh264
           -I/usr/local/include -L/usr/local/lib64 -lopenh264

    Building ffmpeg from src

    cd ffmpeg-git
       git checkout origin/release/4.0
       git clean -xfd
       git reset --hard
       git pull
       git log | head
           commit b5106c5aa2ddd00f0c0452432ba8e683a9a06b6f
           Author: Aman Gupta <aman@tmm1.net>
           Date:   Mon Jun 11 00:43:31 2018 -0700

               avformat/mpegts: parse large PMTs with multiple tables

               In 9152c1e4955, the mpegts parser was taught how to parse
               PMT sections which contained multiple tables. That commit
               fixed parsing of PMT packets from some cable providers,
               which included a special SCTE table (0xc0) before the

    with a simple config to ENABLE libopenh264 use

    ./configure --enable-ffmpeg \
    --prefix=/usr/local --libdir=/usr/local/lib64 \
    --enable-shared --disable-static --enable-rpath \
    --enable-libopenh264 --disable-libx264
    make

    checking the build

    ldd ./ffmpeg | egrep "h264|x264"
       (empty)

    there are mixed references to libopenh264 and libx264 (despite my config),

    for l in lib*/*so; do echo $l; ldd $l | egrep "264"; done
       libavcodec/libavcodec.so
               libopenh264.so.4 => /usr/local/lib64/libopenh264.so.4 (0x00007f82dd74d000)
       libavdevice/libavdevice.so
               libx264.so.152 => /usr/lib64/libx264.so.152 (0x00007f0575c6f000)
       libavfilter/libavfilter.so
               libx264.so.152 => /usr/lib64/libx264.so.152 (0x00007f85bae41000)
       libavformat/libavformat.so
               libx264.so.152 => /usr/lib64/libx264.so.152 (0x00007ff105701000)
       libavutil/libavutil.so
       libswresample/libswresample.so
       libswscale/libswscale.so

    and

    ./ffmpeg -decoders | grep h264

    shows h264 as a disabled decoder, (... —enable-libx264 —disable-libopenh264 ...)

    ffmpeg version n4.0.1-5-gb5106c5aa2 Copyright (c) 2000-2018 the FFmpeg developers
     built with gcc 8 (SUSE Linux)
     configuration: --enable-ffmpeg --prefix=/usr/local --libdir=/usr/local/lib64 --enable-shared --disable-static --enable-optimizations --enable-rpath --disable-doc --enable-nonfree --enable-libopenh264 --disable-libx264
     WARNING: library configuration mismatch
     avutil      configuration: --prefix=/usr/local --libdir=/usr/local/lib64 --extra-cflags='-grecord-gcc-switches -g -fPIC -I/usr/include/gsm' --disable-static --enable-shared --disable-stripping --enable-optimizations --disable-debug --enable-ffmpeg --disable-ffplay --disable-ffprobe --disable-devices --disable-htmlpages --disable-doc --enable-gpl --enable-nonfree --enable-version3 --enable-libx264 --disable-libopenh264 --enable-libfdk-aac --enable-libmp3lame --enable-runtime-cpudetect --enable-postproc --enable-bzlib --enable-swresample --disable-avresample --enable-ladspa --enable-muxers --enable-demuxers --enable-encoders --disable-encoder= --enable-decoders --disable-decoder= --enable-protocol=http --disable-libpulse --enable-pthreads --enable-pic --enable-zlib --disable-mipsdsp --disable-mipsdspr2 --disable-openssl --enable-gnutls --disable-cuda --enable-vaapi --enable-vdpau --enable-libcdio --enable-libgsm --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-inline-asm --enable-x86asm
     avcodec     configuration: --prefix=/usr/local --libdir=/usr/local/lib64 --extra-cflags='-grecord-gcc-switches -g -fPIC -I/usr/include/gsm' --disable-static --enable-shared --disable-stripping --enable-optimizations --disable-debug --enable-ffmpeg --disable-ffplay --disable-ffprobe --disable-devices --disable-htmlpages --disable-doc --enable-gpl --enable-nonfree --enable-version3 --enable-libx264 --disable-libopenh264 --enable-libfdk-aac --enable-libmp3lame --enable-runtime-cpudetect --enable-postproc --enable-bzlib --enable-swresample --disable-avresample --enable-ladspa --enable-muxers --enable-demuxers --enable-encoders --disable-encoder= --enable-decoders --disable-decoder= --enable-protocol=http --disable-libpulse --enable-pthreads --enable-pic --enable-zlib --disable-mipsdsp --disable-mipsdspr2 --disable-openssl --enable-gnutls --disable-cuda --enable-vaapi --enable-vdpau --enable-libcdio --enable-libgsm --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-inline-asm --enable-x86asm
     avformat    configuration: --prefix=/usr/local --libdir=/usr/local/lib64 --extra-cflags='-grecord-gcc-switches -g -fPIC -I/usr/include/gsm' --disable-static --enable-shared --disable-stripping --enable-optimizations --disable-debug --enable-ffmpeg --disable-ffplay --disable-ffprobe --disable-devices --disable-htmlpages --disable-doc --enable-gpl --enable-nonfree --enable-version3 --enable-libx264 --disable-libopenh264 --enable-libfdk-aac --enable-libmp3lame --enable-runtime-cpudetect --enable-postproc --enable-bzlib --enable-swresample --disable-avresample --enable-ladspa --enable-muxers --enable-demuxers --enable-encoders --disable-encoder= --enable-decoders --disable-decoder= --enable-protocol=http --disable-libpulse --enable-pthreads --enable-pic --enable-zlib --disable-mipsdsp --disable-mipsdspr2 --disable-openssl --enable-gnutls --disable-cuda --enable-vaapi --enable-vdpau --enable-libcdio --enable-libgsm --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-inline-asm --enable-x86asm
     avdevice    configuration: --prefix=/usr/local --libdir=/usr/local/lib64 --extra-cflags='-grecord-gcc-switches -g -fPIC -I/usr/include/gsm' --disable-static --enable-shared --disable-stripping --enable-optimizations --disable-debug --enable-ffmpeg --disable-ffplay --disable-ffprobe --disable-devices --disable-htmlpages --disable-doc --enable-gpl --enable-nonfree --enable-version3 --enable-libx264 --disable-libopenh264 --enable-libfdk-aac --enable-libmp3lame --enable-runtime-cpudetect --enable-postproc --enable-bzlib --enable-swresample --disable-avresample --enable-ladspa --enable-muxers --enable-demuxers --enable-encoders --disable-encoder= --enable-decoders --disable-decoder= --enable-protocol=http --disable-libpulse --enable-pthreads --enable-pic --enable-zlib --disable-mipsdsp --disable-mipsdspr2 --disable-openssl --enable-gnutls --disable-cuda --enable-vaapi --enable-vdpau --enable-libcdio --enable-libgsm --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-inline-asm --enable-x86asm
     avfilter    configuration: --prefix=/usr/local --libdir=/usr/local/lib64 --extra-cflags='-grecord-gcc-switches -g -fPIC -I/usr/include/gsm' --disable-static --enable-shared --disable-stripping --enable-optimizations --disable-debug --enable-ffmpeg --disable-ffplay --disable-ffprobe --disable-devices --disable-htmlpages --disable-doc --enable-gpl --enable-nonfree --enable-version3 --enable-libx264 --disable-libopenh264 --enable-libfdk-aac --enable-libmp3lame --enable-runtime-cpudetect --enable-postproc --enable-bzlib --enable-swresample --disable-avresample --enable-ladspa --enable-muxers --enable-demuxers --enable-encoders --disable-encoder= --enable-decoders --disable-decoder= --enable-protocol=http --disable-libpulse --enable-pthreads --enable-pic --enable-zlib --disable-mipsdsp --disable-mipsdspr2 --disable-openssl --enable-gnutls --disable-cuda --enable-vaapi --enable-vdpau --enable-libcdio --enable-libgsm --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-inline-asm --enable-x86asm
     swscale     configuration: --prefix=/usr/local --libdir=/usr/local/lib64 --extra-cflags='-grecord-gcc-switches -g -fPIC -I/usr/include/gsm' --disable-static --enable-shared --disable-stripping --enable-optimizations --disable-debug --enable-ffmpeg --disable-ffplay --disable-ffprobe --disable-devices --disable-htmlpages --disable-doc --enable-gpl --enable-nonfree --enable-version3 --enable-libx264 --disable-libopenh264 --enable-libfdk-aac --enable-libmp3lame --enable-runtime-cpudetect --enable-postproc --enable-bzlib --enable-swresample --disable-avresample --enable-ladspa --enable-muxers --enable-demuxers --enable-encoders --disable-encoder= --enable-decoders --disable-decoder= --enable-protocol=http --disable-libpulse --enable-pthreads --enable-pic --enable-zlib --disable-mipsdsp --disable-mipsdspr2 --disable-openssl --enable-gnutls --disable-cuda --enable-vaapi --enable-vdpau --enable-libcdio --enable-libgsm --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-inline-asm --enable-x86asm
     swresample  configuration: --prefix=/usr/local --libdir=/usr/local/lib64 --extra-cflags='-grecord-gcc-switches -g -fPIC -I/usr/include/gsm' --disable-static --enable-shared --disable-stripping --enable-optimizations --disable-debug --enable-ffmpeg --disable-ffplay --disable-ffprobe --disable-devices --disable-htmlpages --disable-doc --enable-gpl --enable-nonfree --enable-version3 --enable-libx264 --disable-libopenh264 --enable-libfdk-aac --enable-libmp3lame --enable-runtime-cpudetect --enable-postproc --enable-bzlib --enable-swresample --disable-avresample --enable-ladspa --enable-muxers --enable-demuxers --enable-encoders --disable-encoder= --enable-decoders --disable-decoder= --enable-protocol=http --disable-libpulse --enable-pthreads --enable-pic --enable-zlib --disable-mipsdsp --disable-mipsdspr2 --disable-openssl --enable-gnutls --disable-cuda --enable-vaapi --enable-vdpau --enable-libcdio --enable-libgsm --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-inline-asm --enable-x86asm
     libavutil      56. 14.100 / 56. 14.100
     libavcodec     58. 18.100 / 58. 18.100
     libavformat    58. 12.100 / 58. 12.100
     libavdevice    58.  3.100 / 58.  3.100
     libavfilter     7. 16.100 /  7. 16.100
     libswscale      5.  1.100 /  5.  1.100
     libswresample   3.  1.100 /  3.  1.100
    VFS..D h264                 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
    V..... h264_v4l2m2m         V4L2 mem2mem H.264 decoder wrapper (codec h264)

    The question is — why ? And what needs to change so that libopenh264 is consistently & correctly used ?

  • ffmpeg : Convertion to mkv with compatibility with Samsung BluRay

    25 octobre 2018, par Yehor

    I have several videos (FullHD resolution) which I want to convert to mkv format and play on my Samsung BluRay Player (model BD-J5900).
    Based on User Manual (http://media.datatail.com/docs/manual/252846_en.pdf , page 6) it supports mkv playing if codecs are :

    • Video : H.264 BP/MP/HP
    • Audio : MP3

    Thus, based on https://ffmpeg.org/ffmpeg.html the command to convert it into proper format is :

    ffmpeg -i input.avi -f matroska -vcodec libx264 -acodec mp3 output.mkv

    It converts, but file is not playable on player. It say "Video format is not supported".

    After checking info here : https://trac.ffmpeg.org/wiki/Encode/H.264 - I thought it may require some compatibility and change the command to :

    ffmpeg -i input.avi -f matroska -vcodec libx264 -profile:v baseline -level 3.0 -acodec mp3 output.mkv

    But it also didn’t help - player demonstrates the same error.

    How to fix that ?
    Thanks !

    Updated :
    Also tested following options

    ffmpeg -i input.file -f matroska -vcodec libx264 -preset veryslow -x264-params bluray_compat=1 -acodec mp3 output.mkv
    ffmpeg -i input.file -f matroska -vcodec libx264 -preset veryslow -profile:v high -level 4.2 -x264-params bluray_compat=1 -acodec mp3 output.mkv
    ffmpeg -i input.file -f matroska -vcodec libx264 -preset veryslow -profile:v baseline -level 3.0 -x264-params bluray_compat=1 -acodec mp3 output.mkv
    ffmpeg -i input.file -vcodec libx264 -vf format=yuv420p -preset veryslow -acodec mp3 output.mkv

    Also not supported.

    Updated :
    Console output for command without profile flag :

    ffmpeg version 4.0 Copyright (c) 2000-2018 the FFmpeg developers
     built with gcc 7.3.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-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
     libavutil      56. 14.100 / 56. 14.100
     libavcodec     58. 18.100 / 58. 18.100
     libavformat    58. 12.100 / 58. 12.100
     libavdevice    58.  3.100 / 58.  3.100
     libavfilter     7. 16.100 /  7. 16.100
     libswscale      5.  1.100 /  5.  1.100
     libswresample   3.  1.100 /  3.  1.100
     libpostproc    55.  1.100 / 55.  1.100
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0000019abc2aa4c0] sample aspect ratio already set to 1:1, ignoring 'pasp' atom (65536:65536)
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\Yehor\Desktop\video_conversion\input\VID_20180620_165336103.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: isommp42
       creation_time   : 2018-06-20T22:55:12.000000Z
       com.android.version: 7.0
     Duration: 00:01:34.19, start: 0.000000, bitrate: 17178 kb/s
       Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc, smpte170m), 1920x1080, 17016 kb/s, SAR 1:1 DAR 16:9, 29.97 fps, 30 tbr, 90k tbn, 180k tbc (default)
       Metadata:
         rotate          : 90
         creation_time   : 2018-06-20T22:55:12.000000Z
         handler_name    : VideoHandle
       Side data:
         displaymatrix: rotation of -90.00 degrees
       Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
       Metadata:
         creation_time   : 2018-06-20T22:55:12.000000Z
         handler_name    : SoundHandle
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
     Stream #0:1 -> #0:1 (aac (native) -> mp3 (libmp3lame))
    Press [q] to stop, [?] for help
    [libx264 @ 0000019abc348e00] using SAR=1/1time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
    [libx264 @ 0000019abc348e00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
    [libx264 @ 0000019abc348e00] profile High, level 4.0
    [libx264 @ 0000019abc348e00] 264 - core 155 r2901 7d0ff22 - 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
    Output #0, matroska, to 'C:\Users\Yehor\Desktop\video_conversion\output\VID_20180620_165336103.mkv':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: isommp42
       com.android.version: 7.0
       encoder         : Lavf58.12.100
       Stream #0:0(eng): Video: h264 (libx264) (H264 / 0x34363248), yuvj420p(pc), 1080x1920 [SAR 1:1 DAR 9:16], q=-1--1, 30 fps, 1k tbn, 30 tbc (default)
       Metadata:
         encoder         : Lavc58.18.100 libx264
         creation_time   : 2018-06-20T22:55:12.000000Z
         handler_name    : VideoHandle
       Side data:
         cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
         displaymatrix: rotation of -0.00 degrees
       Stream #0:1(eng): Audio: mp3 (libmp3lame) (U[0][0][0] / 0x0055), 48000 Hz, stereo, fltp (default)
       Metadata:
         creation_time   : 2018-06-20T22:55:12.000000Z
         handler_name    : SoundHandle
         encoder         : Lavc58.18.100 libmp3lame
    frame= 2823 fps= 15 q=-1.0 Lsize=   80210kB time=00:01:34.10 bitrate=6982.7kbits/s speed=0.492x
    video:78692kB audio:1469kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.061441%
    [libx264 @ 0000019abc348e00] frame I:14    Avg QP:21.43  size:187644
    [libx264 @ 0000019abc348e00] frame P:728   Avg QP:23.93  size: 68336
    [libx264 @ 0000019abc348e00] frame B:2081  Avg QP:27.79  size: 13553
    [libx264 @ 0000019abc348e00] consecutive B-frames:  1.3%  0.6%  2.0% 96.1%
    [libx264 @ 0000019abc348e00] mb I  I16..4:  5.7% 71.5% 22.7%
    [libx264 @ 0000019abc348e00] mb P  I16..4:  2.0%  8.8%  0.9%  P16..4: 46.2% 20.0% 12.2%  0.0%  0.0%    skip:10.1%
    [libx264 @ 0000019abc348e00] mb B  I16..4:  0.2%  0.9%  0.1%  B16..8: 45.3%  4.9%  1.0%  direct: 2.8%  skip:44.9%  L0:45.7% L1:47.3% BI: 7.0%
    [libx264 @ 0000019abc348e00] 8x8 transform intra:75.1% inter:69.7%
    [libx264 @ 0000019abc348e00] coded y,uvDC,uvAC intra: 56.8% 70.0% 15.9% inter: 18.3% 19.2% 2.4%
    [libx264 @ 0000019abc348e00] i16 v,h,dc,p: 18% 33% 15% 34%
    [libx264 @ 0000019abc348e00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 20% 24%  5%  8%  8%  8%  5%  5%
    [libx264 @ 0000019abc348e00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 19% 13%  6%  9%  9%  9%  7%  5%
    [libx264 @ 0000019abc348e00] i8c dc,h,v,p: 53% 23% 17%  7%
    [libx264 @ 0000019abc348e00] Weighted P-Frames: Y:15.7% UV:2.6%
    [libx264 @ 0000019abc348e00] ref P L0: 49.7% 11.2% 25.9% 11.3%  1.9%
    [libx264 @ 0000019abc348e00] ref B L0: 88.2%  9.2%  2.6%
    [libx264 @ 0000019abc348e00] ref B L1: 96.2%  3.8%
    [libx264 @ 0000019abc348e00] kb/s:6843.33

    Console output for command with profile flag :

    ffmpeg version 4.0 Copyright (c) 2000-2018 the FFmpeg developers
     built with gcc 7.3.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-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
     libavutil      56. 14.100 / 56. 14.100
     libavcodec     58. 18.100 / 58. 18.100
     libavformat    58. 12.100 / 58. 12.100
     libavdevice    58.  3.100 / 58.  3.100
     libavfilter     7. 16.100 /  7. 16.100
     libswscale      5.  1.100 /  5.  1.100
     libswresample   3.  1.100 /  3.  1.100
     libpostproc    55.  1.100 / 55.  1.100
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0000018124b5b080] sample aspect ratio already set to 1:1, ignoring 'pasp' atom (65536:65536)
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\Yehor\Desktop\video_conversion\input\VID_20180620_165336103.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: isommp42
       creation_time   : 2018-06-20T22:55:12.000000Z
       com.android.version: 7.0
     Duration: 00:01:34.19, start: 0.000000, bitrate: 17178 kb/s
       Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc, smpte170m), 1920x1080, 17016 kb/s, SAR 1:1 DAR 16:9, 29.97 fps, 30 tbr, 90k tbn, 180k tbc (default)
       Metadata:
         rotate          : 90
         creation_time   : 2018-06-20T22:55:12.000000Z
         handler_name    : VideoHandle
       Side data:
         displaymatrix: rotation of -90.00 degrees
       Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
       Metadata:
         creation_time   : 2018-06-20T22:55:12.000000Z
         handler_name    : SoundHandle
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
     Stream #0:1 -> #0:1 (aac (native) -> mp3 (libmp3lame))
    Press [q] to stop, [?] for help
    [libx264 @ 0000018124bf9100] using SAR=1/1time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A
    [libx264 @ 0000018124bf9100] frame MB size (68x120) > level limit (1620)
    [libx264 @ 0000018124bf9100] DPB size (1 frames, 8160 mbs) > level limit (0 frames, 8100 mbs)
    [libx264 @ 0000018124bf9100] MB rate (244800) > level limit (40500)
    [libx264 @ 0000018124bf9100] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
    [libx264 @ 0000018124bf9100] profile Constrained Baseline, level 3.0
    [libx264 @ 0000018124bf9100] 264 - core 155 r2901 7d0ff22 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=1:0:0 analyse=0x1:0x131 me=umh subme=10 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=24 chroma_me=1 trellis=2 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=60 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, matroska, to 'C:\Users\Yehor\Desktop\video_conversion\output\VID_20180620_165336103.mkv':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: isommp42
       com.android.version: 7.0
       encoder         : Lavf58.12.100
       Stream #0:0(eng): Video: h264 (libx264) (H264 / 0x34363248), yuvj420p(pc), 1080x1920 [SAR 1:1 DAR 9:16], q=-1--1, 30 fps, 1k tbn, 30 tbc (default)
       Metadata:
         encoder         : Lavc58.18.100 libx264
         creation_time   : 2018-06-20T22:55:12.000000Z
         handler_name    : VideoHandle
       Side data:
         cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
         displaymatrix: rotation of -0.00 degrees
       Stream #0:1(eng): Audio: mp3 (libmp3lame) (U[0][0][0] / 0x0055), 48000 Hz, stereo, fltp (default)
       Metadata:
         creation_time   : 2018-06-20T22:55:12.000000Z
         handler_name    : SoundHandle
         encoder         : Lavc58.18.100 libmp3lame
    frame= 2823 fps= 11 q=-1.0 Lsize=  106243kB time=00:01:34.16 bitrate=9242.5kbits/s speed=0.358x
    video:104723kB audio:1469kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.047877%
    [libx264 @ 0000018124bf9100] frame I:14    Avg QP:24.31  size:181656
    [libx264 @ 0000018124bf9100] frame P:2809  Avg QP:27.29  size: 37271
    [libx264 @ 0000018124bf9100] mb I  I16..4: 24.0%  0.0% 76.0%
    [libx264 @ 0000018124bf9100] mb P  I16..4:  2.7%  0.0%  2.0%  P16..4: 45.5% 15.6%  4.7%  0.4%  0.1%    skip:28.9%
    [libx264 @ 0000018124bf9100] coded y,uvDC,uvAC intra: 40.3% 61.3% 13.8% inter: 21.0% 20.2% 3.7%
    [libx264 @ 0000018124bf9100] i16 v,h,dc,p: 22% 30% 23% 26%
    [libx264 @ 0000018124bf9100] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 13% 15% 12%  9% 12% 12% 12%  9%  7%
    [libx264 @ 0000018124bf9100] i8c dc,h,v,p: 52% 22% 18%  8%
    [libx264 @ 0000018124bf9100] kb/s:9107.11