How can I access files created using -segment_time? #712
Replies: 1 comment
-
| Scratch that, I'm able to navigate through the files like so: const args = [
      '-i',
      RECORDING_FILE,
      '-c',
      'copy',
      '-f',
      'segment',
      '-segment_time',
      '200',
      'output%03d.mp4',
    ]
    const ffmpeg = ffmpegRef.current
    await ffmpeg.exec(args)
    // List all files in the root directory
    const fileList = await ffmpeg.listDir('/')
    console.log('Files in the filesystem:', fileList)
    // Filter out your output files
    const outputFiles = fileList.filter(file => file.name.startsWith('output'))
    console.log('Generated segment files:', outputFiles) | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
I'm currently trying:
But how can I access/read the dynamic output file?
Beta Was this translation helpful? Give feedback.
All reactions