
Recherche avancée
Médias (1)
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (47)
-
Keeping control of your media in your hands
13 avril 2011, parThe 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 (...) -
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa 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 (...) -
Soumettre améliorations et plugins supplémentaires
10 avril 2011Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...)
Sur d’autres sites (6306)
-
ffmpeg / avconv Unrecognized option 'target=vcd'
2 février 2023, par Paul NeuwirthI get following error


Unrecognized option 'target=vcd'.
Error splitting the argument list: Option not found



running


ffmpeg -i input.ts -target=vcd output.mpg



or


avconv -i input.ts -target=vcd output.mpg



(or any other target like "pal-dvd", like stated in the man-file)


version info ffmpeg :




ffmpeg version 4.4 Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 7 (SUSE Linux)
configuration : —prefix=/usr —libdir=/usr/lib64 —shlibdir=/usr/lib64 —incdir=/usr/include/ffmpeg —extra-cflags='-fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g' —optflags='-fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g' —disable-htmlpages —enable-pic —disable-stripping —enable-shared —disable-static —enable-gpl —enable-version3 —disable-openssl —enable-avresample —enable-gnutls —enable-ladspa —enable-libass —enable-libbluray —enable-libbs2b —enable-libcelt —enable-libcdio —enable-libdav1d —enable-libdc1394 —enable-libdrm —enable-libfontconfig —enable-libfreetype —enable-libfribidi —enable-libgsm —enable-libjack —enable-libmp3lame —enable-libopenjpeg —enable-libopenmpt —enable-libopus —enable-libpulse —enable-libspeex —enable-libssh —enable-libtheora —enable-libtwolame —enable-libvidstab —enable-libvmaf —enable-libvorbis —enable-libv4l2 —enable-libvpx —enable-libwebp —enable-libxml2 —enable-libzimg —enable-libzvbi —enable-libmfx —enable-vaapi —enable-vdpau —enable-version3 —enable-libfdk-aac-dlopen —enable-nonfree —enable-libvo-amrwbenc —enable-libx264 —enable-libx265 —enable-librtmp —enable-libxvid
libavutil 56. 70.100 / 56. 70.100
libavcodec 58.134.100 / 58.134.100
libavformat 58. 76.100 / 58. 76.100
libavdevice 58. 13.100 / 58. 13.100
libavfilter 7.110.100 / 7.110.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 9.100 / 5. 9.100
libswresample 3. 9.100 / 3. 9.100
libpostproc 55. 9.100 / 55. 9.100




version info avconv




avconv version 12.3, Copyright (c) 2000-2018 the Libav developers

