LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-13-2018, 09:35 AM   #1
JMacSmith
Member
 
Registered: May 2017
Posts: 33

Rep: Reputation: Disabled
I have to cut out the naughty bits from a few videos (avi, mp4, mkv, etc.)


I work part of the year in a country that has very socially conservative religious laws and I'd like to cut out some of the naughtier bits out of the videos I store on my hard drive. It is unlikely in the extreme that I would ever be caught with them, but I don't want to take any chances.

Any recommendations on software with which I can do this but that won't affect the quality of the end product?

Thank you
 
Old 06-13-2018, 10:26 AM   #2
high-n-low
LQ Newbie
 
Registered: Jun 2018
Posts: 14

Rep: Reputation: Disabled
I would try avidemux
 
Old 06-13-2018, 10:27 AM   #3
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,478

Rep: Reputation: Disabled
Perhaps Openshot - I use it to create & trim videos.
 
Old 06-13-2018, 11:43 AM   #4
petelq
Member
 
Registered: Aug 2008
Location: Yorkshire
Distribution: openSUSE(Leap and Tumbleweed) and a (not so) regularly changing third and fourth
Posts: 627

Rep: Reputation: Disabled
Quote:
Originally Posted by high-n-low View Post
I would try avidemux
That would be my choice too. I remove adverts from recordings with it.
 
Old 06-13-2018, 02:19 PM   #5
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,136
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
If you want to use ffmpeg

Look through the video to find the start and stop timestamps for the parts that you wish to cut, and record them. You can use ffplay to make sure that you have them correctly.

Short examples:

1st edit, commercial starts at 12:14, stops at 13:34
Code:
ffplay -ss 00:12:14
ffplay -ss 00:13:34
2nd edit, commercial starts at 16:02, stops at 17:05
Code:
ffplay -ss 00:16:02
ffplay -ss 00:17:05
After you are sure what parts to cut, dump the saved parts to files
Code:
ffmpeg -ss 00:12:14 -t 00:01:20 -i Original.mp4 -c:a copy -c:v copy part1.mp4

ffmpeg -ss 00:16:02 -t 00:01:03 -i Original.mp4 -c:a copy -c:v copy part2.mp4
Make an empty text file
Code:
touch textfile
Format your entries like this
Code:
file 'part1.mp4'
file 'part2.mp4'
Put them together into one video.
Code:
ffmpeg -f concat -i textfile -c:a copy -c:v copy Finished.mp4
 
Old 06-13-2018, 02:40 PM   #6
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,136
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
I may not have been clear with those examples. They actually keep the commercials. Sorry, going too fast.

To keep the video on the first one from the start to 12:14
Code:
ffmpeg -t 12:14....1.mp4
To keep the second segment from 13:34 to 16:02
Code:
ffmpeg -ss 00:13:34 -t 00:02:28....2.mp4
Then from 17:05 to end
Code:
ffmpeg -ss 00:17:05.....3.mp4

Last edited by teckk; 06-13-2018 at 02:43 PM.
 
Old 06-13-2018, 03:02 PM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,617

Rep: Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963
Quote:
Originally Posted by JMacSmith View Post
I work part of the year in a country that has very socially conservative religious laws and I'd like to cut out some of the naughtier bits out of the videos I store on my hard drive. It is unlikely in the extreme that I would ever be caught with them, but I don't want to take any chances.

Any recommendations on software with which I can do this but that won't affect the quality of the end product?

Thank you
Off topic I know, but have you considered just creating a hidden, encrypted partition on your drive? Not hard:
https://www.linuxvoice.com/hidden-en...fe-and-secret/

Even if your system is breached, you'd probably still be ok. And if you're honestly afraid for your safety, and could be jailed (or worse) for viewing such things, why even bring them at all? Leave them on a cloud-account with a strong password as an encrypted file. Download over internet, view, and delete afterwards. Even can have a script to delete/nuke a particular directory on boot up if you're that worried.
 
1 members found this post helpful.
Old 06-13-2018, 03:57 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,973

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
Buy new clean system and take it next time you go. Why chance it?

Wish there was a way to make the world G rated gosh golly.
 
Old 06-13-2018, 04:22 PM   #9
Mike_Walsh
Member
 
Registered: Jul 2017
Location: King's Lynn, UK
Distribution: Nowt but Puppies....
Posts: 660

Rep: Reputation: 362Reputation: 362Reputation: 362Reputation: 362
TBH, if you bought/borrowed/downloaded/torrented such movies, you probably did so for the 'naughty bits'. We're all adults here; it would be a bit pointless watching them otherwise.

