SHARE
TWEET

Untitled

a guest Jul 22nd, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. "ffmpeg -loglevel panic -y -i "video.mp4" -frames 1 -q:v 1 -vf "select=not(mod(n,40)),scale=-1:120,tile=100x1" video_preview.jpg "
  2.      
  3. let ffmpeg = spawn(
  4. 'ffmpeg', [
  5. '-i', `${ Inputvideofile }`,
  6. '-y',
  7. '-frames',1,
  8. '-q:v', '1',
  9. '-vf', ' "select=not(mod(n,120)),scale=-1:40,tile=10x1 "  ',
  10. `${ outpputImgstripe }`
  11. ]);
  12. ffmpeg.on('exit', (statusCode) => {
  13.     console.log(statusCode)
  14.   if (statusCode === 0) {
  15.      console.log('conversion successful')
  16.   }
  17. })
  18. ffmpeg
  19.   .stderr
  20.   .on('data', (err) => {
  21.     console.log('err:', new String(err))
  22.   })
  23.  
  24. module.exports = router;
  25.      
  26. Error initializing filter 'select' with args '"not(mod(n'n']
  27. err: [String: 'Error reinitializing filters!nFailed to inject frame into filter network: Invalid argumentnError while processing the decoded data for stream #0:0n']
  28. err: [String: 'Conversion failed!n']
  29. 1
  30.      
  31. '-vf', ' "select=not(mod(n,120)),scale=-1:40,tile=10x1 "  ',
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top