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

2 réponses [Dernière contribution]
GNUser
Hors ligne
A rejoint: 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
Hors ligne
A rejoint: 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
Hors ligne
A rejoint: 07/17/2013

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