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
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.
laturk
@laturk
Success. Use call/console, and it works.
laturk
@laturk
But compile for release fails.

[red-code]% red -r -t linux mp4todr.red (l@lat:~/red-code)

-=== Red Compiler 0.6.4 ===-

Compiling /home/l/red-code/mp4todr.red ...
Compilation Error: undefined word request-file in file: /home/l/red-code/mp4todr.red
* near: [request-file
str: to-string f
in-str: replace str "%"
]

hiiamboris
@hiiamboris
Needs: view
laturk
@laturk
hiiamboris, thank you. I can now convert files from my camera to a form Davinci Resolve can edit, and then convert the edited files back to mp4 for posting to Youtube, and I can do it without having to type even one letter.
hiiamboris
@hiiamboris
:+1:
it's kinda weird that Resolve would only support Quicktime format
it's a very ancient format
hiiamboris
@hiiamboris
maybe you should try Shotcut
Gregg Irwin
@greggirwin
Glad you got it working @laturk.
Jose Luis
@planetsizecpu
Welcome btw @laturk
laturk
@laturk
@planetsizecpu Thanks. I've been watching RED for a long time, waiting for RED View to be available on Linux. RED has the potential to be the most productive computer language ever. I'm hoping for events that will enable the speed of development to greatly increase.
yc
@cloutiy
@laturk Red view is available on linux. Download the gui branch.
I been playing with it. It uses gtk
Boleslav Březovský
@rebolek
@cloutiy @laturk I believe you don’t need the gui branch anymore and Linux View is in the master for some time.
yc
@cloutiy
Even better.
Great to see lots of new faces lately.
ams0_0
@ams02468

Hi, this is part of my code, but whatever I do, I can't compile it with the red flag -r. Can anyone help me please?

Red [needs: view]
#include %./environment/console/CLI/input.red
tar: #include-binary %tar.exe
data: split-path request-dir
cdd: to-local-file what-dir
write to-red-file rejoin [data/1{tar.exe}] tar
change-dir data/1
call/wait rejoin [{tar -cf "}replace/all cdd "\" "/" {test" }data/2 ]
delete to-red-file rejoin [data/1{tar.exe}]
change-dir to-red-file cdd

this is error message

Compiling c:\Users\username\Desktop\ams\tar.red ...
*
Syntax Error: Missing #"]" character
in file: c:\Users\username\Desktop\ams\tar.red line: 261
* at: ""

hiiamboris
@hiiamboris
Try adding spaces between tokens.
ams0_0
@ams02468
It was my fault(I forgot to update the source code XD) but thanks for the reply anyway @hiiamboris
TLG
@TheLastGuard
it is possible to include a file written in Red/System in normal Red
and Hi, sorry
hiiamboris
@hiiamboris
#system [#include %file.reds]
TLG
@TheLastGuard
thanks
Gregg Irwin
@greggirwin
Welcome @TheLastGuard. No need to apologize.
ams0_0
@ams02468
Hi, I had a question how can I give this example two inputs?
a: system/options/args

     -p: func [x y] [

         print rejoin [{ren "}x{" "}y{"}]]


            if find a "-p" [ 

                  remove a

                     -p remove a a ]
hiiamboris
@hiiamboris
what inputs?
system/options/args contains all the arguments from command line
ams0_0
@ams02468
@hiiamboris i solved the problem thanks anyway
François Jouen
@ldci
What’s wrong in this function?
bitExtract: function [
    number     [integer!]
    n        [integer!]
    p        [integer!]
][
    ((1 << n) - 1) AND (number >> (p - 1))
]
print bitExtract 140 3 6 print bitExtract 140 3 4
OK : we get 4 and 1
But print bitExtract 45 3 6 print bitExtract 45 3 4
I’m waiting for 6 and 6 and I get 1 and 5
hiiamboris
@hiiamboris
45 is 101101, how do you expect 6 and 6?
François Jouen
@ldci
@hiiamboris Code given by Gif code table :)
hiiamboris
@hiiamboris
54 maybe not 45
those bloggers...