built on Mar 26 2018 12:39 with gcc 7 (SUSE Linux) configuration :
—prefix=/usr —libdir=/usr/lib64 —shlibdir=/usr/lib64 —extra-cflags='-fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g' —optflags='-fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g' —incdir=/usr/include/libav —enable-pic —disable-yasm WARNING : library configuration mismatch avutil configuration :
—prefix=/usr —libdir=/usr/lib64 —shlibdir=/usr/lib64 —incdir=/usr/include/ffmpeg —extra-cflags='-fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g' —optflags='-fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g' —disable-htmlpages —enable-pic —disable-stripping —enable-shared —disable-static —enable-gpl —disable-openssl —enable-avresample —enable-libcdio —enable-gnutls —enable-ladspa —enable-libass —enable-libbluray —enable-libcelt —enable-libcdio —enable-libdc1394 —enable-libfreetype —enable-libgsm —enable-libmp3lame —enable-libopenjpeg —enable-libopus —enable-libpulse —enable-libspeex —enable-libtheora —enable-libtwolame —enable-libvidstab —enable-libvorbis —enable-libvpx —enable-libwebp —enable-libzimg —enable-libzvbi —enable-vaapi —enable-vdpau —enable-libopencore-amrnb —enable-libopencore-amrwb —enable-version3 —enable-libx264 —enable-libx265 —enable-libxvid avcodec configuration : —prefix=/usr —libdir=/usr/lib64
—shlibdir=/usr/lib64 —incdir=/usr/include/ffmpeg —extra-cflags='-fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g' —optflags='-fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g' —disable-htmlpages —enable-pic —disable-stripping —enable-shared —disable-static —enable-gpl —disable-openssl —enable-avresample —enable-libcdio —enable-gnutls —enable-ladspa —enable-libass —enable-libbluray —enable-libcelt —enable-libcdio —enable-libdc1394 —enable-libfreetype —enable-libgsm —enable-libmp3lame —enable-libopenjpeg —enable-libopus —enable-libpulse —enable-libspeex —enable-libtheora —enable-libtwolame —enable-libvidstab —enable-libvorbis —enable-libvpx —enable-libwebp —enable-libzimg —enable-libzvbi —enable-vaapi —enable-vdpau —enable-libopencore-amrnb —enable-libopencore-amrwb —enable-version3 —enable-libx264 —enable-libx265 —enable-libxvid avformat configuration : —prefix=/usr —libdir=/usr/lib64 —shlibdir=/usr/lib64 —incdir=/usr/include/ffmpeg —extra-cflags='-fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g' —optflags='-fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g' —disable-htmlpages —enable-pic —disable-stripping —enable-shared —disable-static —enable-gpl —disable-openssl —enable-avresample —enable-libcdio —enable-gnutls —enable-ladspa —enable-libass —enable-libbluray —enable-libcelt —enable-libcdio —enable-libdc1394 —enable-libfreetype —enable-libgsm —enable-libmp3lame —enable-libopenjpeg —enable-libopus —enable-libpulse —enable-libspeex —enable-libtheora —enable-libtwolame —enable-libvidstab —enable-libvorbis —enable-libvpx —enable-libwebp —enable-libzimg —enable-libzvbi —enable-vaapi —enable-vdpau —enable-libopencore-amrnb —enable-libopencore-amrwb —enable-version3 —enable-libx264 —enable-libx265 —enable-libxvid avdevice configuration : —prefix=/usr —libdir=/usr/lib64
—shlibdir=/usr/lib64 —incdir=/usr/include/ffmpeg —extra-cflags='-fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g' —optflags='-fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g' —disable-htmlpages —enable-pic —disable-stripping —enable-shared —disable-static —enable-gpl —disable-openssl —enable-avresample —enable-libcdio —enable-gnutls —enable-ladspa —enable-libass —enable-libbluray —enable-libcelt —enable-libcdio —enable-libdc1394 —enable-libfreetype —enable-libgsm —enable-libmp3lame —enable-libopenjpeg —enable-libopus —enable-libpulse —enable-libspeex —enable-libtheora —enable-libtwolame —enable-libvidstab —enable-libvorbis —enable-libvpx —enable-libwebp —enable-libzimg —enable-libzvbi —enable-vaapi —enable-vdpau —enable-libopencore-amrnb —enable-libopencore-amrwb —enable-version3 —enable-libx264 —enable-libx265 —enable-libxvid avfilter configuration : —prefix=/usr —libdir=/usr/lib64 —shlibdir=/usr/lib64 —incdir=/usr/include/ffmpeg —extra-cflags='-fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g' —optflags='-fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g' —disable-htmlpages —enable-pic —disable-stripping —enable-shared —disable-static —enable-gpl —disable-openssl —enable-avresample —enable-libcdio —enable-gnutls —enable-ladspa —enable-libass —enable-libbluray —enable-libcelt —enable-libcdio —enable-libdc1394 —enable-libfreetype —enable-libgsm —enable-libmp3lame —enable-libopenjpeg —enable-libopus —enable-libpulse —enable-libspeex —enable-libtheora —enable-libtwolame —enable-libvidstab —enable-libvorbis —enable-libvpx —enable-libwebp —enable-libzimg —enable-libzvbi —enable-vaapi —enable-vdpau —enable-libopencore-amrnb —enable-libopencore-amrwb —enable-version3 —enable-libx264 —enable-libx265 —enable-libxvid avresample configuration : —prefix=/usr —libdir=/usr/lib64
—shlibdir=/usr/lib64 —incdir=/usr/include/ffmpeg —extra-cflags='-fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g' —optflags='-fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g' —disable-htmlpages —enable-pic —disable-stripping —enable-shared —disable-static —enable-gpl —disable-openssl —enable-avresample —enable-libcdio —enable-gnutls —enable-ladspa —enable-libass —enable-libbluray —enable-libcelt —enable-libcdio —enable-libdc1394 —enable-libfreetype —enable-libgsm —enable-libmp3lame —enable-libopenjpeg —enable-libopus —enable-libpulse —enable-libspeex —enable-libtheora —enable-libtwolame —enable-libvidstab —enable-libvorbis —enable-libvpx —enable-libwebp —enable-libzimg —enable-libzvbi —enable-vaapi —enable-vdpau —enable-libopencore-amrnb —enable-libopencore-amrwb —enable-version3 —enable-libx264 —enable-libx265 —enable-libxvid swscale configuration : —prefix=/usr —libdir=/usr/lib64 —shlibdir=/usr/lib64 —incdir=/usr/include/ffmpeg —extra-cflags='-fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g' —optflags='-fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g' —disable-htmlpages —enable-pic —disable-stripping —enable-shared —disable-static —enable-gpl —disable-openssl —enable-avresample —enable-libcdio —enable-gnutls —enable-ladspa —enable-libass —enable-libbluray —enable-libcelt —enable-libcdio —enable-libdc1394 —enable-libfreetype —enable-libgsm —enable-libmp3lame —enable-libopenjpeg —enable-libopus —enable-libpulse —enable-libspeex —enable-libtheora —enable-libtwolame —enable-libvidstab —enable-libvorbis —enable-libvpx —enable-libwebp —enable-libzimg —enable-libzvbi —enable-vaapi —enable-vdpau —enable-libopencore-amrnb —enable-libopencore-amrwb —enable-version3 —enable-libx264 —enable-libx265 —enable-libxvid libavutil 55. 78.100 / 55. 78.100 libavcodec 57.107.100 /
57.107.100 libavformat 57. 83.100 / 57. 83.100 libavdevice 57. 10.100 / 57. 10.100 libavfilter 6.107.100 / 6.107.100 libavresample 3. 7. 0 / 3. 7. 0 libswscale 4. 8.100 / 4.
8.100