Jefro's hit the nail on the head. If the country you work in has strict religious laws about such things (and I'll hazard a guess either somewhere in the Middle East, or the Far East; I know for a fact that some of them get seriously nasty about anything like that), then I personally wouldn't even take the risk.

I'd leave 'em at home.....and practice abstinence for the duration!


Mike.

Last edited by Mike_Walsh; 06-13-2018 at 04:23 PM.
 
Old 06-13-2018, 05:00 PM   #10
petelq
Member
 
Registered: Aug 2008
Location: Yorkshire
Distribution: openSUSE(Leap and Tumbleweed) and a (not so) regularly changing third and fourth
Posts: 627

Rep: Reputation: Disabled
I'm assuming they're otherwise acceptable films with a bit of sex in. A good thriller can be just as good with the unnecessary sex removed. And while fairly explicit scenes are acceptable these days in the west, in places like the emirates etc they're not.
There's a few people here assuming the worst.
 
Old 06-14-2018, 12:45 AM   #11
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
[ot]
i've seen videos from islamic countries (sorry for being so broad, i honestly don't remember which one) where a dead & mutilated man's body was shown in all its gore, however his (unhurt) bellybutton was blacked (censored) out, and so were the faces of a few women around.

so, i don't think op is assuming the worst (mike_walsh might be, however).

personally, i think if they confiscate your laptop in a country like that, you're probably already toast anyway. i would choose encryption instead of editing.
[/ot]


let's see how it goes with the ffmpeg commands, that's what i would've suggested.
if you do that a few times (and know how to use your shell's history & tab completion), it's actually much quicker than some clicky gui software.

Last edited by jefro; 06-14-2018 at 02:57 PM.
 
Old 06-14-2018, 03:17 AM   #12
petelq
Member
 
Registered: Aug 2008
Location: Yorkshire
Distribution: openSUSE(Leap and Tumbleweed) and a (not so) regularly changing third and fourth
Posts: 627

Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
so, i don't think op is assuming the worst (mike_walsh might be, however).
That's what I was trying to hint at.
 
Old 07-07-2018, 09:06 PM   #13
X-LFS-2010
Member
 
Registered: Apr 2016
Posts: 510

Rep: Reputation: 58
https://www.apple.com/imovie/

you can use iMovie on your iPhone or mac

you can use linux, but it's worth a little to use a fully fledged multimedia machine to do multimedia work

(you should have both - you shouldn't force yourself to use ffmpeg commandline tools)

----------------------------------------

you need files movies and can't find any you don't have to hand edit

i don't believe OP. i simply don't. troll post.
 
Old 07-08-2018, 04:33 AM   #14
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by X-LFS-2010 View Post
https://www.apple.com/imovie/

you can use iMovie on your iPhone or mac

you can use linux, but it's worth a little to use a fully fledged multimedia machine to do multimedia work

(you should have both - you shouldn't force yourself to use ffmpeg commandline tools)

----------------------------------------

you need files movies and can't find any you don't have to hand edit

i don't believe OP. i simply don't. troll post.
reported.

this is definitely at least the third post where this poster accuses people of being trolls or otherwise attacks them for no good reason.
also giving totally useless advice, and resurrecting threads that have already quietly slumbered away.

also see my answer here: https://www.linuxquestions.org/quest...7/#post5876921
 
2 members found this post helpful.
Old 07-08-2018, 07:59 AM   #15
JMacSmith
Member
 
Registered: May 2017
Posts: 33

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
reported.

this is definitely at least the third post where this poster accuses people of being trolls or otherwise attacks them for no good reason.
also giving totally useless advice, and resurrecting threads that have already quietly slumbered away.

also see my answer here: https://www.linuxquestions.org/quest...7/#post5876921
Thanks. I just added him to my ignore list.

I still don't know what I said that's so unbelievable and trollish––I work in Saudi Arabia half the year and I have a lot of R-Rated movies and TV shows (e.g. Westworld) on my external hard drive that I'd really rather not get caught with if I'm ever stopped by the Mutaween. If I could cut out the nude scenes and the scenes with adult situations, I'd feel a whole lot more comfortable carrying them around in my backpack.

And, yeah, as you pointed out, there was no need to resurrect this post just to offer me useless advice and then insult me, but whatever.

Last edited by JMacSmith; 07-08-2018 at 08:00 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] large number of mkv - mp4 - webm videos [youtube-dl] need to adjust volume of em. ////// Linux - Software 3 01-12-2018 02:31 AM
[SOLVED] VLC can't play avi and mp4 videos after todays upgrades markush Slackware 15 07-15-2012 12:19 PM
[SOLVED] slackware KDE 4.5.5 - problem, Videos, DVDs, avi, mkv etc .. .. kn0w- Slackware 8 05-26-2012 11:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration