LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 07-07-2022, 09:44 PM   #1
BudiKusasi
Member
 
Registered: Apr 2017
Distribution: Artix
Posts: 345

Rep: Reputation: 15
ffmpeg crop/trim video MP4 after update now is taking so much longer


Anyone may know

How come just for doing a crop/trim video MP4, after update, now ffmpeg is taking
so much longer, many more processes

Code:
$ ffmpeg -i "b.mp4" -to 0:2:20  a.mp4
used to do it nicely done in few seconds
Also
What's difference between ffmpeg and ffmpeg4.4 in Linux repo ?

Last edited by BudiKusasi; 07-07-2022 at 09:55 PM.
 
Old 07-08-2022, 11:30 AM   #2
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,138
Blog Entries: 6

Rep: Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827
Quote:
What's difference between ffmpeg and ffmpeg4.4
Are you using arch
Code:
pacman -Si ffmpeg

pacman -Si ffmpeg4.4
Quote:
ffmpeg -i "b.mp4" -to 0:2:20 a.mp4
You re-encoded it. If you want a section without re-encoding
Code:
ffmpeg -t 00:02:20 -i input.mp4 -c:a copy -c:v copy output.mp4
I'll let you read the man page to see what the default video codec for ffmpeg is.

Also a difference in speed between
Code:
ffmpeg -t 00:02:20 -i input.mp4 -c:a copy -c:v copy output.mp4

ffmpeg -i input.mp4 -t 00:02:20 -c:a copy -c:v copy output.mp4
First one is faster, second one is more accurate.

Read:
man ffmpeg
https://trac.ffmpeg.org/wiki/TitleIndex
https://ffmpeg.org/ffmpeg.html

I know that there is a lot of info there. We are talking about ffmpeg, does anything to a video, but you have to command it.
 
1 members found this post helpful.
Old 07-08-2022, 11:47 AM   #3
BudiKusasi
Member
 
Registered: Apr 2017
Distribution: Artix
Posts: 345

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by teckk View Post
Are you using arch
Code:
pacman -Si ffmpeg

pacman -Si ffmpeg4.4

You re-encoded it. If you want a section without re-encoding
Code:
ffmpeg -t 00:02:20 -i input.mp4 -c:a copy -c:v copy output.mp4
I'll let you read the man page to see what the default video codec for ffmpeg is.

Also a difference in speed between
Code:
ffmpeg -t 00:02:20 -i input.mp4 -c:a copy -c:v copy output.mp4

ffmpeg -i input.mp4 -t 00:02:20 -c:a copy -c:v copy output.mp4
First one is faster, second one is more accurate.

Read:
man ffmpeg
https://trac.ffmpeg.org/wiki/TitleIndex
https://ffmpeg.org/ffmpeg.html

I know that there is a lot of info there. We are talking about ffmpeg, does anything to a video, but you have to command it.
I FORGOT, OF REALLY FORGOT, BTW that's human nature..

SOLVED! THANKS BILLION !!!
 
  


Reply



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] Blender and ffmpeg4 timsoft Slackware 8 04-06-2021 05:48 AM
LXer: The Difference Between more, less And most Commands LXer Syndicated Linux News 0 11-07-2019 01:22 PM
how to use syanptic in fc 5 and how to add repo and which repo to be added.. vikas04522 Fedora 1 08-26-2006 12:41 PM
how to use syanptic in fc 5 and how to add repo in it and which repo is to be added.. vikas04522 Linux - Software 1 08-26-2006 12:29 PM
adding mirror to yum.repo.d/<any-repo> ashwin_cse Fedora 1 03-10-2005 03:49 PM

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

All times are GMT -5. The time now is 12:00 AM.

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