despite solving the problem, I'd be happy with any other solution to compress video to pal-dvd or pal-vcd standard


I tried re-encoding a mpeg-2 video using avconv and/or ffmpeg to target pal-dvd or pal-vcd or even just vcd or dvd.
manpage states option -target as main option :




-target type (output)



Specify target file type ("vcd", "svcd", "dvd", "dv", "dv50"). type may be prefixed with "pal-", "ntsc-" or "film-" to use the corresponding standard. All the format options
(bitrate, codecs, buffer sizes) are then set automatically. You can just type :


avconv -i myfile.avi -target vcd /tmp/vcd.mpg


Nevertheless you can specify additional options as long as you know they do not conflict with the standard, as in :


avconv -i myfile.avi -target vcd -bf 2 /tmp/vcd.mpg




-
Xubuntu ffmpeg screen capturing very slow when no display connected
8 décembre 2022, par fre_derI use ffmpeg on an Intel Nuc with Xubuntu 22.04 (XFCE4, lightdm), with x11grab for screen capturing the desktop, and sending output to a multicast UDP stream (which is shown on different IPTV sets in the network).
The system uses autologin, and autostarts Firefox in kiosk mode, rendering a html5 video.


Everything works fine when a display is attached, but from the moment the hdmi cable is detached, the output video is extremely slow (very shaky, looks like 1 fps, audio is OK although it has occasional hickups).


CPU and memory usage doesn't seem to be affected whether a display is attached or not.


This runs fine on Xubuntu 18.04, although there might be small config changes that I'm not aware of.


To be able to display output when no display is attached, I created a VIRTUAL1 display :


