Recherche avancée

Médias (1)

Mot : - Tags -/musée

Autres articles (106)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (7295)

  • Using FFMPEG with Xvfb, Can't get a smooth video output

    13 juillet 2020, par Emax

    I'm trying to stream to twitch from a linux server, I've installed Xvfb and FFMPEG, the live starts fine, but I can't get a smooth video output.

    


    Setps :

    


    Xvfb :1 -screen 0 1920x1080x24 &amp;&#xA;export DISPLAY=:1&#xA;&#xA;&#xA;ffmpeg -probesize 60M -video_size "1920x1080" -framerate 60 -f x11grab -i :1.0 -f flv -ac 2 -crf 23 \&#xA;       -vcodec libx264 -g 120 -b:v 3000k -minrate 3000k -maxrate 3000k -pix_fmt yuv420p\&#xA;       -s "1920x1080" -preset veryfast -tune zerolatency -acodec libmp3lame -threads 4 -strict normal \&#xA;       -bufsize 12000k "rtmp://live-mil.twitch.tv/app/<key>"&#xA;</key>

    &#xA;

    I'm 100% sure that the app I'm trying to record output 60fps

    &#xA;

    Also the FFMPEG output is

    &#xA;

    ffmpeg version 4.1.6-1~deb10u1 Copyright (c) 2000-2020 the FFmpeg developers&#xA;  built with gcc 8 (Debian 8.3.0-6)&#xA;  configuration: --prefix=/usr --extra-version=&#x27;1~deb10u1&#x27; --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared&#xA;  libavutil      56. 22.100 / 56. 22.100&#xA;  libavcodec     58. 35.100 / 58. 35.100&#xA;  libavformat    58. 20.100 / 58. 20.100&#xA;  libavdevice    58.  5.100 / 58.  5.100&#xA;  libavfilter     7. 40.101 /  7. 40.101&#xA;  libavresample   4.  0.  0 /  4.  0.  0&#xA;  libswscale      5.  3.100 /  5.  3.100&#xA;  libswresample   3.  3.100 /  3.  3.100&#xA;  libpostproc    55.  3.100 / 55.  3.100&#xA;Input #0, x11grab, from &#x27;:1.0&#x27;:&#xA;  Duration: N/A, start: 1594669358.267783, bitrate: N/A&#xA;    Stream #0:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 1920x1080, 60 fps, 59.94 tbr, 1000k tbn, 1000k tbc&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))&#xA;Press [q] to stop, [?] for help&#xA;[libx264 @ 0x55a2b7e28ec0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2&#xA;[libx264 @ 0x55a2b7e28ec0] profile High, level 4.2&#xA;[libx264 @ 0x55a2b7e28ec0] 264 - core 155 r2917 0a84d98 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=4 lookahead_threads=4 sliced_threads=1 slices=4 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=1 keyint=120 keyint_min=12 scenecut=40 intra_refresh=0 rc_lookahead=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=3000 vbv_bufsize=12000 crf_max=0.0 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00&#xA;Output #0, flv, to &#x27;rtmp://live.twitch.tv/app/<key>&#x27;:&#xA;  Metadata:&#xA;    encoder         : Lavf58.20.100&#xA;    Stream #0:0: Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p, 1920x1080, q=-1--1, 3000 kb/s, 60 fps, 1k tbn, 60 tbc&#xA;    Metadata:&#xA;      encoder         : Lavc58.35.100 libx264&#xA;    Side data:&#xA;      cpb: bitrate max/min/avg: 3000000/0/3000000 buffer size: 12000000 vbv_delay: -1&#xA;frame=  436 fps= 61 q=22.0 size=     287kB time=00:00:08.73 bitrate= 269.1kbits/s dup=0 drop=0 speed=1.22x&#xA;</key>

    &#xA;

    I've also tryed to output the recording to an mp4 video file but I got the same result : a laggy video, It's like ffmpeg is recording the input at a lower framerate than 60, how can I fix this ?

    &#xA;

  • Flutter streaming with FFmpeg_flutter_kit not reaching server

    22 juillet 2024, par Julio Cesar Reis

    I'm trying to stream my flutter screen to youtube using FFmpeg flutter kit. Everything seems fine but the output never reaches youtube server.

    &#xA;

      &#xA;
    1. log in using Yt flutter package.

      &#xA;

    2. &#xA;

    3. create a broadcast

      &#xA;

    4. &#xA;

    5. create the livestream and bind it to the broadcast

      &#xA;

    6. &#xA;

    7. get the ingestion address through LiveStreamItem.cdn.ingestionInfo.ingestionAddress

      &#xA;

    8. &#xA;

    9. stream the frames saved through FFmpeg :

      &#xA;

      final String rtmpUrl = "ls.cdn.ingestionInfo.ingestionAddress"

      &#xA;

      final String command = &#x27;-re -i $framePath -c:v libx264 -f flv $rtmpUrl&#x27;;

      &#xA;

      await FFmpegKit.execute(command);

      &#xA;

    10. &#xA;

    &#xA;

    But at the end I get errors like SESSION_NOT_FOUND, or the stream never reaches the server which keeps my broadcast as ready and not active so I can't go live.

    &#xA;

    I've tried using the ingestionAddress plus the streamName separated by a slash, I've tried the direct stream using rtmp ://x.rtmp.youtube.com/live2/MY_API_KEY but none of that worked.

    &#xA;

    ERROR LOG :

    &#xA;

    &#xA;

    I/flutter (19889) : ffmpeg version n6.0 I/flutter (19889) : Copyright&#xA;(c) 2000-2023 the FFmpeg developers I/flutter (19889) : I/flutter&#xA;(19889) : built with Android (7155654, based on r399163b1) clang&#xA;version 11.0.5&#xA;(https://android.googlesource.com/toolchain/llvm-project&#xA;87f1315dfbea7c137aa2e6d362dbb457e388158d) I/flutter (19889) :
    &#xA;configuration : —cross-prefix=aarch64-linux-android-&#xA;—sysroot=/Users/sue/Library/Android/sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/darwin-x86_64/sysroot&#xA;—prefix=/Users/sue/Projects/arthenica/ffmpeg-kit/prebuilt/android-arm64/ffmpeg&#xA;—pkg-config=/opt/homebrew/bin/pkg-config —enable-version3 —arch=aarch64 —cpu=armv8-a —target-os=android —enable-neon —enable-asm —enable-inline-asm —ar=aarch64-linux-android-ar —cc=aarch64-linux-android24-clang —cxx=aarch64-linux-android24-clang++ —ranlib=aarch64-linux-android-ranlib —strip=aarch64-linux-android-strip —nm=aarch64-linux-android-nm —extra-libs='-L/Users/sue/Projects/arthenica/ffmpeg-kit/prebuilt/android-arm64/cpu-features/lib&#xA;-lndk_compat' —disable-autodetect —enable-cross-compile —enable-pic —enable-jni —enable-optimizations —enable-swscale —disable-static —enable-shared —enable-pthreads —enable-v4l2-m2m —disable-outdev=fbdev —disable-indev=fbdev —enable-small —disable-xmm-clobber-test —disable-debug —enable-lto —disable-neon I/flutter (19889) : libavutil 58. 2.100 / 58. 2.100 I/flutter&#xA;(19889) : libavcodec 60. 3.100 / 60. 3.100 I/flutter (19889) :
    &#xA;libavformat 60. 3.100 / 60. 3.100 I/flutter (19889) :
    &#xA;libavdevice 60. 1.100 / 60. 1.100 I/flutter (19889) :
    &#xA;libavfilter 9. 3.100 / 9. 3.100 I/flutter (19889) : libswscale&#xA;7. 1.100 / 7. 1.100 I/flutter (19889) : libswresample 4. 10.100 / 4. 10.100 I/flutter (19889) : Input #0, png_pipe, from&#xA;'/data/user/0/com.example.poc_stream/cache/frame.png' : I/flutter&#xA;(19889) : Duration : I/flutter (19889) : N/A I/flutter (19889) : ,&#xA;bitrate : I/flutter (19889) : N/A I/flutter (19889) : I/flutter&#xA;(19889) : Stream #0:0 I/flutter (19889) : : Video : png, rgba(pc),&#xA;412x771 I/flutter (19889) : , I/flutter (19889) : 25 fps, I/flutter&#xA;(19889) : 25 tbr, I/flutter (19889) : 25 tbn I/flutter (19889) :&#xA;E/flutter (19889) : [ERROR:flutter/runtime/dart_vm_initializer.cc(41)]&#xA;Unhandled Exception : PlatformException(SESSION_NOT_FOUND, Session not&#xA;found., null, null) E/flutter (19889) : #0
    &#xA;StandardMethodCodec.decodeEnvelope&#xA;(package:flutter/src/services/message_codecs.dart:648:7) E/flutter&#xA;(19889) : #1 MethodChannel._invokeMethod&#xA;(package:flutter/src/services/platform_channel.dart:334:18) E/flutter&#xA;(19889) : E/flutter (19889) : #2
    &#xA;FFmpegKitFactory.mapToNullableSession&#xA;(package:ffmpeg_kit_flutter_min_gpl/src/ffmpeg_kit_factory.dart:76:3)&#xA;E/flutter (19889) : E/flutter (19889) : #3
    &#xA;FFmpegKitInitializer._processCompleteCallbackEvent.&#xA;(package:ffmpeg_kit_flutter_min_gpl/src/ffmpeg_kit_flutter_initializer.dart:213:48)&#xA;E/flutter (19889) : E/flutter (19889) :&#xA;I/flutter (19889) : Stream mapping : I/flutter (19889) : Stream #0:0 ->&#xA;#0:0 I/flutter (19889) : (png (native) -> h264 (libx264)) I/flutter (19889) : I/flutter (19889) : Press [q] to stop, [?] for help I/flutter&#xA;(19889) : [libx264 @ 0xb40000736398c190] using cpu capabilities : ARMv8&#xA;NEON I/flutter (19889) : [libx264 @ 0xb400007363a92e40] using cpu&#xA;capabilities : ARMv8 NEON I/flutter (19889) : [libx264 @&#xA;0xb40000736398c190] profile High 4:4:4 Predictive, level 3.0, 4:4:4,&#xA;8-bit I/flutter (19889) : [libx264 @ 0xb40000736398c190] 264 - core 164

    &#xA;

      &#xA;
    • H.264/MPEG-4 AVC codec - Copyleft 2003-2023 - http://www.videolan.org/x264.html - options : cabac=1 ref=3&#xA;deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00&#xA;mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0&#xA;deadzone=21,11 fast_pskip=1 chroma_qp_offset=4 threads=6&#xA;lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0&#xA;bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1&#xA;b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250&#xA;keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf&#xA;mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40&#xA;aq=1:1.00 I/flutter (19889) : Output #0, flv, to&#xA;'rtmp ://x.rtmp.youtube.com/live2/x7k6-grm1-z15w-tqb7-akrt' : I/flutter&#xA;(19889) : Metadata : I/flutter (19889) : encoder :&#xA;I/flutter (19889) : Lavf60.3.100 I/flutter (19889) : I/flutter (19889) :&#xA;Stream #0:0 I/flutter (19889) : : Video : h264 ([7][0][0][0] / 0x0007),&#xA;yuv444p(tv, unknown/bt709/iec61966-2-1, progressive), 412x771, q=2-31&#xA;I/flutter (19889) : , I/flutter (19889) : 25 fps, I/flutter (19889) :&#xA;1k tbn I/flutter (19889) : I/flutter (19889) : Metadata : I/flutter&#xA;(19889) : encoder : I/flutter (19889) : Lavc60.3.100&#xA;libx264 I/flutter (19889) : I/flutter (19889) : Side data :&#xA;I/flutter (19889) : I/flutter (19889) : cpb : I/flutter (19889) :&#xA;bitrate max/min/avg : 0/0/0 buffer size : 0 I/flutter (19889) :&#xA;vbv_delay : N/A I/flutter (19889) : I/flutter (19889) : Instance of&#xA;'Statistics' I/flutter (19889) : frame= 0 fps=0.0 q=0.0 size=
      &#xA;0kB time=N/A bitrate=N/A speed=N/A I/flutter (19889) : [libx264 @&#xA;0xb400007363a92e40] profile High 4:4:4 Predictive, level 3.0, 4:4:4,&#xA;8-bit I/flutter (19889) : [libx264 @ 0xb400007363a92e40] 264 - core 164
    • &#xA;

    • H.264/MPEG-4 AVC codec - Copyleft 2003-2023 - http://www.videolan.org/x264.html - options : cabac=1 ref=3&#xA;deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00&#xA;mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0&#xA;deadzone=21,11 fast_pskip=1 chroma_qp_offset=4 threads=6&#xA;lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0&#xA;bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1&#xA;b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250&#xA;keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf&#xA;mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40&#xA;aq=1:1.00 I/flutter (19889) : Output #0, flv, to&#xA;'rtmp ://x.rtmp.youtube.com/live2/x7k6-grm1-z15w-tqb7-akrt' : I/flutter&#xA;(19889) : Metadata : I/flutter (19889) : encoder :&#xA;I/flutter (19889) : Lavf60.3.100 I/flutter (19889) : I/flutter (19889) :&#xA;Stream #0:0 I/flutter (19889) : : Video : h264 ([7][0][0][0] / 0x0007),&#xA;yuv444p(tv, unknown/bt709/iec61966-2-1, progressive), 412x771, q=2-31&#xA;I/flutter (19889) : , I/flutter (19889) : 25 fps, I/flutter (19889) :&#xA;1k tbn I/flutter (19889) : I/flutter (19889) : Metadata : I/flutter&#xA;(19889) : encoder : I/flutter (19889) : Lavc60.3.100&#xA;libx264 I/flutter (19889) : I/flutter (19889) : Side data :&#xA;I/flutter (19889) : I/flutter (19889) : cpb : I/flutter (19889) :&#xA;bitrate max/min/avg : 0/0/0 buffer size : 0 I/flutter (19889) :&#xA;vbv_delay : N/A I/flutter (19889) : I/flutter (19889) : Instance of&#xA;'Statistics' I/flutter (19889) : frame= 0 fps=0.0 q=0.0 size=
      &#xA;0kB time=N/A bitrate=N/A speed=N/A I/flutter (19889) : [flv @&#xA;0xb4000074238c1c30] Failed to update header with correct duration.&#xA;I/flutter (19889) : [flv @ 0xb4000074238c1c30] Failed to update header&#xA;with correct filesize. I/flutter (19889) : Instance of 'Statistics'&#xA;I/flutter (19889) : frame= 1 fps=0.0 q=28.0 Lsize= 4kB&#xA;time=00:00:00.00 bitrate=N/A speed= 0x I/flutter (19889) :&#xA;video:4kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB&#xA;muxing overhead : I/flutter (19889) : 8.895621% I/flutter (19889) :&#xA;I/flutter (19889) : [libx264 @ 0xb40000736398c190] frame I:1 Avg&#xA;QP:14.17 size : 2957 I/flutter (19889) : [libx264 @&#xA;0xb40000736398c190] mb I I16..4 : 1.4% 93.3% 5.3% I/flutter (19889) :&#xA;[libx264 @ 0xb40000736398c190] 8x8 transform intra:93.3% I/flutter&#xA;(19889) : [libx264 @ 0xb40000736398c190] coded y,u,v intra : 3.4% 1.4%&#xA;1.7% I/flutter (19889) : [libx264 @ 0xb40000736398c190] i16 v,h,dc,p : 78% 17% 6% 0% I/flutter (19889) : [libx264 @ 0xb40000736398c190] i8&#xA;v,h,dc,ddl,ddr,vr,hd,vl,hu : 36% 0% 64% 0% 0% 0% 0% 0% 0%&#xA;I/flutter (19889) : [libx264 @ 0xb40000736398c190] i4&#xA;v,h,dc,ddl,ddr,vr,hd,vl,hu : 49% 21% 14% 1% 3% 4% 3% 2% 3%&#xA;I/flutter (19889) : [libx264 @ 0xb40000736398c190] kb/s:591.40&#xA;I/flutter (19889) : ffmpeg version n6.0 I/flutter (19889) : Copyright&#xA;(c) 2000-2023 the FFmpeg developers I/flutter (19889) : I/flutter&#xA;(19889) : built with Android (7155654, based on r399163b1) clang&#xA;version 11.0.5&#xA;(https://android.googlesource.com/toolchain/llvm-project 87f1315dfbea7c137aa2e6d362dbb457e388158d) I/flutter (19889) :
      &#xA;configuration : —cross-prefix=aarch64-linux-android-&#xA;—sysroot=/Users/sue/Library/Android/sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/darwin-x86_64/sysroot&#xA;—prefix=/Users/sue/Projects/arthenica/ffmpeg-kit/prebuilt/android-arm64/ffmpeg&#xA;—pkg-config=/opt/homebrew/bin/pkg-config —enable-version3 —arch=aarch64 —cpu=armv8-a —target-os=android —enable-neon —enable-asm —enable-inline-asm —ar=aarch64-linux-android-ar —cc=aarch64-linux-android24-clang —cxx=aarch64-linux-android24-clang++ —ranlib=aarch64-linux-android-ranlib —strip=aarch64-linux-android-strip —nm=aarch64-linux-android-nm —extra-libs='-L/Users/sue/Projects/arthenica/ffmpeg-kit/prebuilt/android-arm64/cpu-features/lib&#xA;-lndk_compat' —disable-autodetect —enable-cross-compile —enable-pic —enable-jni —enable-optimizations —enable-swscale —disable-static —enable-shared —enable-pthreads —enable-v4l2-m2m —disable-outdev=fbdev —disable-indev=fbdev —enable-small —disable-xmm-clobber-test —disable-debug —enable-lto —disable-neon I/flutter (19889) : libavutil 58. 2.100 / 58. 2.100 I/flutter&#xA;(19889) : libavcodec 60. 3.100 / 60. 3.100 I/flutter (19889) :
      &#xA;libavformat 60. 3.100 / 60. 3.100 I/flutter (19889) :
      &#xA;libavdevice 60. 1.100 / 60. 1.100 I/flutter (19889) :
      &#xA;libavfilter 9. 3.100 / 9. 3.100 I/flutter (19889) : libswscale
    • &#xA;

    &#xA;

      &#xA;
    1. 1.100 / 7. 1.100 I/flutter (19889) : libswresample 4. 10.100 / 4. 10.100 I/flutter (19889) : [flv @ 0xb4000074238dac30] Failed to&#xA;update header with correct duration. I/flutter (19889) : [flv @&#xA;0xb4000074238dac30] Failed to update header with correct filesize.&#xA;I/flutter (19889) : Instance of 'Statistics' I/flutter (19889) : frame=&#xA;1 fps=0.0 q=28.0 Lsize= 4kB time=00:00:00.00 bitrate=N/A speed=&#xA;0x I/flutter (19889) : video:4kB audio:0kB subtitle:0kB other&#xA;streams:0kB global headers:0kB muxing overhead : I/flutter (19889) :&#xA;8.895621% I/flutter (19889) : I/flutter (19889) : Input #0, png_pipe, from '/data/user/0/com.example.poc_stream/cache/frame.png' : I/flutter&#xA;(19889) : Duration : I/flutter (19889) : N/A I/flutter (19889) : ,&#xA;bitrate : I/flutter (19889) : N/A I/flutter (19889) : I/flutter&#xA;(19889) : Stream #0:0 I/flutter (19889) : : Video : png, rgba(pc),&#xA;412x771 I/flutter (19889) : , I/flutter (19889) : 25 fps, I/flutter&#xA;(19889) : 25 tbr, I/flutter (19889) : 25 tbn I/flutter (19889) :&#xA;I/flutter (19889) : [libx264 @ 0xb400007363a92e40] frame I:1 Avg&#xA;QP:14.17 size : 2957 I/flutter (19889) : [libx264 @&#xA;0xb400007363a92e40] mb I I16..4 : 1.4% 93.3% 5.3% I/flutter (19889) :&#xA;[libx264 @ 0xb400007363a92e40] 8x8 transform intra:93.3% I/flutter&#xA;(19889) : [libx264 @ 0xb400007363a92e40] coded y,u,v intra : 3.4% 1.4%&#xA;1.7% I/flutter (19889) : [libx264 @ 0xb400007363a92e40] i16 v,h,dc,p : 78% 17% 6% 0% I/flutter (19889) : [libx264 @ 0xb400007363a92e40] i8&#xA;v,h,dc,ddl,ddr,vr,hd,vl,hu : 36% 0% 64% 0% 0% 0% 0% 0% 0%&#xA;I/flutter (19889) : [libx264 @ 0xb400007363a92e40] i4&#xA;v,h,dc,ddl,ddr,vr,hd,vl,hu : 49% 21% 14% 1% 3% 4% 3% 2% 3%&#xA;I/flutter (19889) : [libx264 @ 0xb400007363a92e40] kb/s:591.40&#xA;I/flutter (19889) : ffmpeg version n6.0 I/flutter (19889) : Copyright&#xA;(c) 2000-2023 the FFmpeg developers I/flutter (19889) : I/flutter&#xA;(19889) : built with Android (7155654, based on r399163b1) clang&#xA;version 11.0.5&#xA;(https://android.googlesource.com/toolchain/llvm-project&#xA;87f1315dfbea7c137aa2e6d362dbb457e388158d) I/flutter (19889) :
      &#xA;configuration : —cross-prefix=aarch64-linux-android-&#xA;—sysroot=/Users/sue/Library/Android/sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/darwin-x86_64/sysroot&#xA;—prefix=/Users/sue/Projects/arthenica/ffmpeg-kit/prebuilt/android-arm64/ffmpeg&#xA;—pkg-config=/opt/homebrew/bin/pkg-config —enable-version3 —arch=aarch64 —cpu=armv8-a —target-os=android —enable-neon —enable-asm —enable-inline-asm —ar=aarch64-linux-android-ar —cc=aarch64-linux-android24-clang —cxx=aarch64-linux-android24-clang++ —ranlib=aarch64-linux-android-ranlib —strip=aarch64-linux-android-strip —nm=aarch64-linux-android-nm —extra-libs='-L/Users/sue/Projects/arthenica/ffmpeg-kit/prebuilt/android-arm64/cpu-features/lib&#xA;-lndk_compat' —disable-autodetect —enable-cross-compile —enable-pic —enable-jni —enable-optimizations —enable-swscale —disable-static —enable-shared —enable-pthreads —enable-v4l2-m2m —disable-outdev=fbdev —disable-indev=fbdev —enable-small —disable-xmm-clobber-test —disable-debug —enable-lto —disable-neon I/flutter (19889) : libavutil 58. 2.100 / 58. 2.100 I/flutter&#xA;(19889) : libavcodec 60. 3.100 / 60. 3.100 I/flutter (19889) :
      &#xA;libavformat 60. 3.100 / 60. 3.100 I/flutter (19889) :
      &#xA;libavdevice 60. 1.100 / 60. 1.100 I/flutter (19889) :
      &#xA;libavfilter 9. 3.100 / 9. 3.100 I/flutter (19889) : libswscale
    2. &#xA;

    3. 1.100 / 7. 1.100 I/flutter (19889) : libswresample 4. 10.100 / 4. 10.100 I/flutter (19889) : Input #0, png_pipe, from&#xA;'/data/user/0/com.example.poc_stream/cache/frame.png' : E/flutter&#xA;(19889) : [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled&#xA;Exception : PlatformException(SESSION_NOT_FOUND, Session not found.,&#xA;null, null) E/flutter (19889) : #0
      &#xA;StandardMethodCodec.decodeEnvelope&#xA;(package:flutter/src/services/message_codecs.dart:648:7) E/flutter&#xA;(19889) : #1 MethodChannel._invokeMethod&#xA;(package:flutter/src/services/platform_channel.dart:334:18) E/flutter&#xA;(19889) : E/flutter (19889) : #2
      &#xA;FFmpegKitFactory.mapToNullableSession&#xA;(package:ffmpeg_kit_flutter_min_gpl/src/ffmpeg_kit_factory.dart:76:3)&#xA;E/flutter (19889) : E/flutter (19889) : #3
      &#xA;FFmpegKitInitializer._processCompleteCallbackEvent.&#xA;(package:ffmpeg_kit_flutter_min_gpl/src/ffmpeg_kit_flutter_initializer.dart:213:48)&#xA;E/flutter (19889) : E/flutter (19889) :&#xA;I/flutter (19889) : Duration : I/flutter (19889) : N/A I/flutter&#xA;(19889) : , bitrate : I/flutter (19889) : N/A I/flutter (19889) :&#xA;I/flutter (19889) : Stream #0:0 I/flutter (19889) : : Video : png,&#xA;rgba(pc), 412x771 I/flutter (19889) : , I/flutter (19889) : 25 fps,&#xA;I/flutter (19889) : 25 tbr, I/flutter (19889) : 25 tbn I/flutter&#xA;(19889) : E/flutter (19889) :&#xA;[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled&#xA;Exception : PlatformException(SESSION_NOT_FOUND, Session not found.,&#xA;null, null) E/flutter (19889) : #0
      &#xA;StandardMethodCodec.decodeEnvelope&#xA;(package:flutter/src/services/message_codecs.dart:648:7) E/flutter&#xA;(19889) : #1 MethodChannel._invokeMethod&#xA;(package:flutter/src/services/platform_channel.dart:334:18) E/flutter&#xA;(19889) : E/flutter (19889) : #2
      &#xA;FFmpegKitFactory.mapToNullableSession&#xA;(package:ffmpeg_kit_flutter_min_gpl/src/ffmpeg_kit_factory.dart:76:3)&#xA;E/flutter (19889) : E/flutter (19889) : #3
      &#xA;FFmpegKitInitializer._processCompleteCallbackEvent.&#xA;(package:ffmpeg_kit_flutter_min_gpl/src/ffmpeg_kit_flutter_initializer.dart:213:48)&#xA;E/flutter (19889) : E/flutter (19889) :&#xA;I/flutter (19889) : yzsFZWrI_Iw I/flutter (19889) : currentBc :&#xA;yzsFZWrI_Iw I/flutter (19889) : Stream mapping : I/flutter (19889) :
      &#xA;Stream #0:0 -> #0:0 I/flutter (19889) : (png (native) -> h264&#xA;(libx264)) I/flutter (19889) : I/flutter (19889) : Press [q] to stop,&#xA;[?] for help I/flutter (19889) : Stream mapping : I/flutter (19889) :
      &#xA;Stream #0:0 -> #0:0 I/flutter (19889) : (png (native) -> h264&#xA;(libx264)) I/flutter (19889) : I/flutter (19889) : Press [q] to stop,&#xA;[?] for help I/flutter (19889) : [libx264 @ 0xb4000073639665d0] using&#xA;cpu capabilities : ARMv8 NEON I/flutter (19889) : [libx264 @&#xA;0xb4000073639665d0] profile High 4:4:4 Predictive, level 3.0, 4:4:4,&#xA;8-bit I/flutter (19889) : [libx264 @ 0xb4000073639665d0] 264 - core 164
    4. &#xA;

    &#xA;

      &#xA;
    • H.264/MPEG-4 AVC codec - Copyleft 2003-2023 - http://www.videolan.org/x264.html - options : cabac=1 ref=3&#xA;deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00&#xA;mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0&#xA;deadzone=21,11 fast_pskip=1 chroma_qp_offset=4 threads=6&#xA;lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0&#xA;bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1&#xA;b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250&#xA;keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf&#xA;mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40&#xA;aq=1:1.00 I/flutter (19889) : Output #0, flv, to&#xA;'rtmp ://x.rtmp.youtube.com/live2/x7k6-grm1-z15w-tqb7-akrt' : I/flutter&#xA;(19889) : Metadata : I/flutter (19889) : encoder :&#xA;I/flutter (19889) : Lavf60.3.100 I/flutter (19889) : I/flutter (19889) :&#xA;Stream #0:0 I/flutter (19889) : : Video : h264 ([7][0][0][0] / 0x0007),&#xA;yuv444p(tv, unknown/bt709/iec61966-2-1, progressive), 412x771, q=2-31&#xA;I/flutter (19889) : , I/flutter (19889) : 25 fps, I/flutter (19889) :&#xA;1k tbn I/flutter (19889) : I/flutter (19889) : Metadata : I/flutter&#xA;(19889) : encoder : I/flutter (19889) : Lavc60.3.100&#xA;libx264 I/flutter (19889) :
    • &#xA;

    &#xA;

    &#xA;

  • Error using ffmpeg image2pipe with phantomjs to render video from webpage screenshots

    14 novembre 2016, par user1690179

    I am trying to use phantomjs with ffmpeg to complie videos from screenshots of a webpage as described here :
    https://groups.google.com/forum/# !msg/phantomjs/wluVGGjhL90/oGBXqh7QP44J

    I have the following test.js file :

    var page = require('webpage').create();

    page.clipRect = { top: 0, left: 0, width: 900, height: 800};
    page.viewportSize = { width: 900, height: 800};

    var url = 'http://dl.dropbox.com/u/621993/voronoi/voronoi.html';
    var frames = 100;

    page.open(url, function(){
       setInterval(function(){
           page.render('/dev/stdout');

           if( frames == 0 ){
               phantom.exit();
           }

           frames--;

       }, 100);
    });

    Then I run this command, taken from the link above :

    $ phantomjs test.js |ffmpeg -c:v png -f image2pipe -r 10 -sameq -i - -y test.mp4

    Including -sameq causes an error in ffmpeg, so I took it out and ran :

    $ phantomjs test.js |ffmpeg -c:v png -f image2pipe -r 10 -i - -y test.mp4

    I get the following output from ffmpeg :

    ffmpeg version 2.0 Copyright (c) 2000-2013 the FFmpeg developers
     built on Jul 22 2013 09:14:18 with llvm-gcc 4.2.1 (LLVM build 2336.11.00)
     configuration: --prefix=/Volumes/Ramdisk/sw --enable-gpl --enable-pthreads --enable-version3 --enable-libspeex --enable-libvpx --disable-decoder=libvpx --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-avfilter --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-filters --enable-libgsm --arch=x86_64 --enable-runtime-cpudetect
     libavutil      52. 38.100 / 52. 38.100
     libavcodec     55. 18.102 / 55. 18.102
     libavformat    55. 12.100 / 55. 12.100
     libavdevice    55.  3.100 / 55.  3.100
     libavfilter     3. 79.101 /  3. 79.101
     libswscale      2.  3.100 /  2.  3.100
     libswresample   0. 17.102 /  0. 17.102
     libpostproc    52.  3.100 / 52.  3.100
    Input #0, image2pipe, from 'pipe:':
     Duration: N/A, bitrate: N/A
       Stream #0:0: Video: png, rgba, 900x800 [SAR 2835:2835 DAR 9:8], 10 fps, 10 tbr, 10 tbn, 10 tbc
    No pixel format specified, yuv444p for H.264 encoding chosen.
    Use -pix_fmt yuv420p for compatibility with outdated media players.
    [libx264 @ 0x7f8973803800] using SAR=1/1
    [libx264 @ 0x7f8973803800] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
    [libx264 @ 0x7f8973803800] profile High 4:4:4 Predictive, level 3.1, 4:4:4 8-bit
    [libx264 @ 0x7f8973803800] 264 - core 133 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - 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=4 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=10 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, mp4, to 'test.mp4':
     Metadata:
       encoder         : Lavf55.12.100
       Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv444p, 900x800 [SAR 1:1 DAR 9:8], q=-1--1, 10240 tbn, 10 tbc
    Stream mapping:
     Stream #0:0 -> #0:0 (png -> libx264)
    pipe:: Input/output error0 size=      65kB time=00:00:04.10 bitrate= 130.5kbits/s    
    frame=   93 fps= 15 q=-1.0 Lsize=      71kB time=00:00:09.10 bitrate=  63.8kbits/s    
    video:69kB audio:0kB subtitle:0 global headers:0kB muxing overhead 2.696543%
    [libx264 @ 0x7f8973803800] frame I:1     Avg QP:15.17  size: 50212
    [libx264 @ 0x7f8973803800] frame P:24    Avg QP: 8.91  size:   575
    [libx264 @ 0x7f8973803800] frame B:68    Avg QP: 9.69  size:    87
    [libx264 @ 0x7f8973803800] consecutive B-frames:  2.2%  0.0%  3.2% 94.6%
    [libx264 @ 0x7f8973803800] mb I  I16..4: 64.2% 19.6% 16.1%
    [libx264 @ 0x7f8973803800] mb P  I16..4:  2.8%  0.2%  0.1%  P16..4:  0.5%  0.0%  0.0%  0.0%  0.0%    skip:96.3%
    [libx264 @ 0x7f8973803800] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  3.1%  0.0%  0.0%  direct: 0.0%  skip:96.9%  L0:76.4% L1:23.6% BI: 0.0%
    [libx264 @ 0x7f8973803800] 8x8 transform intra:13.9% inter:54.0%
    [libx264 @ 0x7f8973803800] coded y,u,v intra: 7.4% 4.8% 5.2% inter: 0.1% 0.1% 0.1%
    [libx264 @ 0x7f8973803800] i16 v,h,dc,p: 68% 31%  2%  0%
    [libx264 @ 0x7f8973803800] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 48% 20% 32%  0%  0%  0%  0%  0%  0%
    [libx264 @ 0x7f8973803800] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 31% 20%  3%  3%  3%  5%  3%  4%
    [libx264 @ 0x7f8973803800] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264 @ 0x7f8973803800] ref P L0: 91.9%  0.0%  7.4%  0.7%
    [libx264 @ 0x7f8973803800] ref B L0: 20.5% 79.5%
    [libx264 @ 0x7f8973803800] ref B L1: 99.9%  0.1%
    [libx264 @ 0x7f8973803800] kb/s:60.16

    The output test.mp4 file is a blank 10 second video - just a black screen. From what i can tell, I am getting a pipe: : Input/output error from ffmpeg.

    I am pretty new to ffmpeg and I have tried changing some parameters and video codecs in the ffmpeg call, but have not found a solution yet. Can anyone advise ?