Search code examples
ffmpegvideo-editing

can we play ffplay videos continuously?


My requirement is to play ffplay videos as they are joined I do know we can play the one after the other using

ffplay -i 1.mp4 && ffplay -i 2.mp4

but here using this method a tab is being opened for each video and I need close to starting playing video some query is there a way to day them directly without this opening and closing tabs

Hope my query is clear Thank you

I want to play edited videos how we can do with ffplay

ffplay -i 1.mp4 -ss 00:00:30.100 -t 00:00:10 -af volume=2.0,atempo=2.0-vf transpose=0,transpose=0,setpts=1/0.5*PTS,fps=30) && ffplay -i 2.mp4 -ss 00:00:30.100 -t 00:00:10 -af volume=2.0,atempo=2.0-vf transpose=0,transpose=0,setpts=1/0.5*PTS,fps=30)

Solution

  • Use mpv

    ffplay is more of a concept or simple tool than a real player. mpv is like a "super" ffplay and supports playlists:

    mpv <playlist-filename>
    

    mpv supports common playlist formats. Or you can just make a simple list with each file on its own line.

    Or point it to a directory:

    mpv /path/to/files
    

    See man mpv, mpv --help, and the online documentation for more info on playlists (--playlist option).