Search
Search titles only
By:
Search titles only
By:
Forums
New posts
Search forums
What's new
New posts
Latest activity
Feedback
View Statistics
Members
Current visitors
Buy Sell Trade
WTB
Log in
Register
Search
Search titles only
By:
Search titles only
By:
New posts
Search forums
Menu
Install the app
Install
Reply to thread
Forums
Technology
Computer Software
Linux shell scripts and ffmpeg builds for you to compress mp4 video file according to your needs.
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="rupeshforu3" data-source="post: 2328096" data-attributes="member: 89235"><p>My experiences are as follows.</p><p></p><p>I thought that converting x264 mp4 to x265 mp4 file would reduce the memory space to half but it's not true. The source file and compressed file are of same size and some times output video file size is greater than source file.</p><p></p><p>There are two streams in any video file they are video and audio. If you play any video file you are going to view video and at the same time you are going to listen audio.</p><p></p><p>Suppose I have a x264 video mp4 file with video bitrate as 128 kbps and audio bitrate as 128 kbps and memory space of 93 mb. I have tried to compress this file in a number of ways.</p><p></p><p>When I have used ffmpeg and x265, with crf 24 option, fdkaac with audio bitrate as 50 kbps. The output video file size is 105 mb. After that I have seen the properties of the output video file with media info tool and found that video bitrate as 190 kbps and audio bitrate as 50 kbps. The quality of source and output video files are same.</p><p></p><p>After that I have used ffmpeg tool and x265 with crf 28 option this time the output video file size is 95 mb. After that I have seen the properties of output video file using media info tool and found that the video bitrate as 160 kbps. The quality of source and output video files are same.</p><p></p><p>After that I have used ffmpeg tool and x265 with no crf option but I have used -preset slow and this time the output video file size is 96 mb. After that I have seen the properties of output video file using media info tool and found that the video bitrate is 160 kbps.</p><p></p><p>After that I have used ffmpeg tool and x265 and two pass encoding without any crf option and I have not used any video bitrate and this time the output video file size 95 mb. After that I have seen the properties of output video file using media info tool and found that the video bitrate as 130 kbps.</p><p></p><p>Finally I have used ffmpeg tool and x265 with 2 pass encoding and video bitrate same as the source video file. This time the output video file size is 90 mb. After that I have seen the properties of output video file using media info tool and found that the video bitrate is same as source video file. The quality of the output video file is very good compared to all previous.</p><p></p><p>Here the lesson I learnt is when we pass crf option below 28 the video is converted with bitrate greater than the bitrate of source video file. The same is happening when you use options such as preset slow etc.,. Finally the output video file size is greater than source file.</p><p></p><p>The best way is to use ffmpeg tool and x265 with 2 pass encoding and fdkaac 50 kbps and passing the video bitrate as option. Here the video bitrate passed is same as the source file video bitrate.</p><p></p><p>After a lot of experiments I found that libx264 and libx265 offer same quality with same parameters used.</p><p></p><p>Now work is going on to produce x266 and vvc etc,. I think that using these may produce better compressed video files.</p><p></p><p>Another interesting point is that there are av1, daala video codecs which provides better quality than mp4. Try to visit the wikipedia pages of av1, daala.</p><p></p><p>Regards,</p><p>Rupesh.</p></blockquote><p></p>
[QUOTE="rupeshforu3, post: 2328096, member: 89235"] My experiences are as follows. I thought that converting x264 mp4 to x265 mp4 file would reduce the memory space to half but it's not true. The source file and compressed file are of same size and some times output video file size is greater than source file. There are two streams in any video file they are video and audio. If you play any video file you are going to view video and at the same time you are going to listen audio. Suppose I have a x264 video mp4 file with video bitrate as 128 kbps and audio bitrate as 128 kbps and memory space of 93 mb. I have tried to compress this file in a number of ways. When I have used ffmpeg and x265, with crf 24 option, fdkaac with audio bitrate as 50 kbps. The output video file size is 105 mb. After that I have seen the properties of the output video file with media info tool and found that video bitrate as 190 kbps and audio bitrate as 50 kbps. The quality of source and output video files are same. After that I have used ffmpeg tool and x265 with crf 28 option this time the output video file size is 95 mb. After that I have seen the properties of output video file using media info tool and found that the video bitrate as 160 kbps. The quality of source and output video files are same. After that I have used ffmpeg tool and x265 with no crf option but I have used -preset slow and this time the output video file size is 96 mb. After that I have seen the properties of output video file using media info tool and found that the video bitrate is 160 kbps. After that I have used ffmpeg tool and x265 and two pass encoding without any crf option and I have not used any video bitrate and this time the output video file size 95 mb. After that I have seen the properties of output video file using media info tool and found that the video bitrate as 130 kbps. Finally I have used ffmpeg tool and x265 with 2 pass encoding and video bitrate same as the source video file. This time the output video file size is 90 mb. After that I have seen the properties of output video file using media info tool and found that the video bitrate is same as source video file. The quality of the output video file is very good compared to all previous. Here the lesson I learnt is when we pass crf option below 28 the video is converted with bitrate greater than the bitrate of source video file. The same is happening when you use options such as preset slow etc.,. Finally the output video file size is greater than source file. The best way is to use ffmpeg tool and x265 with 2 pass encoding and fdkaac 50 kbps and passing the video bitrate as option. Here the video bitrate passed is same as the source file video bitrate. After a lot of experiments I found that libx264 and libx265 offer same quality with same parameters used. Now work is going on to produce x266 and vvc etc,. I think that using these may produce better compressed video files. Another interesting point is that there are av1, daala video codecs which provides better quality than mp4. Try to visit the wikipedia pages of av1, daala. Regards, Rupesh. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Technology
Computer Software
Linux shell scripts and ffmpeg builds for you to compress mp4 video file according to your needs.
Top
Bottom