Howdy, Doesn't work: ffmpeg -i c:\source.mp4 -map 0 -af abitscope -c:v libx265 -x265-params crf=18 -c:a ac3 -sn -dn "c:\abitscope.mp4" Doesn't work: ffmpeg -i c:\source.mp4 -map 0 -vf abitscope -c:v libx265 -x265-params crf=18 -c:a ac3 -sn -dn "c:\abitscope.mp4" The reports are below. Does anyone have any ideas how I can make it work? --Mark. c:\>ffmpeg -i c:\source.mp4 -map 0 -af abitscope -c:v libx265 -x265-params crf=18 -c:a ac3 -sn -dn "c:\abitscope.mp4" ffmpeg version 2024-05-20-git-127ded5078-full_build-www.gyan.dev Copyright (c) 2000-2024 the FFmpeg developers built with gcc 13.2.0 (Rev5, Built by MSYS2 project) configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libaribb24 --enable-libaribcaption --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libxevd --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxeve --enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-dxva2 --enable-d3d11va --enable-d3d12va --enable-ffnvcodec --enable-libvpl --enable-nvdec --enable-nvenc --enable-vaapi --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libcodec2 --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint libavutil 59. 19.100 / 59. 19.100 libavcodec 61. 5.104 / 61. 5.104 libavformat 61. 3.103 / 61. 3.103 libavdevice 61. 2.100 / 61. 2.100 libavfilter 10. 2.102 / 10. 2.102 libswscale 8. 2.100 / 8. 2.100 libswresample 5. 2.100 / 5. 2.100 libpostproc 58. 2.100 / 58. 2.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'c:\source.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2mp41 encoder : Lavf61.3.100 Duration: 00:00:10.47, start: 0.000000, bitrate: 8915 kb/s Stream #0:0[0x1](und): Video: hevc (Main) (hev1 / 0x31766568), yuv420p(tv, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 5388 kb/s, 23.98 fps, 23.98 tbr, 24k tbn (default) Metadata: handler_name : VideoHandler vendor_id : [0][0][0][0] encoder : Lavc61.5.101 libx265 Stream #0:1[0x2](und): Audio: dts (dca) (DTS-HD MA) (mp4a / 0x6134706D), 48000 Hz, 5.1(side), s32p (24 bit) (default) Metadata: handler_name : SoundHandler vendor_id : [0][0][0][0] [af#0:1 @ 0000000002ad5700] Filtergraph has a video output, cannot connect it to audio output stream [aost#0:1/ac3 @ 0000000003b95c80] Error initializing a simple filtergraph Error opening output file c:\abitscope.mp4. Error opening output files: Invalid argument c:\>ffmpeg -i c:\source.mp4 -map 0 -vf abitscope -c:v libx265 -x265-params crf=18 -c:a ac3 -sn -dn "c:\abitscope.mp4" ffmpeg version 2024-05-20-git-127ded5078-full_build-www.gyan.dev Copyright (c) 2000-2024 the FFmpeg developers built with gcc 13.2.0 (Rev5, Built by MSYS2 project) configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libaribb24 --enable-libaribcaption --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libxevd --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxeve --enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-dxva2 --enable-d3d11va --enable-d3d12va --enable-ffnvcodec --enable-libvpl --enable-nvdec --enable-nvenc --enable-vaapi --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libcodec2 --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint libavutil 59. 19.100 / 59. 19.100 libavcodec 61. 5.104 / 61. 5.104 libavformat 61. 3.103 / 61. 3.103 libavdevice 61. 2.100 / 61. 2.100 libavfilter 10. 2.102 / 10. 2.102 libswscale 8. 2.100 / 8. 2.100 libswresample 5. 2.100 / 5. 2.100 libpostproc 58. 2.100 / 58. 2.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'c:\source.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2mp41 encoder : Lavf61.3.100 Duration: 00:00:10.47, start: 0.000000, bitrate: 8915 kb/s Stream #0:0[0x1](und): Video: hevc (Main) (hev1 / 0x31766568), yuv420p(tv, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 5388 kb/s, 23.98 fps, 23.98 tbr, 24k tbn (default) Metadata: handler_name : VideoHandler vendor_id : [0][0][0][0] encoder : Lavc61.5.101 libx265 Stream #0:1[0x2](und): Audio: dts (dca) (DTS-HD MA) (mp4a / 0x6134706D), 48000 Hz, 5.1(side), s32p (24 bit) (default) Metadata: handler_name : SoundHandler vendor_id : [0][0][0][0] [vf#0:0 @ 000000000053e0c0] Tried to connect video stream to audio filtergraph input [vost#0:0/libx265 @ 00000000004c5bc0] Error initializing a simple filtergraph Error opening output file c:\abitscope.mp4. Error opening output files: Invalid argument
On Mon, May 20, 2024 at 13:14:43 -0400, Mark Filipak wrote:
Doesn't work: ffmpeg -i c:\source.mp4 -map 0 -af abitscope -c:v libx265 -x265-params crf=18 -c:a ac3 -sn -dn "c:\abitscope.mp4" [...] [vf#0:0 @ 000000000053e0c0] Tried to connect video stream to audio filtergraph input
abitscope has a video output. You need to use a "-filter_complex" instead of "-af" to map its output to a video stream (and then of course map that stream into your output file). Cheers, Moritz
On 20/05/2024 14.09, Moritz Barsnick via ffmpeg-user wrote:
On Mon, May 20, 2024 at 13:14:43 -0400, Mark Filipak wrote:
Doesn't work: ffmpeg -i c:\source.mp4 -map 0 -af abitscope -c:v libx265 -x265-params crf=18 -c:a ac3 -sn -dn "c:\abitscope.mp4" [...] [vf#0:0 @ 000000000053e0c0] Tried to connect video stream to audio filtergraph input
abitscope has a video output. You need to use a "-filter_complex" instead of "-af" to map its output to a video stream (and then of course map that stream into your output file).
Thanks, Moritz, but I don't know how to map a video stream that originates inside ffmpeg. -filter_complex "abitscope=r=24000/1001[a]" -map "[a]" doesn't work. I've tried variations but they didn't work. They all say, "Cannot find a matching stream for unlabeled input pad abitscope:default". Can you give me a bigger 'push', eh? --Mark.
On 20/05/2024 14.09, Moritz Barsnick via ffmpeg-user wrote:
On Mon, May 20, 2024 at 13:14:43 -0400, Mark Filipak wrote:
Doesn't work: ffmpeg -i c:\source.mp4 -map 0 -af abitscope -c:v libx265 -x265-params crf=18 -c:a ac3 -sn -dn "c:\abitscope.mp4" [...] [vf#0:0 @ 000000000053e0c0] Tried to connect video stream to audio filtergraph input
abitscope has a video output. You need to use a "-filter_complex" instead of "-af" to map its output to a video stream (and then of course map that stream into your output file).
Cheers, Moritz
Thanks again. I managed to get it to work -filter_complex "[0:a]abitscope=r=24000/1001[a]" -map "[a]" "[0:a]", even though there's only 1 audio stream. Oh, well. Unfortunately, 'abitscope' doesn't do anything useful. Just pictures of six bands that look like Excel, and no measurements. Useless.
On Tue, May 21, 2024 at 2:01 AM Mark Filipak <markfilipak.imdb@gmail.com> wrote:
On 20/05/2024 14.09, Moritz Barsnick via ffmpeg-user wrote:
On Mon, May 20, 2024 at 13:14:43 -0400, Mark Filipak wrote:
Doesn't work: ffmpeg -i c:\source.mp4 -map 0 -af abitscope -c:v libx265 -x265-params crf=18 -c:a ac3 -sn -dn "c:\abitscope.mp4" [...] [vf#0:0 @ 000000000053e0c0] Tried to connect video stream to audio filtergraph input
abitscope has a video output. You need to use a "-filter_complex" instead of "-af" to map its output to a video stream (and then of course map that stream into your output file).
Cheers, Moritz
Thanks again. I managed to get it to work -filter_complex "[0:a]abitscope=r=24000/1001[a]" -map "[a]" "[0:a]", even though there's only 1 audio stream. Oh, well.
Unfortunately, 'abitscope' doesn't do anything useful. Just pictures of six bands that look like Excel, and no measurements. Useless.
Your comment are just as useless, nothing ever comes useful from your mails.
_______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
participants (3)
-
Mark Filipak -
Moritz Barsnick -
Paul B Mahol