Log in

View Full Version : Blank video


iSeries
22nd April 2018, 03:07
Hi,

I'd like to create a bluray audio disc, wondered how I go about creating a blank (black) video track with x264?

raffriff42
22nd April 2018, 03:37
x264 can't generate video, so you will need some other software (maybe a GUI like Movie Studio, or an ffmpeg command, or an AviSynth script).

What software do you know and use now? Knowing that, someone here can tell you the best way for you to create a blank track.

For example, ffmpeg (stolen from here (https://stackoverflow.com/questions/11453082/how-to-generate-a-2hour-long-blank-video)) ffmpeg -f lavfi -i color=c=black:s=640x480 -i audio.ogg -c:v libx264 -tune stillimage -pix_fmt yuv420p -shortest -c:a aac -b:a 128k output-with-audio.mp4

Avisynth (off top of head, not tested)## 2 hours of black
BlankClip(width=640, height=480, fps=30000, fps_denominator=1001, pixel_type="YV12", length=30*60*60*2)

## add audio
AudioDub(DirectShowSource("audio.ogg"))

## trim to audio duration
AudioTrim(0.0, length=AudioDuration)The AviSynth script could be opened in any compatible encoding software (too many to list here - like I said, what do you use now?)

iSeries
22nd April 2018, 23:25
Ffmpeg worked perfect, thanks