Closed danbroooks closed 6 years ago
Regarding printing the command, when the arguments are passed to the process library, they are quoted correctly by it. Thus, we can't add quotes to the arguments in the printer, but we need to do it at the very end where printing the command with putStrLn
and unwords
:
-- in Komposition.FFmpeg.Process
...
liftIO (putStrLn (Prelude.unwords ("ffmpeg" : allArgs)))
...
There each arg in the allArgs
need to be wrapped in quotes.
Hi @owickstrom, apologies for the delayed response, I've been meaning to test this out for a bit but only just found the time!
Unfortunately I am still having this issue, I am able to import the video and append it to the timeline, but once I hit play a black box appears and I get the seg fault issue as described above.
You say in #52 that it is not the ideal solution, so you may want to undo those changes if you believed it would fix this issue (and it doesn't relate to a fix for anything else). It's quite possible that it is something on my machine not running right, or some incompatibility thing with ffmpeg
... I'm not too sure. I'm running on Ubuntu 18.04 if that helps anything.
@danbroooks OK, I see. The segfault issue is related to the Gstreamer plugins version bundled with Ubuntu 18.04, I'm afraid. I haven't found any workaround to this issue (I'm using Nix as on Ubuntu so not getting the issue that way). I guess you could try installing Gstreamer and its plugins from source. Other than that, I'm not really sure how to fix it. :disappointed:
When I attempt to preview a video, the preview window will open, however the video will not play. In the terminal i get the following output:
When I close the window, and attempt to preview again, komposition crashes and I get the following output:
When running the outputted command directly in the terminal, and without
-v quiet
I get this:I think the issue may lie in the fact that there are
;
's in the options passed tofilter_complex
... zsh is then treating the options following the first block as an entirely new command. So if I wrap this portion in"
's, the command is successful:and I am able to open
http://localhost:12345/
with VLC and said video plays successfully.I attempted to tweak the
printFilterGraph
function insrc/Komposition/FFmpeg/Command.hs
like so:Only now this breaks the command that imports the video via the
Import Assets
menu option. I'm not sure why this is broken now, testing the ffmpeg output for the import directly in the terminal converts the video just fine. So I am unsure about how to proceed at this point.