-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Issue with ffmpeg/ffprobe #5625
Copy link
Copy link
Closed
Labels
category:bugSomething isn't workingSomething isn't working
Milestone
Description
Describe the bug
I'm trying to save stderr of ffmpeg to a file, but the command below just hangs indefinitely:
do -i { ffmpeg } | save out.txt
Ctr-C does not work either.
Running it without -i works (but the output is displayed in the terminal and out.txt is empty)
do { ffmpeg } | save out.txt
This behavior is the same under Windows and Linux.
In other Linux terminal, the ffmpeg process is defunct:
❯ ps -ef
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 17:19 ? 00:00:00 /init
root 492 1 0 17:29 tty2 00:00:00 /init
ziba 493 492 0 17:29 tty2 00:00:00 -zsh
ziba 567 493 0 17:29 tty2 00:00:00 nu
root 571 1 0 17:29 tty1 00:00:00 /init
ziba 572 571 0 17:29 tty1 00:00:00 -zsh
ziba 763 567 0 17:30 tty2 00:00:00 [ffmpeg] <defunct>
ziba 817 572 0 17:31 tty1 00:00:00 ps -ef
How to reproduce
do -i { ffmpeg } | save out.txt
Expected behavior
The out.txt file should have the content below
ffmpeg version n4.4.2-1-g8e98dfc57f-20220507 Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 11.2.0 (crosstool-NG 1.24.0.533_681aaef)
configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32 --enable-gpl --enable-version3 --disable-debug --disable-w32threads --enable-pthreads --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl --disable-libpulse --enable-libvmaf --disable-libxcb --disable-xlib --enable-amf --enable-libaom --enable-libaribb24 --enable-avisynth --enable-libdav1d --enable-libdavs2 --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --disable-frei0r --enable-libgme --enable-libass --enable-libbluray --enable-libmp3lame --enable-libopus --enable-librist --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --enable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --disable-libdrm --disable-vaapi --enable-libvidstab --disable-vulkan --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-ldexeflags= --extra-libs=-lgomp --extra-version=20220507
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
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
Use -h to get full help or, even better, run 'man ffmpeg'
Screenshots
No response
Configuration
| key | value |
|---|---|
| version | 0.62.0 |
| branch | |
| tag | |
| short_commit | da10405 |
| commit_hash | da10405 |
| commit_date | 2022-05-03 21:50:33 +00:00 |
| build_os | windows-x86_64 |
| rust_version | rustc 1.60.0 (7737e0b5c 2022-04-04) |
| rust_channel | stable-x86_64-pc-windows-msvc |
| cargo_version | cargo 1.60.0 (d1fd9fe2c 2022-03-01) |
| pkg_version | 0.62.0 |
| build_time | 2022-05-03 22:10:37 +00:00 |
| build_rust_channel | release |
| features | database, dataframe, default, trash, which, zip |
| installed_plugins |
Additional context
Using ffprobe instead of ffmpeg does not hang, but out.txt is empty and nothing is displayed.
do -i { ffprobe } | save out.txt
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
category:bugSomething isn't workingSomething isn't working