I have a file named "abc.mp4" its of 2 GB, i want a program that will conver it size to 6GB keeping the original video, Is there any method to do this like adding useless bytes at end of video?
Asked
Active
Viewed 9,072 times
0
-
Why do you want to do that? If you do, your original video will gets corrupted. – Pradeep Simha Apr 20 '15 at 08:53
-
@PradeepSimha for testing, any way to do this without curropting? – Ashesh Apr 20 '15 at 08:53
-
1stackoverflow is for coding and not for software suggestions. – Loki Apr 20 '15 at 08:59
-
@Loki Think before you say Please :) http://stackoverflow.com/questions/2079350/is-there-a-software-to-test-a-website-in-all-browsers – Ashesh Apr 20 '15 at 09:01
-
2@AsheshKumar [That question](http://stackoverflow.com/questions/2079350/is-there-a-software-to-test-a-website-in-all-browsers) is about software that is to be used by software developers. Question like that can be on-topic *in some cases*. However, questions about software not used for development is almost never on topic on Stack Overflow, but some may be suitable for [Super User](http://superuser.com/). – Jeremy Apr 26 '15 at 02:43
2 Answers
3
try this
RandomAccessFile r = new RandomAccessFile(path, "rw");
r.setLength(6L * 1024 * 1024 * 1024);
r.close();

Evgeniy Dorofeev
- 133,369
- 30
- 199
- 275
-
-
Thank you for showing me a new Class that is quite useful. (I didn't know about `RandomAccessFile`) – Loki Apr 20 '15 at 09:04
-
AWESOME! Works like a pro! The full verison is it http://pastebin.com/ZMD9Xu7g – Ashesh Apr 20 '15 at 09:07