videoshow icon indicating copy to clipboard operation
videoshow copied to clipboard

Set temporary folders that videoshow uses so I can get this to work on a lambda?

Open sandman45 opened this issue 4 years ago • 0 comments

So I need to get this working on a lambda in AWS.

"_id": "[email protected]", ffmpeg version 4.2.2 npm v 6.14.5 node: v12.13.1

I am creating a video from 1 image and an audio file.

  • works flawlessly when I create the mp4 in videoshow and send it thru elastic transcoder while running locally on my node express server. No errors from Elastic Transcoder.

  • if I use ffmpeg command line, ie spawn a child process, it works until the file duration is longer than 92 seconds.. then it fails every time in Elastic Transcoder.

  • I am running the same 2 commands that is output in terminal when videoshow runs.

below is the commands that get output:

ffmpeg -i /var/folders/c7/skqyhkm96hqdtfrcs5c3xmsh0000gn/T/videoshow-f307e07a-c327-4f55-b67e-c0e09f55edf5 -y -filter_complex concat=n=1:v=1:a=0 /Users/msanders/CODE/imageVideoConvert/image2video/destination/5f368385-b8e3-42ee-9ebc-a72f8407a177.mp4

ffmpeg -i /var/folders/c7/skqyhkm96hqdtfrcs5c3xmsh0000gn/T/videoshow-ebcc6c38-00b4-4b4a-b3bd-0ca6254b79a0 -i /Users/msanders/CODE/imageVideoConvert/image2video/source/assets/uploads/3b3efd3d-6f61-49b5-b8c7-98a233edbb93.mp3 -y -b:a 128k -ac 2 -r 25 -b:v 1024k -vcodec libx264 -filter:v scale=w=1280:h=720 -f mp4 -map 0:0 -map 1:0 -t 0217 -af afade=t=in:ss=0:st=0:d=3 -af afade=t=out:st=214:d=3 -pix_fmt yuv420p /Users/msanders/CODE/imageVideoConvert/image2video/destination/5f368385-b8e3-42ee-9ebc-a72f8407a177.mp4

  • If I can set the temporary file creation in videoshow to be ie /tmp/ instead of /var/folders/c7... then it will work in the lambda since the /tmp/ directory is what is available for file creationg running on the lamda.

  • or option 2 is am I missing something when I run those 2 commands from spawning a child process from ffmpeg? I got it working on the lambda but like I said Elastic Transcoder fails if its over 92 seconds.. 🤷‍♂️

sandman45 avatar Jun 04 '20 22:06 sandman45