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 05-08-2024, 07:29 AM   #1
Igor Evgen
Member
 
Registered: Mar 2019
Location: Ukraine
Posts: 38

Rep: Reputation: Disabled
How to transfer 4.5 GB mp4 file or split it in two parts?


Hi,
When I tried to copy 4.5 GB mp4 video to my StoreJet 25M3 (Linux-formatted), the computer failed to do it and reported, “the file is too large”.
When I tried to split that video (using ffpeg) in two, the terminal answered “no such file or directory”.
So how to transfer 4.5 GB mp4 in one or two pieces?
Thanks.

Last edited by Igor Evgen; 05-08-2024 at 09:55 AM.
 
Old 05-08-2024, 07:50 AM   #2
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,506

Rep: Reputation: Disabled
It likely depends on the file system you are using on that StoreJet drive.
 
1 members found this post helpful.
Old 05-08-2024, 08:57 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,976

Rep: Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337
https://www.geeksforgeeks.org/split-...with-examples/
 
1 members found this post helpful.
Old 05-08-2024, 10:09 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,760

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
Either you have run out of space on the drive or it is formatted as FAT which has a file size limit of 4GB. I think the lowest capacity is 500 GB and would assume already formatted as NTFS
 
1 members found this post helpful.
Old 05-09-2024, 12:27 AM   #5
Igor Evgen
Member
 
Registered: Mar 2019
Location: Ukraine
Posts: 38

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
Either you have run out of space on the drive or it is formatted as FAT which has a file size limit of 4GB. I think the lowest capacity is 500 GB and would assume already formatted as NTFS
michaelk:

It seems, You are right.
I tried --
https://www.howtogeek.com/58953/how-...o-ntfs-format/
-- but found it complicated.
So, what would you propose to convert from FAT to NTFS?
 
Old 05-09-2024, 02:42 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,008

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
Zip programs can be used to manage files for space like that.

There may be a convert filesystem but I'd make a full backup or find a way to shrink original then make a new ntfs then move files as you go until you can delete fat and resize the ntfs.

Last edited by jefro; 05-09-2024 at 06:27 PM.
 
1 members found this post helpful.
Old 05-09-2024, 03:24 PM   #7
mjolnir
Member
 
Registered: Apr 2003
Posts: 824

Rep: Reputation: 105Reputation: 105
Could you show us the command you tried to use to split the file with ffmpeg. If you were in the correct directory it should have had no trouble splitting the file - with the correct name.
 
1 members found this post helpful.
Old 05-10-2024, 11:19 AM   #8
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,146
Blog Entries: 6

Rep: Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834
Example for a 2 hour long video:
Code:
ffmpeg -t 01:00:00 -i MyVid.mp4 -c:a copy -c:v copy Out1.mp4
ffmpeg -ss 01:00:00 -i MyVid.mp4 -c:a copy -c:v copy Out2.mp4
 
2 members found this post helpful.
Old 05-11-2024, 06:10 AM   #9
Igor Evgen
Member
 
Registered: Mar 2019
Location: Ukraine
Posts: 38

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by mjolnir View Post
Could you show us the command you tried to use to split the file with ffmpeg. If you were in the correct directory it should have had no trouble splitting the file - with the correct name.
When I enter the Internet with <split mp4 file with ffmpeg>, I get a lot of recommendations, which I try by the "copy & paste" way only, inserting the video name and the time-recording as recommended. For I am not a pro. Sorry, cannot remember them all.

I understand "the correct directory" as the relevant folder & video-file -- in my case, it's <1993 Matthew ++++ (NIV)> & <The Gospel of Matthew.mp4>. I named the folder and the movie was named by some source long ago.
 
Old 05-11-2024, 07:33 AM   #10
mjolnir
Member
 
Registered: Apr 2003
Posts: 824

Rep: Reputation: 105Reputation: 105
Quote:
Originally Posted by Igor Evgen View Post
When I enter the Internet with <split mp4 file with ffmpeg>, I get a lot of recommendations, which I try by the "copy & paste" way only, inserting the video name and the time-recording as recommended. For I am not a pro. Sorry, cannot remember them all.

