Recherche avancée

Médias (0)

Mot : - Tags -/content

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

Autres articles (65)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

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

  • Dash.js not playing mpd files made with ffmpeg

    31 décembre 2022, par Macster

    I'm using ffmpeg to create chunks and manifest of a webm file which I want to live stream with Dash.js. Unfortunately Dash.js won't play the mpd file, no matter which way I create the chunks and manifest. However, the sample mpd URL from Dash.js is working.

    


    Commands

    


    ffmpeg -re -r 25 -i Dash/strm.webm
-map 0:v:0
-pix_fmt yuv420p
-c:v libvpx
-s 640x480 -keyint_min 60 -g 60 -speed 6 -tile-columns 4 -frame-parallel 1 -threads 8 -static-thresh 0 -max-intra-rate 300 -deadline realtime -lag-in-frames 0 -error-resilient 1
-b:v 3000k
-f webm_chunk
-header "Dash/glass_360.hdr"
-chunk_start_index 1 Dash/glass_360_%d.chk
-map 0:a:0
-c:a libvorbis
-b:a 128k -ar 44100
-f webm_chunk
-audio_chunk_duration 2000
-header Dash/glass_171.hdr
-chunk_start_index 1 Dash/glass_171_%d.chk


//Manifest
ffmpeg
-f webm_dash_manifest -live 1
-i Dash/glass_360.hdr
-f webm_dash_manifest -live 1
-i Dash/glass_171.hdr
-c copy
-map 0 -map 1
-f webm_dash_manifest -live 1
-adaptation_sets "id=0,streams=0 id=1,streams=1"
-chunk_start_index 1
-chunk_duration_ms 2000
-time_shift_buffer_depth 7200
-minimum_update_period 7200 Dash/glass_video_manifest.mpd


    


    Manifest output

    


    ffmpeg version git-2020-05-27-8b5ffae Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 9.3.1 (GCC) 20200523
  configuration: --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-libsrt --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-libvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --disable-w32threads --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf
  libavutil      56. 49.100 / 56. 49.100
  libavcodec     58. 87.101 / 58. 87.101
  libavformat    58. 43.100 / 58. 43.100
  libavdevice    58.  9.103 / 58.  9.103
  libavfilter     7. 83.100 /  7. 83.100
  libswscale      5.  6.101 /  5.  6.101
  libswresample   3.  6.100 /  3.  6.100
  libpostproc    55.  6.100 / 55.  6.100
Input #0, webm_dash_manifest, from 'Dash/glass_360.hdr':
  Metadata:
    ENCODER         : Lavf58.43.100
  Duration: N/A, bitrate: N/A
    Stream #0:0(eng): Video: vp8, yuv420p, 640x480, SAR 1:1 DAR 4:3, 1k tbr, 1k tbn, 1k tbc (default)
    Metadata:
      ALPHA_MODE      : 1
      ENCODER         : Lavc58.87.101 libvpx
      webm_dash_manifest_file_name: glass_360.hdr
      webm_dash_manifest_track_number: 1
Input #1, webm_dash_manifest, from 'Dash/glass_171.hdr':
  Metadata:
    ENCODER         : Lavf58.43.100
  Duration: N/A, bitrate: N/A
    Stream #1:0(eng): Audio: vorbis, 44100 Hz, mono, fltp (default)
    Metadata:
      ENCODER         : Lavc58.87.101 libvorbis
      webm_dash_manifest_file_name: glass_171.hdr
      webm_dash_manifest_track_number: 1
Output #0, webm_dash_manifest, to 'Dash/glass_video_manifest.mpd':
  Metadata:
    encoder         : Lavf58.43.100
    Stream #0:0(eng): Video: vp8, yuv420p, 640x480 [SAR 1:1 DAR 4:3], q=2-31, 1k tbr, 1k tbn, 1k tbc (default)
    Metadata:
      ALPHA_MODE      : 1
      ENCODER         : Lavc58.87.101 libvpx
      webm_dash_manifest_file_name: glass_360.hdr
      webm_dash_manifest_track_number: 1
    Stream #0:1(eng): Audio: vorbis, 44100 Hz, mono, fltp (default)
    Metadata:
      ENCODER         : Lavc58.87.101 libvorbis
      webm_dash_manifest_file_name: glass_171.hdr
      webm_dash_manifest_track_number: 1
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #1:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=    0 fps=0.0 q=-1.0 Lsize=       1kB time=00:00:00.00 bitrate=N/A speed=   0x
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:4kB muxing overhead: unknown


    


    Manifest file
    (glass_video_manifest.mpd)
    