xrandr -d :0 --verbose --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
xrandr -d :0 --verbose --addmode VIRTUAL1 "1920x1080_60.00"



my /usr/share/X11/xorg.conf.d/20-intel.conf looks like :


Section "Device"
 Identifier "Intel Graphics"
 Driver "intel"
 Option "VirtualHeads" "1"
 Option "TearFree" "true"
 Option "TripleBuffer" "true"
 Option "DRI" "false"
EndSection



The ffmpeg command :


ffmpeg -r 25 -thread_queue_size 512 -f x11grab -s 1920x1080 -i :0 -thread_queue_size 512 -f alsa -i default -c:a mp2 -f mpegts udp://239.255.255.8:50000?pkt_size=1316



(during trial/error I tested various ffmpeg command line options to no avail)


Output with hdmi cable attached :


ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers
 built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)
 configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --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-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
 WARNING: library configuration mismatch
 avcodec configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --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-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared --enable-version3 --disable-doc --disable-programs --enable-libaribb24 --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc --enable-libsmbclient
 libavutil 56. 70.100 / 56. 70.100
 libavcodec 58.134.100 / 58.134.100
 libavformat 58. 76.100 / 58. 76.100
 libavdevice 58. 13.100 / 58. 13.100
 libavfilter 7.110.100 / 7.110.100
 libswscale 5. 9.100 / 5. 9.100
 libswresample 3. 9.100 / 3. 9.100
 libpostproc 55. 9.100 / 55. 9.100
[x11grab @ 0x55f1fdfa18c0] Stream #0: not enough frames to estimate rate; consider increasing probesize
Input #0, x11grab, from ':0':
 Duration: N/A, start: 1670501458.257764, bitrate: 1658880 kb/s
 Stream #0:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 1920x1080, 1658880 kb/s, 25 fps, 1000k tbr, 1000k tbn, 1000k tbc
Guessed Channel Layout for Input Stream #1.0 : stereo
Input #1, alsa, from 'default':
 Duration: N/A, start: 1670501459.560180, bitrate: 1536 kb/s
 Stream #1:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
Stream mapping:
 Stream #0:0 -> #0:0 (rawvideo (native) -> mpeg2video (native))
 Stream #1:0 -> #0:1 (pcm_s16le (native) -> mp2 (native))
Press [q] to stop, [?] for help
Output #0, mpegts, to 'udp://239.255.255.8:50000?pkt_size=1316':
 Metadata:
 encoder : Lavf58.76.100
 Stream #0:0: Video: mpeg2video (Main), yuv420p(tv, progressive), 1920x1080, q=2-31, 200 kb/s, 25 fps, 90k tbn
 Metadata:
 encoder : Lavc58.134.100 mpeg2video
 Side data:
 cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A
 Stream #0:1: Audio: mp2, 48000 Hz, stereo, s16, 384 kb/s
 Metadata:
 encoder : Lavc58.134.100 mp2
frame= 1041 fps= 25 q=31.0 Lsize= 12451kB time=00:00:41.56 bitrate=2454.3kbits/s speed=1.01x
video:9955kB audio:1920kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 4.847125%
Exiting normally, received signal 2.



Output without hdmi cable attached :


ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers
 built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)
 configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --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-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
 WARNING: library configuration mismatch
 avcodec configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --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-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared --enable-version3 --disable-doc --disable-programs --enable-libaribb24 --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc --enable-libsmbclient
 libavutil 56. 70.100 / 56. 70.100
 libavcodec 58.134.100 / 58.134.100
 libavformat 58. 76.100 / 58. 76.100
 libavdevice 58. 13.100 / 58. 13.100
 libavfilter 7.110.100 / 7.110.100
 libswscale 5. 9.100 / 5. 9.100
 libswresample 3. 9.100 / 3. 9.100
 libpostproc 55. 9.100 / 55. 9.100
