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
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.
laturk
@laturk
hihambrois, I think you are probably right that it is a codec problem.
I'm using archlinux, not windows. The build of red I'm using is about a week old.
Is there any way to make the resulting file overwrite the existing file?
hiiamboris
@hiiamboris
that's up to ffmpeg
laturk
@laturk
hiiamboris, yes, I just needed to add the -y option to ffmpeg. I should have realized that.
I don't understand how red can call the wrong codecs though.
laturk
@laturk
I can upload a short video file if anyone would like see what is happening. It is only a few seconds long, but still 74.3 MB.
hiiamboris
@hiiamboris
I've no idea how it works in linux under the hood, but since Red is using 32-bit libraries, it's possible that it's child processes are using those libs too, and that those are buggy.
yc
@cloutiy
Red needs some tweeters. I can try to get the ball started if there is any interest.
laturk
@laturk
Will red eventually be using 64-bit libraries. 32-bit is pretty well a thing of the past.
hiiamboris
@hiiamboris
eventually yes
laturk
@laturk
Rebol view no longer works for me. I get: User Error: Bad face in screen pane! Near: size-text self
laturk
@laturk
Does "eventually" mean any time soon?
hiiamboris
@hiiamboris
Unlikely.
laturk
@laturk
hiiambrois, I was afraid of that. Thanks for replying.
dsunanda
@dsunanda
@laturk If Red is somehow calling the wrong version of ffmpeg, you may be able to bypass that by writing a short shell script to call ffmpeg, and then CALLing that from within Red.
laturk
@laturk
dsunanda, thanks, but I only have one version of ffmpeg installed, and even if I call it using its full path the result is the same.