How to create a "ffalse lenght" for a video file?

2 replies [Last post]
GNUser
Offline
Joined: 07/17/2013

Hey guys.
I want to create an empty file (preferably in MKV format) that has a false header so that if a media player opens it will think this is a 3 hour long file.
Is it possible??
I will have mplayer dumping content into the file but I need the time to already be estabilished.

Thanks

BenTheMoose
Offline
Joined: 01/24/2017

Here's something - https://stackoverflow.com/questions/11453082/how-to-generate-a-2hour-long-blank-video

From the link :

" You can use ffmpeg for this:

ffmpeg -t 7200 -s 640x480 -f rawvideo -pix_fmt rgb24 -r 25 -i /dev/zero empty.mpeg

-t: length of the video
-s: frame size
-f: video format
-pix_fmt: pixel format
-r: fps
-i: input "

GNUser
Offline
Joined: 07/17/2013

Thanks!
I will take a look at that. Had been reading around but didn't find that one.