View previous topic :: View next topic |
Author |
Message |
gangstervano Tux's lil' helper
Joined: 15 Aug 2016 Posts: 86
|
Posted: Sun Jul 28, 2024 5:10 pm Post subject: The output in sdtin is different from the output in file |
|
|
Hi!
When I run command equery u ffmpeg I get
Code: |
[ Legend : U - final flag setting for installation]
[ : I - package is installed with flag ]
[ Colors : set, unset ]
* Found these USE flags for media-video/ffmpeg-6.1.1-r8:
U I
+ + X : Add support for X11
- - abi_x86_32 : 32-bit (x86) libraries
+ + alsa : Add support for media-libs/alsa-lib (Advanced Linux Sound Architecture)
- - amr : Enables Adaptive Multi-Rate Audio support
- - amrenc : Enables Adaptive Multi-Rate Audio encoding support with media-libs/vo-amrwbenc.
- - bluray : Enable playback of Blu-ray filesystems
- - bs2b : Enables media-libs/libbs2b based Bauer stereo-to-binaural filter.
+ + bzip2 : Enable bzip2 compression support
- - cdio : Enables audio CD grabbing with dev-libs/libcdio.
- - chromaprint : Enables audio fingerprinting support with media-libs/chromaprint.
- - chromium : Builds libffmpeg.so to enable media playback in Chromium-based browsers like Opera and Vivaldi.
- - codec2 : Enables codec2 low bit rate speech codec support via media-libs/codec2.
- - cpu_flags_x86_3dnow : Use the 3DNow! instruction set
- - cpu_flags_x86_3dnowext : Use the Enhanced 3DNow! instruction set
- - cpu_flags_x86_aes : Enable support for Intel's AES instruction set (AES-NI)
- - cpu_flags_x86_avx : Adds support for Advanced Vector Extensions instructions
- - cpu_flags_x86_avx2 : Adds support for Advanced Vector Extensions 2 instructions
- - cpu_flags_x86_fma3 : Use the Fused Multiply Add 3 instruction set ([fma] in cpuinfo)
- - cpu_flags_x86_fma4 : Use the Fused Multiply Add 4 instruction set
+ + cpu_flags_x86_mmx : Use the MMX instruction set
+ + cpu_flags_x86_mmxext : Use the Extended MMX instruction set (a subset of SSE) ([mmxext] or [sse] in cpuinfo)
+ + cpu_flags_x86_sse : Use the SSE instruction set
+ + cpu_flags_x86_sse2 : Use the SSE2 instruction set
... |
But when I executed command equery u ffmpeg > ffmpeg.txt in the file I get
Code: | +X
-abi_x86_32
+alsa
-amr
-amrenc
-bluray
-bs2b
+bzip2
-cdio
-chromaprint
-chromium
-codec2
-cpu_flags_x86_3dnow
-cpu_flags_x86_3dnowext
-cpu_flags_x86_aes
-cpu_flags_x86_avx
-cpu_flags_x86_avx2
-cpu_flags_x86_fma3
-cpu_flags_x86_fma4
+cpu_flags_x86_mmx
+cpu_flags_x86_mmxext
+cpu_flags_x86_sse
+cpu_flags_x86_sse2
+cpu_flags_x86_sse3
... |
Why is this happening? Is there anyway to output the entire text to a file so that the data in the file and on the screen are the same? |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22623
|
Posted: Sun Jul 28, 2024 5:35 pm Post subject: |
|
|
As I read equery --help, this command supports --no-pipe, which seems to do what you want. |
|
Back to top |
|
|
gangstervano Tux's lil' helper
Joined: 15 Aug 2016 Posts: 86
|
Posted: Sun Jul 28, 2024 5:44 pm Post subject: |
|
|
Thanks
Do you have any thoughts on how this is implemented programmatically?
Does the program output to stdin as well as to another pipe? Or in a pipe other than stdin? |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22623
|
Posted: Sun Jul 28, 2024 6:29 pm Post subject: |
|
|
stdin is normally not writable. stdout is writable, and is set by the calling program. The usual way to do this is to check if stdout is a tty, but I have not checked how equery does this. |
|
Back to top |
|
|
gangstervano Tux's lil' helper
Joined: 15 Aug 2016 Posts: 86
|
Posted: Sun Jul 28, 2024 9:29 pm Post subject: |
|
|
Thanks |
|
Back to top |
|
|
|