LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to transfer 4.5 GB mp4 file or split it in two parts? (https://www.linuxquestions.org/questions/linux-software-2/how-to-transfer-4-5-gb-mp4-file-or-split-it-in-two-parts-4175736818/)

Igor Evgen 05-08-2024 07:29 AM

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.

fatmac 05-08-2024 07:50 AM

It likely depends on the file system you are using on that StoreJet drive.

pan64 05-08-2024 08:57 AM

https://www.geeksforgeeks.org/split-...with-examples/

michaelk 05-08-2024 10:09 AM

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

Igor Evgen 05-09-2024 12:27 AM

Quote:

Originally Posted by michaelk (Post 6500513)
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?

jefro 05-09-2024 02:42 PM

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.

mjolnir 05-09-2024 03:24 PM

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.

teckk 05-10-2024 11:19 AM

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


Igor Evgen 05-11-2024 06:10 AM

Quote:

Originally Posted by mjolnir (Post 6500769)
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.

mjolnir 05-11-2024 07:33 AM

Quote:

Originally Posted by Igor Evgen (Post 6501071)
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.

Igor Evgen 05-11-2024 07:34 AM

Quote:

Originally Posted by teckk (Post 6500932)
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:

jmccue 05-11-2024 10:15 AM

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.

teckk 05-11-2024 11:02 AM

Code:

ffprobe Matthew.mp4
Lets see what the video is.

teckk 05-11-2024 11:10 AM

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

Igor Evgen 05-11-2024 12:11 PM

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.


All times are GMT -5. The time now is 07:51 PM.