Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jul 01 2018 17:34
    @greggirwin banned @BIjeuca_twitter
  • Dec 03 2017 05:53
    @PeterWAWood banned @matrixbot
  • Sep 28 2016 12:20
    @PeterWAWood banned @TimeSeriesLord
hiiamboris
@hiiamboris
in that case you can just declare Red/System header
zentrog
@zentrog:matrix.org
[m]
Oh, that has the same effect?
hiiamboris
@hiiamboris
runtime is only included into Red scripts
zentrog
@zentrog:matrix.org
[m]
I seem to remember reading that there is a way to call Red functions from Red/System. So does that mean there is also a way to tell the compiler to include the runtime?
hiiamboris
@hiiamboris
You just start with 'Red' and then go down to '#system'.
ams0_0
@ams02468
hi guys how can hide text in field?
ne1uno
@ne1uno
password?
Gregg Irwin
@greggirwin
password, e.g. view [field password]
ams0_0
@ams02468
This is a good method, but is not it a way that does not even show the number of characters?
Inside the cli, I matched the background color with the color of the words
ne1uno
@ne1uno
select too?
on-change [] could append chars and reset face/text: "**"
ams0_0
@ams02468
@greggirwin and @ne1uno thanks
ams0_0
@ams02468
Hello guys , how can find the pc resolution with red ?
dsunanda
@dsunanda
eg: system/view/screens/1/size
ams0_0
@ams02468
I tried this command before, but it did not give the correct specifications. My PC resolution is 1080, but it gave me 1536x864
hiiamboris
@hiiamboris
system/view/screens/1/size * system/view/metrics/dpi / 96
ams0_0
@ams02468
thanks @hiiamboris @dsunanda
hiiamboris
@hiiamboris
maybe even
system/view/screens/1/size * system/view/metrics/dpi / 96 + 3 and complement 3
but this needs testing on nonstandard resolutions / dpis
Gregg Irwin
@greggirwin
We need to make sure that's doc'd somewhere.
ams0_0
@ams02468
Hello, how can I write two correlation commands in one line, for example?
create -dir % test change -dir % test
If they are separated, space is occupied, for example cmd
md test && cd test
hiiamboris
@hiiamboris
what have you tried?
ams0_0
@ams02468
I want to fit two commands in one line
hiiamboris
@hiiamboris
Red does not distinguish new line from space or tab.
ams0_0
@ams02468
ok thx @hiiamboris
ams0_0
@ams02468
Hello, is there a way to run it without write the file?
test: #include-binary %z.exe

write/binary %z.exe test

call %z.exe
hiiamboris
@hiiamboris
no
ams0_0
@ams02468
Is there any example for how use the dll library like 7z in red?
hiiamboris
@hiiamboris
both red/red and red/community repos are full of examples
François Jouen
@ldci
@hiiamboris Thanks for the link to redCV:)
hiiamboris
@hiiamboris
I was looking for a link to your Red/System introduction, but haven't found it, so posted random one
:)
François Jouen
@ldci
hiiamboris
@hiiamboris
I meant the PDF
François Jouen
@ldci
in doc directory
ams0_0
@ams02468
thx @ldci @hiiamboris
laturk
@laturk
I'm trying to take a script that converts 4K MP4 video from my Sony RX10 iii camera to a format editable by Davinci Resolve. For testing, I have the script print the string before it calls it. If i manually copy that string direct to the command line it works perfectly. But when the script calls it, it makes a video from just one frame. How call I correct this? Here's the script:
red []
f: request-file
str: to-string mold f
in-str: trim/with str "%"
out-str: copy in-str
replace out-str "MP4" "mov"
print out-str
ffm-str: rejoin ["ffmpeg -i " in-str " -c:v dnxhd -profile:v dnxhr_hq -pix_fmt yuv422p -c:a pcm_s16le -f mov " out-str]
print ffm-str
call/wait ffm-str
quit
hiiamboris
@hiiamboris
see if print outputs the correct string, minding the quotes
laturk
@laturk
hiiamboris, it does.
hiiamboris
@hiiamboris
no idea
Gregg Irwin
@greggirwin
@qtxie, any ideas? @laturk have you tried with /shell or /show? I know R2 had some issues in later releases if /show wasn't used. I haven't tried FFMPEG from Red though.
hiiamboris
@hiiamboris
it's possible that Red calls 32-bit version of ffmpeg, with 32-bit codecs, and those have some bugs resulting in this
if it's windows we're talking about
also ensure you're using latest, not stable, build
laturk
@laturk
Greg, using /shell or /show doesn't help.
Gregg Irwin
@greggirwin
OK, thanks for trying and reporting back.