View previous topic :: View next topic |
Author |
Message |
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3310 Location: Rasi, Finland
|
Posted: Tue Jan 29, 2019 4:47 pm Post subject: Lossless-cut |
|
|
I found this: https://github.com/mifi/lossless-cut
Which is 95% of the time the only video editor I need. Although I've been using shotcut lately, and it's awesome.
The problem is, its intended install method pulls some version X of ffmpeg binaries.
It's a nodejs "app". And it seems to require electron too.
Now... Before I completely lose my mind and start creating an ebuild for it...
Does anyone know any similar video cutting/merging tool, that does it losslessly.
I assume this does it by stream copying. I've done it via cli ffmpeg before, but a gui for the task would really help. _________________ ..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3310 Location: Rasi, Finland
|
Posted: Tue Jan 29, 2019 5:01 pm Post subject: |
|
|
It's little more than what I'm looking for. Although it might be the tool I need.
It seems not to use ffmpeg under the hood, but is a standalone program. :o
Can it perform stream copy in place of encoding when exporting? _________________ ..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3310 Location: Rasi, Finland
|
Posted: Tue Jan 29, 2019 6:19 pm Post subject: |
|
|
Jaglover wrote: | It uses bundled ffmpeg. |
But i guess it's better than having nodejs and electron as depencies. _________________ ..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
Proinsias Tux's lil' helper
Joined: 06 Oct 2014 Posts: 133 Location: Scotland
|
Posted: Tue Jan 29, 2019 6:35 pm Post subject: |
|
|
For quickly trimming video I use a few scripts with mpv. There's an encode_slice option which just snips, with ffmpeg, and doesn't encode. It also allows cropping, audio removal n other stuff.
It is not a fully featured solution but it means I can trim video from within my preffered media player and don't have to deal with ffmpeg on the cli. Can't say I've enjoyed working with video editors on linux, this is a breath of fresh air.
https://github.com/occivink/mpv-scripts |
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3310 Location: Rasi, Finland
|
Posted: Tue Jan 29, 2019 6:54 pm Post subject: |
|
|
^ This sounds more like it!
I'm already a BIG fan of mpv, so this might be exactly what I need.
EDIT: D'oh. Didn't this this beforehand, but obviously it cannot merge two similar clips. But hey, the ability to extract a clip from a longer video is my most needed feature. _________________ ..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3310 Location: Rasi, Finland
|
Posted: Wed Jan 30, 2019 12:11 am Post subject: |
|
|
Jaglover wrote: | Well, you could use dd to cut pieces from video. The drawback is dd knows nothing about keyframes and you can't start a clip without keyframe. | Yeah. Tell me about it.
I've been (earlier) toying around with self made bash script which split the video in chuncks using ffmpeg stream copy.
Then earch chunk gets it's own ffmpeg process for encoding. Finally use ffmpeg to stream copy concatenate the files back together. There was still some serious issues with keyframes. Although during the ecoding part, it might be possible to specify keyframes much better than waht I did.
All in all, I did it back then because I had some problems with few codecs to get properly running with multiple threads.
It's not that relevant today anymore, but might speed up some encodings. :P
Anyway. I've done video splitting with ffmpeg using that stream copy. It's almost the same as using dd, but "safer".
And I think that's what the lossless-cut does under the hood (or rather under heaps of javascript). _________________ ..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Wed Jan 30, 2019 12:27 am Post subject: |
|
|
Still, what's wrong with Avidemux? It stops on keyframes and does not re-encode anything unless you really want to. I'm a CLI freak myself, but when working with video I'd like to see what I'm doing. You can use it from CLI if you want to, you can even build it without GUI. _________________ My Gentoo installation notes.
Please learn how to denote units correctly! |
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3310 Location: Rasi, Finland
|
Posted: Wed Jan 30, 2019 5:57 pm Post subject: |
|
|
Jaglover wrote: | Still, what's wrong with Avidemux? | I have it installed already.
But it does not fit my needs very well. Although its UI is simple and I like it.
Few problems found- Video plsyback from my mobile phone is very slow (maybe I need to adjust frame dropping?).
- The lack of support for lossless codecs.
I know my ffmpeg can handle those. I need to check if it's possible to compile avidemux with system-ffmpeg. _________________ ..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
josephg l33t
Joined: 10 Jan 2016 Posts: 783 Location: usually offline
|
Posted: Wed Jan 30, 2019 10:41 pm Post subject: |
|
|
thank you for this thread and ideas. i've been playing with videos on my phone.. and was a bit lost about editing them. now i have something to start. |
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3310 Location: Rasi, Finland
|
Posted: Wed Jan 30, 2019 11:12 pm Post subject: |
|
|
I could push lossless-cut to my overlay for others to test.
I'll do it if I can force it to use system-ffmpeg. Also I'll see if the same is possible for avidemux.
At the moment I have lots going on with my life, but I try to get something out on the weekend. _________________ ..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
Fitzcarraldo Advocate
Joined: 30 Aug 2008 Posts: 2034 Location: United Kingdom
|
Posted: Wed Jan 30, 2019 11:24 pm Post subject: |
|
|
I hadn't heard of lossless-cut before you created this thread. Looks like an interesting application. If you do create an ebuild, I'll give it a try as I'm keen to try something new. _________________ Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.
Fitzcarraldo's blog |
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3310 Location: Rasi, Finland
|
Posted: Sat Feb 09, 2019 10:54 pm Post subject: |
|
|
I just had first time to propely look into this lossless-cut. My time has been consumed by our dog. He went trough a quite a big operation so I've been "babysitting" him.
Anyways. I've once again learned something: I hate nodejs.
The depency mess with nodejs programs is unbelievable. I've found one possible solution: https://github.com/geaaru/node-ebuilder but I'm not liking it.
Before I dive in to the deepest bog, I'll try to make avidemux to use (local) system-ffmpeg. _________________ ..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
The Doctor Moderator
Joined: 27 Jul 2010 Posts: 2678
|
Posted: Sun Feb 10, 2019 2:58 am Post subject: |
|
|
Maybe openshot is your cup of tea? Also more than you need but it does use the system ffmpeg. _________________ First things first, but not necessarily in that order.
Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box. |
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3310 Location: Rasi, Finland
|
Posted: Sun Feb 10, 2019 11:16 am Post subject: |
|
|
The Doctor wrote: | Maybe openshot is your cup of tea? | Way too unstable. I have installed Shotcut for my more serious editing needs. _________________ ..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3310 Location: Rasi, Finland
|
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3310 Location: Rasi, Finland
|
Posted: Wed Feb 13, 2019 8:47 am Post subject: About to solve this! |
|
|
Progress!
Currently perfectly working solution: vidcutter.
Things I like about it:- fast - seems to use stream copy and can be set to cut video on keyframes
- uses system installed ffmpeg, libmediainfo and mpv
- requires very little tweaking to create an ebuild for it.
Those who are interested can install it via my overlay: https://github.com/Zuccace/zucca-overlay _________________ ..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
vitaly-zdanevich n00b
Joined: 01 Dec 2019 Posts: 71 Location: Belarus
|
Posted: Sat Jul 08, 2023 6:01 pm Post subject: |
|
|
Hi, no ebuild for LosslessCut? |
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3310 Location: Rasi, Finland
|
Posted: Sun Jul 09, 2023 11:41 am Post subject: |
|
|
I can't find it on any overlay.
However there's vidcutter available from ::gentoo. _________________ ..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
ritzmax72 n00b
Joined: 10 Aug 2014 Posts: 70
|
Posted: Sun Jul 16, 2023 5:04 am Post subject: |
|
|
Hmm.. Well, I've been using command line scripts to edit videos and run a youtube channel.
Most, if not all videos have been just ffmpeg; the reason being my hands run faster on keyboard than on mouse.
I tried shotcut but it was slow and laggy. For anything complex like real time zooming in,focusing on parts of video I use blender. |
|
Back to top |
|
|
|