-
Notifications
You must be signed in to change notification settings - Fork 880
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Watermark, concatenate, fade-in, get fps... all in one... but how? #1078
Comments
I made some progress. Except for the first and last steps, I managed to do the rest. In order to obtain the frame rate, I had to run ffmpeg within ffprobe. What is missing is the part where I add an empty audio track. I wasn't able to fit "-f lavfi -t 1 -i anullsrc" into the code. Any help/advice appreciated. Here goes my code:
|
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I'm experimenting on adapting an ffmpeg commmand to node-fluent-ffmpeg. What my command does is
Unfortunately, I was only able to achieve the trimming part or the add logo part but not both the same time. I also wasn't able to retrieve the fps of the lecture video which would be determining the fps of the disclaimer video.
So here goes my code:
ffmpeg -i HIST-192-WEEK-6.mp4 -i logo.png -i disclaimer.jpg -f lavfi -t 1 -i anullsrc -filter_complex "[2:v]fps=fps=30,loop=loop=450:size=30:start=0[v2];[v2]fade=t=in:st=0:d=1,fade=t=out:st=14:d=1[vv2];[0:v]trim=start=1:end=5771,setpts=PTS-STARTPTS,scale=1920:1080[v0];[0:a]atrim=start=1:end=5771,asetpts=PTS-STARTPTS[a0];[v0][1:v]overlay=0:0[vv0];[vv0]fade=t=in:st=0:d=1,fade=t=out:st=5769:d=1[vvv0];[a0]afade=t=in:st=0:d=1,afade=t=out:st=5769:d=1[aa0];[vv2][3:a][vvv0][aa0]concat=n=2:v=1:a=1[vv][aa]" -map [vv] -map [aa] -c:a aac -vcodec libx264 -s 1920x1080 output.HIST-192-WEEK-6.mp4
I hope I'm not asking too much.
Thanks anyway.
The text was updated successfully, but these errors were encountered: