Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
242 views
in Technique[技术] by (71.8m points)

java - Problem with processing FFMPEG video , the output video is totally black in first 3 seconds

I want to make a slideshow by using concat demuxer like this link: https://trac.ffmpeg.org/wiki/Slideshow

Here is the textfile preinputFiles.txt:

file 'path a'
duration 2
file 'path b'
duration 2
file 'path c'
duration 2
file 'path c'

and my command array is:

String[] cmd = new String[]{
            "-f","concat","-i",
            textFile,
            "-vsync", "vfr", "-pix_fmt", "yuv420p",
            dest.getAbsolutePath()};

the video has 3 seconds that it is totally black and run from 3s to 9s even the gallery shows that it is a 6 seconds long video .

Thanks for the help!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...