[x11grab @ 0x56325816a8c0] Stream #0: not enough frames to estimate rate; consider increasing probesize
Input #0, x11grab, from ':0':
 Duration: N/A, start: 1670501334.907900, bitrate: 1658880 kb/s
 Stream #0:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 1920x1080, 1658880 kb/s, 25 fps, 1000k tbr, 1000k tbn, 1000k tbc
Guessed Channel Layout for Input Stream #1.0 : stereo
Input #1, alsa, from 'default':
 Duration: N/A, start: 1670501336.193971, bitrate: 1536 kb/s
 Stream #1:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
Stream mapping:
 Stream #0:0 -> #0:0 (rawvideo (native) -> mpeg2video (native))
 Stream #1:0 -> #0:1 (pcm_s16le (native) -> mp2 (native))
Press [q] to stop, [?] for help
Output #0, mpegts, to 'udp://239.255.255.8:50000?pkt_size=1316':
 Metadata:
 encoder : Lavf58.76.100
 Stream #0:0: Video: mpeg2video (Main), yuv420p(tv, progressive), 1920x1080, q=2-31, 200 kb/s, 25 fps, 90k tbn
 Metadata:
 encoder : Lavc58.134.100 mpeg2video
 Side data:
 cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A
 Stream #0:1: Audio: mp2, 48000 Hz, stereo, s16, 384 kb/s
 Metadata:
 encoder : Lavc58.134.100 mp2
frame= 1020 fps= 26 q=31.0 Lsize= 11802kB time=00:00:40.72 bitrate=2374.3kbits/s speed=1.02x
video:9378kB audio:1873kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 4.892235%
Exiting normally, received signal 2.



xrandr output with display connected (if no display connected then DP1 just says disconnected as the other outputs)


Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
DP1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 530mm x 300mm
 1920x1080 60.00*+ 74.97 50.00 59.94
 1920x1080i 60.00 50.00 59.94
 1680x1050 59.88
 1280x1024 75.02 60.02
 1440x900 59.90
 1280x960 60.00
 1280x720 60.00 50.00 59.94
 1024x768 75.03 70.07 60.00
 832x624 74.55
 800x600 72.19 75.00 60.32 56.25
 720x576 50.00
 720x480 60.00 59.94
 640x480 75.00 72.81 66.67 60.00 59.94
 720x400 70.08
DP2 disconnected (normal left inverted right x axis y axis)
DP3 disconnected (normal left inverted right x axis y axis)
DP4 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
 1920x1080_60.00 59.96*
VIRTUAL2 disconnected (normal left inverted right x axis y axis)



-
FFMEPG crop : Invalid too big or non positive size for width '1920' or height '1040'
12 février 2021, par NatePhysicsI run into a strange issue with a particular file in FFMPEG. When I try and crop it down a little I get :


[Parsed_crop_0 @ 000002ad60c27980] Invalid too big or non positive size for width '1920' or height '1040'
[Parsed_crop_0 @ 000002ad60c27980] Failed to configure input pad on Parsed_crop_0
Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #0:37
Conversion failed!



This is odd to me because you can even see from the stream metadata that the resolution is much higher :


Metadata:
 encoder : libebml v1.4.0 + libmatroska v1.6.2
 creation_time : 2021-02-09T22:45:47.000000Z
 Duration: 02:17:48.93, start: 0.000000, bitrate: 8548 kb/s
 Stream #0:0: Video: h264 (High), yuv420p(progressive), **1920x1080** [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)



There's only 1 video stream. I'm running the following command :


ffmpeg -i "wedding.mkv" -filter:v "crop=1920:1040" -c:v libx264 -preset slow -tune film -profile:v high -level 4.1 -crf 19 -c:a copy -c:s copy -map 0 "wedding-cropped.mkv"



I can preview the crop using the following command without any errors :


ffplay -i "wedding.mkv" -vf "crop=1920:960"



I've cropped a few files before without issue. I'm a bit confused as to why I'm getting a resolution error in this case when the video file is clearly higher resolution. I've also tested lowering the cropped resolution and even when I lower both by several hundred pixels it still spits out the same error. Any thoughts or suggestions ?