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
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.
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: ""