I understand "the correct directory" as the relevant folder & video-file -- in my case, it's <1993 Matthew ++++ (NIV)> & <The Gospel of Matthew.mp4>. I named the folder and the movie was named by some source long ago.
I understand. No need to apologize, we all had to start somewhere. It may require a little experimentation but some version of the commands teckk posted should work once you get the file system on your storage device sorted out.
 
1 members found this post helpful.
Old 05-11-2024, 07:34 AM   #11
Igor Evgen
Member
 
Registered: Mar 2019
Location: Ukraine
Posts: 38

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by teckk View Post
Example for a 2 hour long video:
Code:
ffmpeg -t 01:00:00 -i MyVid.mp4 -c:a copy -c:v copy Out1.mp4
ffmpeg -ss 01:00:00 -i MyVid.mp4 -c:a copy -c:v copy Out2.mp4
I tried and failed.
First, meaning the time-count at the end of each copy:

ffmpeg -t 02:10:04 -i Matthew.mp4 -c:a copy -c:v copy Out1.mp4
ffmpeg -ss 04.16.29 -i Matthew.mp4 -c:a copy -c:v copy Out2.mp4

Second, meaning the size of two copies:

ffmpeg -t 02:10:04 -i Matthew.mp4 -c:a copy -c:v copy Out1.mp4
ffmpeg -ss 02.06.25 -i Matthew.mp4 -c:a copy -c:v copy Out2.mp4

Each time, the answer included:

Matthew.mp4: No such file or directory
Invalid duration specification for ss:
 
Old 05-11-2024, 10:15 AM   #12
jmccue
Member
 
Registered: Nov 2008
Location: US
Distribution: slackware
Posts: 703
Blog Entries: 1

Rep: Reputation: 384Reputation: 384Reputation: 384Reputation: 384
Is it Linux to Linux ?

If so I would actually:
  • split it into multiple 512M pieces
  • Do a sha256sum on split files, creating file SHA256
  • Copy, txfr, ... the files
  • verify using sha256sum -c
  • If valid, combine the files

I actually do that for my backups with an encryption in between. I have never had issues.
 
2 members found this post helpful.
Old 05-11-2024, 11:02 AM   #13
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,146
Blog Entries: 6

Rep: Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834
Code:
ffprobe Matthew.mp4
Lets see what the video is.
 
1 members found this post helpful.
Old 05-11-2024, 11:10 AM   #14
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,146
Blog Entries: 6

Rep: Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834
I finally payed attention to what you are trying to do.

Did you see this? Or others.
https://m.youtube.com/watch?v=KqTwSM89aQQ

So for just the audio that would be:
Code:
yt-dlp -f 140 https://m.youtube.com/watch?v=KqTwSM89aQQ -o NIV_Matthew.m4a
 
1 members found this post helpful.
Old 05-11-2024, 12:11 PM   #15
Igor Evgen
Member
 
Registered: Mar 2019
Location: Ukraine
Posts: 38

Original Poster
Rep: Reputation: Disabled
Since my computer and the <portable hard drive Store-Jet 25M3 “Transcend”> are loaded with the same stuff, I had to use G-Parted to convert Transcend from Fat32 to NTFS system, loosing all data, and reloading it back from the computer. That’s all.
Thank you all.
 
1 members found this post helpful.
  


Reply

Tags
video



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
To extract and get some parts/clips out of a MP4 file to be concatenated into another BudiKusasi Linux - Software 4 07-23-2021 05:10 AM
how to split large mpeg file (9 gb) in just two parts by ffmpeg hscfhasc Linux - Newbie 1 08-06-2016 01:25 PM
[SOLVED] [Kali Linux] How do i split a 15.7GB text file into 3 parts also... ArtiSeven Linux - Newbie 18 04-11-2015 03:51 PM
[SOLVED] split huge file into small parts and compress them. xeon123 Linux - General 5 06-02-2011 04:17 AM
bash: how to split a text file in two unequal parts Humbro Programming 7 11-23-2007 07:15 AM

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

All times are GMT -5. The time now is 08:01 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