Reputation: 41
I have a video file of .mp4 format. I want to convert it into .mpeg. But when the output file size reaches 4GB, the conversion stops with a message something like "av_interleaved_write_frame() file too large"
My file system is ext4.
The commands I used are as below :
ffmpeg -i "input_file.mp4" -q:v 0 -q:a 0 -c:v mpeg2video "output_file.mpeg"
ffmpeg -i "input_file.mp4" -q:v 0 -q:a 0 -c:v mpeg2video -fs 8G "output_file.mpeg"
I understand that the conversion target defaults to DVD, so, the 4GB is the upper limit. can I tweak the target ?
Or, is it possible to dump the output to a subsequent file2Out.mpeg once file1Out.mpeg reaches 4GB
Upvotes: 3
Views: 4850
Reputation: 601
For instance, if your input lasts for 2 hours, you can convert the first hour to one file, and the second hour to another file by using -to
option to stop at a certain position and -ss
(placed before -i
) option to start from a certain position:
ffmpeg -i "input_file.mp4" -to 1:00:00 -q:v 0 -q:a 0 -c:v mpeg2video "output_file_h1.mpeg" && \
ffmpeg -ss 1:00:00 -i "input_file.mp4" -q:v 0 -q:a 0 -c:v mpeg2video "output_file_h2.mpeg"
Upvotes: 1
Reputation: 41
Yes, the reason is the filesystem format. FAT32 doesnt allow an mpeg file to exceed 4GB. thank you
Upvotes: 1