I tried to delete the ContetntComponent like suggested in other questions, but it didn't work.

    


    &lt;?xml version="1.0" encoding="UTF-8"?>&#xA;&#xA;<period start="PT0S">&#xA;<adaptationset mimetype="video/webm" codecs="vp8" lang="eng" bitstreamswitching="true" subsegmentalignment="true" subsegmentstartswithsap="1">&#xA;<contentcomponent type="video"></contentcomponent>&#xA;<segmenttemplate timescale="1000" duration="2000" media="glass_$RepresentationID$_$Number$.chk" startnumber="1" initialization="glass_$RepresentationID$.hdr"></segmenttemplate>&#xA;<representation bandwidth="1000000" width="640" height="480" codecs="vp8" mimetype="video/webm" startswithsap="1"></representation>&#xA;</adaptationset>&#xA;<adaptationset mimetype="audio/webm" codecs="vorbis" lang="eng" bitstreamswitching="true" subsegmentalignment="true" subsegmentstartswithsap="1">&#xA;<contentcomponent type="audio"></contentcomponent>&#xA;<segmenttemplate timescale="1000" duration="2000" media="glass_$RepresentationID$_$Number$.chk" startnumber="1" initialization="glass_$RepresentationID$.hdr"></segmenttemplate>&#xA;<representation bandwidth="128000" audiosamplingrate="44100" codecs="vorbis" mimetype="audio/webm" startswithsap="1"></representation>&#xA;</adaptationset>&#xA;</period>&#xA;&#xA;

    &#xA;

    Dash.js-Player

    &#xA;

    <code class="echappe-js">&lt;script&gt;&amp;#xA;&amp;#xA;(function(){&amp;#xA;  // var url = &quot;https://dash.akamaized.net/envivio/EnvivioDash3/manifest.mpd&quot;;&amp;#xA;  var url = &quot;http://localhost:8081/videos/Dash/glass_live_manifest.mpd&quot;;&amp;#xA;  var player = dashjs.MediaPlayer().create();&amp;#xA;                &amp;#xA;  // config&amp;#xA;  targetLatency = 2.0;        // Lowering this value will lower latency but may decrease the player&amp;#x27;s ability to build a stable buffer.&amp;#xA;  minDrift = 0.05;            // Minimum latency deviation allowed before activating catch-up mechanism.&amp;#xA;  catchupPlaybackRate = 0.5;  // Maximum catch-up rate, as a percentage, for low latency live streams.&amp;#xA;  stableBuffer = 2;           // The time that the internal buffer target will be set to post startup/seeks (NOT top quality).&amp;#xA;  bufferAtTopQuality = 2;     // The time that the internal buffer target will be set to once playing the top quality.&amp;#xA;&amp;#xA;   player.updateSettings({&amp;#xA;      &amp;#x27;streaming&amp;#x27;: {&amp;#xA;          &amp;#x27;liveDelay&amp;#x27;: 2,&amp;#xA;          &amp;#x27;liveCatchUpMinDrift&amp;#x27;: 0.05,&amp;#xA;          &amp;#x27;liveCatchUpPlaybackRate&amp;#x27;: 0.5,&amp;#xA;          &amp;#x27;stableBufferTime&amp;#x27;: 2,&amp;#xA;          &amp;#x27;bufferTimeAtTopQuality&amp;#x27;: 2,&amp;#xA;          &amp;#x27;bufferTimeAtTopQualityLongForm&amp;#x27;: 2,&amp;#xA;          &amp;#x27;bufferToKeep&amp;#x27;: 2,&amp;#xA;          &amp;#x27;bufferAheadToKeep&amp;#x27;: 2,&amp;#xA;          &amp;#x27;lowLatencyEnabled&amp;#x27;: true,&amp;#xA;          &amp;#x27;fastSwitchEnabled&amp;#x27;: true,&amp;#xA;          &amp;#x27;abr&amp;#x27;: {&amp;#xA;               &amp;#x27;limitBitrateByPortal&amp;#x27;: true&amp;#xA;          },&amp;#xA;       }&amp;#xA;   });&amp;#xA;&amp;#xA;   console.log(player.getSettings());&amp;#xA;&amp;#xA;   setInterval(() =&gt; {&amp;#xA;      console.log(&amp;#x27;Live latency= &amp;#x27;, player.getCurrentLiveLatency());&amp;#xA;      console.log(&amp;#x27;Buffer length= &amp;#x27;, player.getBufferLength(&amp;#x27;video&amp;#x27;));&amp;#xA;     }, 3000);&amp;#xA;&amp;#xA;     player.initialize(document.querySelector(&quot;#videoPlayer&quot;), url, true);&amp;#xA;&amp;#xA;   })();&amp;#xA;&lt;/script&gt;&#xA;

    &#xA;

    Chrome

    &#xA;

    {debug: {…}, streaming: {…}}&#xA;dash.all.min.js:2 XHR finished loading: GET "http://localhost:8081/videos/Dash/glass_live_manifest.mpd".&#xA;load @ dash.all.min.js:2&#xA;C @ dash.all.min.js:2&#xA;load @ dash.all.min.js:2&#xA;load @ dash.all.min.js:2&#xA;load @ dash.all.min.js:2&#xA;load @ dash.all.min.js:2&#xA;se @ dash.all.min.js:2&#xA;te @ dash.all.min.js:2&#xA;initialize @ dash.all.min.js:2&#xA;(anonymous) @ Dash:92&#xA;(anonymous) @ Dash:94&#xA;DevTools failed to load SourceMap: Could not parse content for http://localhost:8081/js/dash.all.min.js.map: Cannot read property &#x27;length&#x27; of undefined&#xA;Dash:88 Live latency=  NaN&#xA;Dash:89 Buffer length=  NaN&#xA;Dash:88 Live latency=  NaN&#xA;Dash:89 Buffer length=  NaN&#xA;Dash:88 Live latency=  NaN&#xA;Dash:89 Buffer length=  NaN&#xA;Dash:88 Live latency=  NaN&#xA;Dash:89 Buffer length=  NaN&#xA;Dash:88 Live latency=  NaN&#xA;Dash:89 Buffer length=  NaN&#xA;

    &#xA;

    UPDATE

    &#xA;

    Well, it seems like the problem in general was, that the mpd's wouldn't play from that /dash folder. So i took a look into the code and found a bad routing. Anyways, the mpd would't start with the given command I used, probably becasue it creates a dynamic manifest, like @Markus Schumann says. So I'm going with a new one which seems to be working for now, but not very well.

    &#xA;

    ffmpeg -y -re -i strm.webm &#xA;-c:v libx264 -x264opts "keyint=24:min-keyint=24:no-scenecut" &#xA;-r 24 -c:a aac -b:a 128k -bf 1 -b_strategy 0 -sc_threshold 0 -pix_fmt yuv420p &#xA;-map 0:v:0 -map 0:a:0 -map 0:v:0 -map 0:a:0 -map 0:v:0 -map 0:a:0 -b:v:0 250k  &#xA;-filter:v:0 "scale=-2:240" -profile:v:0 baseline -b:v:1 750k  &#xA;-filter:v:1 "scale=-2:480" -profile:v:1 main -b:v:2 1500k &#xA;-filter:v:2 "scale=-2:720" -profile:v:2 high &#xA;-use_timeline 1 -use_template 1 -window_size 5 -adaptation_sets "id=0,streams=v id=1,streams=a" &#xA;-f dash glass_video_manifest.mpd&#xA;

    &#xA;

  • ffmpeg conversion from Flac to Ogg produces corrupted files

    8 avril 2021, par experimental

    i transcoded flac files to ogg using this command

    &#xA;

    ffmpeg -i input.flac -c:a libvorbis -b:a 500k  output.ogg&#xA;

    &#xA;

    yes i use 500k to keep the highest quality possible, some of the files are ok, but some of them can not be played - Unsupported format or corrupted file says the foobar - also my icecast streamer cant read it. So there is something wrong with the files.

    &#xA;

    I believed it was due to the high bitrate so I tried

    &#xA;

    ffmpeg -i input.flac -c:a libvorbis -b:a 320k  output.ogg&#xA;

    &#xA;

    the same happened, some files were ok, some were not playable.&#xA;so I tried again with default using this command

    &#xA;

    ffmpeg -i input.flac -c:a libvorbis output.ogg&#xA;

    &#xA;

    same thing. some files were ok, some were corrupted and not playable.

    &#xA;

    i have no clue why.

    &#xA;

    both flac and ogg are in the same family, what happened during the transcoding that it became a corrupted file ?

    &#xA;

    the spectral analysis does not show anything wrong - here it the ogg https://prnt.sc/115zdjl, here is the original flac https://prnt.sc/115zegw

    &#xA;

    i am really interested what is going on and how to make it work ?

    &#xA;

    can anyone explain ?

    &#xA;

    here is complete log

    &#xA;

        C:\Users\lukas.kotatko>ffmpeg -i "\\192.168.0.128\lukas\online radio resources\Atma FM playlists\channel 1\flac lossless\Tuu\One Thousand Years\02 One Thousand Years.flac" -c:a libvorbis -b:a 500k "\\192.168.0.128\lukas\online radio resources\Atma FM playlists\channel 1\flac lossless\Tuu\One Thousand Years\02 One Thousand Years [500k test].ogg"&#xA;ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers&#xA;  built with gcc 10.2.1 (GCC) 20200726&#xA;  configuration: --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-libsrt --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-libvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libgsm --disable-w32threads --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf&#xA;  libavutil      56. 51.100 / 56. 51.100&#xA;  libavcodec     58. 91.100 / 58. 91.100&#xA;  libavformat    58. 45.100 / 58. 45.100&#xA;  libavdevice    58. 10.100 / 58. 10.100&#xA;  libavfilter     7. 85.100 /  7. 85.100&#xA;  libswscale      5.  7.100 /  5.  7.100&#xA;  libswresample   3.  7.100 /  3.  7.100&#xA;  libpostproc    55.  7.100 / 55.  7.100&#xA;Input #0, flac, from &#x27;\\192.168.0.128\lukas\online radio resources\Atma FM playlists\channel 1\flac lossless\Tuu\One Thousand Years\02 One Thousand Years.flac&#x27;:&#xA;  Metadata:&#xA;    GENRE           : Tribal / Ambient&#xA;    ORGANIZATION    : Waveform Records&#xA;    ISRC            : 01101-2&#xA;    COMMENT         : US reissue featuring the six original tracks plus two taken from the Invocation album.&#xA;    MUSICBRAINZ_RELEASEGROUPID: 737d0518-3dc2-36b3-9419-282c0ade0e50&#xA;    ORIGINALDATE    : 1993&#xA;    ORIGINALYEAR    : 1993&#xA;    RELEASETYPE     : album&#xA;    MUSICBRAINZ_ALBUMID: f6339129-f662-43a1-93df-2f20540f73cc&#xA;    ALBUM           : One Thousand Years&#xA;    BARCODE         : 789060110125&#xA;    MUSICBRAINZ_ALBUMARTISTID: e05a42e7-60a3-4d2d-983c-51dc4eb67cad&#xA;    album_artist    : Tuu&#xA;    ALBUMARTISTSORT : Tuu&#xA;    ASIN            : B00005B9TT&#xA;    SCRIPT          : Latn&#xA;    RELEASESTATUS   : official&#xA;    LABEL           : Waveform Records&#xA;    CATALOGNUMBER   : 01101-2&#xA;    RELEASECOUNTRY  : US&#xA;    DATE            : 2001-05-08&#xA;    TOTALDISCS      : 1&#xA;    disc            : 1&#xA;    TOTALTRACKS     : 8&#xA;    MEDIA           : CD&#xA;    MUSICBRAINZ_TRACKID: aef9824d-e4a6-4ae6-aebe-50a83dd14f71&#xA;    TITLE           : One Thousand Years&#xA;    MUSICBRAINZ_ARTISTID: e05a42e7-60a3-4d2d-983c-51dc4eb67cad&#xA;    ARTIST          : Tuu&#xA;    ARTISTSORT      : Tuu&#xA;    ARTISTS         : Tuu&#xA;    MUSICBRAINZ_RELEASETRACKID: 621c9da6-a85d-3f8b-b485-5e6f74a60cd0&#xA;    track           : 2&#xA;    TRACKTOTAL      : 8&#xA;    DISCTOTAL       : 1&#xA;  Duration: 00:08:03.67, start: 0.000000, bitrate: 792 kb/s&#xA;    Stream #0:0: Audio: flac, 44100 Hz, stereo, s16&#xA;    Stream #0:1: Video: mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 600x600 [SAR 1:1 DAR 1:1], 90k tbr, 90k tbn, 90k tbc (attached pic)&#xA;    Metadata:&#xA;      comment         : Cover (front)&#xA;Stream mapping:&#xA;  Stream #0:1 -> #0:0 (mjpeg (native) -> theora (libtheora))&#xA;  Stream #0:0 -> #0:1 (flac (native) -> vorbis (libvorbis))&#xA;Press [q] to stop, [?] for help&#xA;[swscaler @ 0000015307581a00] deprecated pixel format used, make sure you did set range correctly&#xA;[ogg @ 00000153073f1680] 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;Output #0, ogg, to &#x27;\\192.168.0.128\lukas\online radio resources\Atma FM playlists\channel 1\flac lossless\Tuu\One Thousand Years\02 One Thousand Years [500k test].ogg&#x27;:&#xA;  Metadata:&#xA;    GENRE           : Tribal / Ambient&#xA;    ORGANIZATION    : Waveform Records&#xA;    ISRC            : 01101-2&#xA;    COMMENT         : US reissue featuring the six original tracks plus two taken from the Invocation album.&#xA;    MUSICBRAINZ_RELEASEGROUPID: 737d0518-3dc2-36b3-9419-282c0ade0e50&#xA;    ORIGINALDATE    : 1993&#xA;    ORIGINALYEAR    : 1993&#xA;    RELEASETYPE     : album&#xA;    MUSICBRAINZ_ALBUMID: f6339129-f662-43a1-93df-2f20540f73cc&#xA;    ALBUM           : One Thousand Years&#xA;    BARCODE         : 789060110125&#xA;    MUSICBRAINZ_ALBUMARTISTID: e05a42e7-60a3-4d2d-983c-51dc4eb67cad&#xA;    album_artist    : Tuu&#xA;    ALBUMARTISTSORT : Tuu&#xA;    ASIN            : B00005B9TT&#xA;    SCRIPT          : Latn&#xA;    RELEASESTATUS   : official&#xA;    LABEL           : Waveform Records&#xA;    CATALOGNUMBER   : 01101-2&#xA;    RELEASECOUNTRY  : US&#xA;    DATE            : 2001-05-08&#xA;    TOTALDISCS      : 1&#xA;    disc            : 1&#xA;    TOTALTRACKS     : 8&#xA;    MEDIA           : CD&#xA;    MUSICBRAINZ_TRACKID: aef9824d-e4a6-4ae6-aebe-50a83dd14f71&#xA;    TITLE           : One Thousand Years&#xA;    MUSICBRAINZ_ARTISTID: e05a42e7-60a3-4d2d-983c-51dc4eb67cad&#xA;    ARTIST          : Tuu&#xA;    ARTISTSORT      : Tuu&#xA;    ARTISTS         : Tuu&#xA;    MUSICBRAINZ_RELEASETRACKID: 621c9da6-a85d-3f8b-b485-5e6f74a60cd0&#xA;    track           : 2&#xA;    TRACKTOTAL      : 8&#xA;    DISCTOTAL       : 1&#xA;    encoder         : Lavf58.45.100&#xA;    Stream #0:0: Video: theora (libtheora), yuv420p(progressive), 600x600 [SAR 1:1 DAR 1:1], q=2-31, 200 kb/s, 90k fps, 90k tbn, 90k tbc (attached pic)&#xA;    Metadata:&#xA;      DESCRIPTION     : Cover (front)&#xA;      encoder         : Lavc58.91.100 libtheora&#xA;      GENRE           : Tribal / Ambient&#xA;      ORGANIZATION    : Waveform Records&#xA;      ISRC            : 01101-2&#xA;      MUSICBRAINZ_RELEASEGROUPID: 737d0518-3dc2-36b3-9419-282c0ade0e50&#xA;      ORIGINALDATE    : 1993&#xA;      ORIGINALYEAR    : 1993&#xA;      RELEASETYPE     : album&#xA;      MUSICBRAINZ_ALBUMID: f6339129-f662-43a1-93df-2f20540f73cc&#xA;      ALBUM           : One Thousand Years&#xA;      BARCODE         : 789060110125&#xA;      MUSICBRAINZ_ALBUMARTISTID: e05a42e7-60a3-4d2d-983c-51dc4eb67cad&#xA;      ALBUMARTIST     : Tuu&#xA;      ALBUMARTISTSORT : Tuu&#xA;      ASIN            : B00005B9TT&#xA;      SCRIPT          : Latn&#xA;      RELEASESTATUS   : official&#xA;      LABEL           : Waveform Records&#xA;      CATALOGNUMBER   : 01101-2&#xA;      RELEASECOUNTRY  : US&#xA;      DATE            : 2001-05-08&#xA;      TOTALDISCS      : 1&#xA;      DISCNUMBER      : 1&#xA;      TOTALTRACKS     : 8&#xA;      MEDIA           : CD&#xA;      MUSICBRAINZ_TRACKID: aef9824d-e4a6-4ae6-aebe-50a83dd14f71&#xA;      TITLE           : One Thousand Years&#xA;      MUSICBRAINZ_ARTISTID: e05a42e7-60a3-4d2d-983c-51dc4eb67cad&#xA;      ARTIST          : Tuu&#xA;      ARTISTSORT      : Tuu&#xA;      ARTISTS         : Tuu&#xA;      MUSICBRAINZ_RELEASETRACKID: 621c9da6-a85d-3f8b-b485-5e6f74a60cd0&#xA;      TRACKNUMBER     : 2&#xA;      TRACKTOTAL      : 8&#xA;      DISCTOTAL       : 1&#xA;    Stream #0:1: Audio: vorbis (libvorbis), 44100 Hz, stereo, fltp (16 bit), 500 kb/s&#xA;    Metadata:&#xA;      encoder         : Lavc58.91.100 libvorbis&#xA;      GENRE           : Tribal / Ambient&#xA;      ORGANIZATION    : Waveform Records&#xA;      ISRC            : 01101-2&#xA;      DESCRIPTION     : US reissue featuring the six original tracks plus two taken from the Invocation album.&#xA;      MUSICBRAINZ_RELEASEGROUPID: 737d0518-3dc2-36b3-9419-282c0ade0e50&#xA;      ORIGINALDATE    : 1993&#xA;      ORIGINALYEAR    : 1993&#xA;      RELEASETYPE     : album&#xA;      MUSICBRAINZ_ALBUMID: f6339129-f662-43a1-93df-2f20540f73cc&#xA;      ALBUM           : One Thousand Years&#xA;      BARCODE         : 789060110125&#xA;      MUSICBRAINZ_ALBUMARTISTID: e05a42e7-60a3-4d2d-983c-51dc4eb67cad&#xA;      ALBUMARTIST     : Tuu&#xA;      ALBUMARTISTSORT : Tuu&#xA;      ASIN            : B00005B9TT&#xA;      SCRIPT          : Latn&#xA;      RELEASESTATUS   : official&#xA;      LABEL           : Waveform Records&#xA;      CATALOGNUMBER   : 01101-2&#xA;      RELEASECOUNTRY  : US&#xA;      DATE            : 2001-05-08&#xA;      TOTALDISCS      : 1&#xA;      DISCNUMBER      : 1&#xA;      TOTALTRACKS     : 8&#xA;      MEDIA           : CD&#xA;      MUSICBRAINZ_TRACKID: aef9824d-e4a6-4ae6-aebe-50a83dd14f71&#xA;      TITLE           : One Thousand Years&#xA;      MUSICBRAINZ_ARTISTID: e05a42e7-60a3-4d2d-983c-51dc4eb67cad&#xA;      ARTIST          : Tuu&#xA;      ARTISTSORT      : Tuu&#xA;      ARTISTS         : Tuu&#xA;      MUSICBRAINZ_RELEASETRACKID: 621c9da6-a85d-3f8b-b485-5e6f74a60cd0&#xA;      TRACKNUMBER     : 2&#xA;      TRACKTOTAL      : 8&#xA;      DISCTOTAL       : 1&#xA;frame=    1 fps=0.1 q=-0.0 Lsize=   25860kB time=00:08:03.66 bitrate= 438.0kbits/s speed=44.6x&#xA;video:8kB audio:25721kB subtitle:0kB other streams:0kB global headers:7kB muxing overhead: 0.511663%&#xA;

    &#xA;

  • Flutter FFMPEG : Error setting profile baseline

    9 avril 2021, par Raj Dhakad

    Flutter-ffmpeg unable to set profile parameter. (I need to use profile so the rendered video can be played on WhatsApp).

    &#xA;

    I am converting.bmp images into a mp4 video. Other I have tested other praramets and the work great it's only -profile:v which seems to have some problem.

    &#xA;

    Everything works fine unless I use -profile:v baseline.

    &#xA;

    void _runFFmpeg() async {&#xA;    var dir = await getApplicationDocumentsDirectory();&#xA;    var output = await getExternalStorageDirectory();&#xA;    String videoSize = &#x27;${ImageWidth}x$ImageSize&#x27;;&#xA;    print("${ImageWidth}x$ImageSize");&#xA;    var arguments = [&#xA;      "-y", // replace output file if it already exists&#xA;      "-framerate", "30", // framrate&#xA;      "-video_size", videoSize,&#xA;      "-pixel_format", "yuv420p",&#xA;      "-i", "${output.path}/frame_%d.bmp",  &#xA;      "-profile:v", "baseline",&#xA;      "-level", "3.0",&#xA;      "${output.path}/test.mp4"&#xA;    ];&#xA;    &#xA;    _flutterFFmpeg&#xA;        .executeWithArguments(arguments)&#xA;        .then((rc) => print("FFmpeg process exited with rc $rc"));&#xA; &#xA;&#xA;    print("Done Rendering");&#xA;  }&#xA;

    &#xA;

    Logs

    &#xA;

    D/flutter-ffmpeg(26672): Running FFmpeg with arguments: [-y, -framerate, 30, -video_size, 720x600, -pixel_format, yuv420p, -i, /storage/emulated/0/Android/data/com.example.test/files/frame_%d.bmp, -profile:v, baseline, -level, 3.0, /storage/emulated/0/Android/data/com.example.test/files/test.mp4].&#xA;I/mobile-ffmpeg(26672): ffmpeg version v4.4-dev-416&#xA;I/mobile-ffmpeg(26672):  Copyright (c) 2000-2020 the FFmpeg developers&#xA;I/mobile-ffmpeg(26672):&#xA;I/mobile-ffmpeg(26672):   built with Android (6454773 based on r365631c2) clang version 9.0.8 (https://android.googlesource.com/toolchain/llvm-project 98c855489587874b2a325e7a516b99d838599c6f) (based on LLVM 9.0.8svn)&#xA;I/mobile-ffmpeg(26672):   configuration: --cross-prefix=aarch64-linux-android- --sysroot=/files/android-sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/linux-x86_64/sysroot --prefix=/home/taner/Projects/mobile-ffmpeg/prebuilt/android-arm64/ffmpeg --pkg-config=/usr/bin/pkg-config --enable-version3 --arch=aarch64 --cpu=armv8-a --cc=aarch64-linux-android24-clang --cxx=aarch64-linux-android24-clang&#x2B;&#x2B; --extra-libs=&#x27;-L/home/taner/Projects/mobile-ffmpeg/prebuilt/android-arm64/cpu-features/lib -lndk_compat&#x27; --target-os=android --enable-neon --enable-asm --enable-inline-asm --enable-cross-compile --enable-pic --enable-jni --enable-optimizations --enable-swscale --enable-shared --enable-v4l2-m2m --disable-outdev=fbdev --disable-indev=fbdev --enable-small --disable-openssl --disable-xmm-clobber-test --disable-debug --enable-lto --disable-neon-clobber-test --disable-programs --disable-postproc --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-static --disable-sndio --disable-schannel --disable-securetransport --disable-xlib --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --disable-videotoolbox --disable-audiotoolbox --disable-appkit --disable-alsa --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-gmp --enable-gnutls --enable-libmp3lame --enable-libass --enable-iconv --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxml2 --enable-libopencore-amrnb --enable-libshine --enable-libspeex --enable-libwavpack --enable-libkvazaar --enable-libx264 --enable-gpl --enable-libxvid --enable-gpl --enable-libx265 --enable-gpl --enable-libvidstab --enable-gpl --enable-libilbc --enable-libopus --enable-libsnappy --enable-libsoxr --enable-libaom --enable-libtwolame --disable-sdl2 --enable-libvo-amrwbenc --enable-zlib --enable-mediacodec&#xA;I/mobile-ffmpeg(26672):   libavutil      56. 55.100 / 56. 55.100&#xA;I/mobile-ffmpeg(26672):   libavcodec     58. 96.100 / 58. 96.100&#xA;I/mobile-ffmpeg(26672):   libavformat    58. 48.100 / 58. 48.100&#xA;I/mobile-ffmpeg(26672):   libavdevice    58. 11.101 / 58. 11.101&#xA;I/mobile-ffmpeg(26672):   libavfilter     7. 87.100 /  7. 87.100&#xA;I/mobile-ffmpeg(26672):   libswscale      5.  8.100 /  5.  8.100&#xA;I/mobile-ffmpeg(26672):   libswresample   3.  8.100 /  3.  8.100&#xA;I/mobile-ffmpeg(26672): Input #0, image2, from &#x27;/storage/emulated/0/Android/data/com.example.test/files/frame_%d.bmp&#x27;:&#xA;I/mobile-ffmpeg(26672):   Duration:&#xA;I/mobile-ffmpeg(26672): 00:00:06.03&#xA;I/mobile-ffmpeg(26672): , start:&#xA;I/mobile-ffmpeg(26672): 0.000000&#xA;I/mobile-ffmpeg(26672): , bitrate:&#xA;I/mobile-ffmpeg(26672): N/A&#xA;I/mobile-ffmpeg(26672):&#xA;I/mobile-ffmpeg(26672):     Stream #0:0&#xA;I/mobile-ffmpeg(26672): : Video: bmp, yuv420p, 720x600&#xA;I/mobile-ffmpeg(26672): ,&#xA;I/mobile-ffmpeg(26672): 30 fps,&#xA;I/mobile-ffmpeg(26672): 30 tbr,&#xA;I/mobile-ffmpeg(26672): 30 tbn,&#xA;I/mobile-ffmpeg(26672): 30 tbc&#xA;I/mobile-ffmpeg(26672):&#xA;I/mobile-ffmpeg(26672): Stream mapping:&#xA;I/mobile-ffmpeg(26672):   Stream #0:0 -> #0:0&#xA;I/mobile-ffmpeg(26672):  (bmp (native) -> h264 (libx264))&#xA;I/mobile-ffmpeg(26672):&#xA;I/mobile-ffmpeg(26672): Press [q] to stop, [?] for help&#xA;W/mobile-ffmpeg(26672): [graph 0 input from stream 0:0 @ 0x7280948480] sws_param option is deprecated and ignored&#xA;E/mobile-ffmpeg(26672): [libx264 @ 0x7291ba8100] Error setting profile baseline.&#xA;I/mobile-ffmpeg(26672): [libx264 @ 0x7291ba8100] Possible profiles:&#xA;I/mobile-ffmpeg(26672): [libx264 @ 0x7291ba8100]  baseline&#xA;I/mobile-ffmpeg(26672): [libx264 @ 0x7291ba8100]  main&#xA;I/mobile-ffmpeg(26672): [libx264 @ 0x7291ba8100]  high&#xA;I/mobile-ffmpeg(26672): [libx264 @ 0x7291ba8100]  high10&#xA;I/mobile-ffmpeg(26672): [libx264 @ 0x7291ba8100]  high422&#xA;I/mobile-ffmpeg(26672): [libx264 @ 0x7291ba8100]  high444&#xA;I/mobile-ffmpeg(26672): [libx264 @ 0x7291ba8100]&#xA;E/mobile-ffmpeg(26672): Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height&#xA;I/mobile-ffmpeg(26672): Conversion failed!&#xA;D/flutter-ffmpeg(26672): FFmpeg exited with rc: 1&#xA;E/UIFirst (26672): failed to open /proc/26672/stuck_info, No such file or directory&#xA;I/chatty  (26672): uid=12724(com.example.test) identical 2 lines&#xA;3&#xA;E/UIFirst (26672): failed to open /proc/26672/stuck_info, No such file or directory&#xA;I/chatty  (26672): uid=12724(com.example.test) identical 1 line&#xA;E/UIFirst (26672): failed to open /proc/26672/stuck_info, No such file or directory&#xA;

    &#xA;

    Flutter doctor -v

    &#xA;

    [√] Flutter (Channel stable, 2.0.1, on Microsoft Windows [Version 10.0.18362.836], locale en-US)&#xA;    • Flutter version 2.0.1 at C:\Users\Dell\flutter&#xA;    • Framework revision c5a4b4029c (5 weeks ago), 2021-03-04 09:47:48 -0800&#xA;    • Engine revision 40441def69&#xA;    • Dart version 2.12.0&#xA;[√] Android toolchain - develop for Android devices (Android SDK version 29.0.3)&#xA;    • Android SDK at C:\Users\Dell\AppData\Local\Android\sdk&#xA;    • Platform android-30, build-tools 29.0.3&#xA;    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java&#xA;    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)&#xA;    • All Android licenses accepted.&#xA;[√] Chrome - develop for the web&#xA;    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe&#xA;[√] Android Studio (version 3.6)&#xA;    • Android Studio at C:\Program Files\Android\Android Studio&#xA;    • Flutter plugin version 45.1.1&#xA;    • Dart plugin version 192.7761&#xA;    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)&#xA;[√] VS Code (version 1.55.0)&#xA;    • VS Code at C:\Users\Dell\AppData\Local\Programs\Microsoft VS Code&#xA;    • Flutter extension version 3.21.0&#xA;[√] Connected device (2 available)&#xA;    • RMX1801 (mobile) • 8843cc23 • android-arm64  • Android 10 (API 29)&#xA;    • Chrome (web)     • chrome   • web-javascript • Google Chrome 89.0.4389.114&#xA;• No issues found!&#xA;

    &#xA;

    I also have tried changing package to min-gpl, https-gpl and video but no change.

    &#xA;