Input parameters to FFMPEG

后端 未结 2 433
青春惊慌失措
青春惊慌失措 2020-12-12 07:30

I am trying to make an FFMPEG script that relied on a glob input pattern from Linux to Windows. Unfortunately that is not supported so I am looking for an alternative. I do

相关标签:
2条回答
  • 2020-12-12 08:01

    The workarounds are to prepare a text file with the names and use the concat demuxer.

    Or you can use image2pipe

    cat *.jpg | ffmpeg -f image2pipe -framerate 25 -i - out.mp4
    
    0 讨论(0)
  • 2020-12-12 08:10

    The best solution I could find (that's Windows compatible) was to generate a line separated list of files in a text file and pass that through to FFMPEG. For example, to generate a stabilized MP4 from a bunch of JPEGs:

    ffmpeg -f concat -safe 0 -i ./files.txt -vf deshake=rx=64:ry=64 ./stabilized.mp4
    

    Where files.txt is a list of the files in the following format. The safe option toggles the ability to have absolute/relative file paths.

    # this is a comment
    file 'C:/path/to/file1.jpg'
    file 'C:/path/to/file2.jpg'
    file 'C:/path/to/file3.jpg'
    
    0 讨论(0)
提交回复
热议问题