-
Notifications
You must be signed in to change notification settings - Fork 126
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
How Modify So Videos Remain Origin Length With Audio? #38
Comments
Is there a solution? |
Yes I solved it. Would you like the solution?
…________________________________________
From: xiaomingzhong <[email protected]>
Sent: Thursday, June 6, 2019 5:38 AM
To: transitive-bullshit/ffmpeg-gl-transition
Cc: Motion Design Studio; Author
Subject: Re: [transitive-bullshit/ffmpeg-gl-transition] How Modify So Videos Remain Origin Length With Audio? (#38)
Is there a solution?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#38?email_source=notifications&email_token=ABRPUWUKM57RKX62GGJGMRDPZDLJ7A5CNFSM4HFUPSHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXCJXJA#issuecomment-499424164>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ABRPUWTUF2X4NZ5WB3YEMOLPZDLJ7ANCNFSM4HFUPSHA>.
|
@MotionDesignStudio I'm sure many people would find your solution useful. Thanks! 😄 |
@MotionDesignStudio How did you do it? |
Let me explain how this works.
I made this python script to help easy some effect with ffmpeg. The source is here. https://github.com/MotionDesignStudio/commandlinemediahelper In the version 3 directory “ver3” this file ffmpegHelper.py will concat your video with audio for you. How to use this. Place all the videos you want to concat into the same directory name in order like this c1.mp4, c22.mp4 c23.mkv, c45.mov on and on. The script will place them in order. You must also use the special stand alone ffmpeg I compiled with gl-transition in the same folder or reference to its path. You also need a transition you would like to use. I like FilmBurn.glsl . Directory transitions contains transitions from gl-transition project. The ffmpeg I compiled was done for Debian 64 bit buster. If it complains about dependencies do the following to see what it needs.
And install those. Use this concat the videos with audio.
Want to see what other things the code automates with ffmpeg. Do the following.
|
(updated @MotionDesignStudio's markdown formatting to be a bit more readable) Thanks a lot @MotionDesignStudio -- this is a really great and thorough breakdown that I'm sure many people will find useful! 😃 |
transitive-bullshit, thanks for editing. How did you format the code that way? I used the insert code and that did not format it. Thanks |
You can click on the |
@MotionDesignStudio Thanks |
@MotionDesignStudio i forked your project |
Good it truly needs more input.
I am going to redo the architect to use more classes, get rid of the dependency, more flexible ffmpeg detection, a whole lot more error handling and how functions are called from command line.
I want to add more affects such as slowmo code and that trendy boomerang effect.
I also want add a text alert after rendering is complete because it can take 12 plus hours to render a video.
I have batch processing way I have been thinking of I need to add.
Long term which I have never done is build a GUI.
…________________________________________
From: xiaomingzhong <[email protected]>
Sent: Friday, June 7, 2019 8:27:49 PM
To: transitive-bullshit/ffmpeg-gl-transition
Cc: Motion Design Studio; Mention
Subject: Re: [transitive-bullshit/ffmpeg-gl-transition] How Modify So Videos Remain Origin Length With Audio? (#38)
@MotionDesignStudio<https://github.com/MotionDesignStudio> i forked your project
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#38?email_source=notifications&email_token=ABRPUWXYX7YMULASJ7DDTZDPZL4ILA5CNFSM4HFUPSHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXHJCMY#issuecomment-500076851>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ABRPUWTVXM2UE3GWWWOYSN3PZL4ILANCNFSM4HFUPSHA>.
|
How can we Merge Video like 1 video have audio another Video have no audio ..then how can we merge this please Provide Command for this |
on Above command there is one issue no concate for silent audio in video file. merge 2 file like 1 video file have sound & another video file have silent audio |
Mansi_spaceO , I forgot to mention this. Yes both video files must have an audio track. If you have a silent video add a silent audio track to it. Currently I do not know of any other way to concat videos using ffmpeg when some have audio tracks while others do not. It is probably possible but what I described was my solution.
…________________________________
From: Mansi_spaceO <[email protected]>
Sent: Tuesday, February 18, 2020 11:10:09 PM
To: transitive-bullshit/ffmpeg-gl-transition <[email protected]>
Cc: Motion Design Studio <[email protected]>; Mention <[email protected]>
Subject: Re: [transitive-bullshit/ffmpeg-gl-transition] How Modify So Videos Remain Origin Length With Audio? (#38)
on Above command there is one issue no concate for silent audio in video file.
merge 2 file like 1 video file have sound & another video file have silent audio
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#38?email_source=notifications&email_token=ABRPUWSHHXWUDZIXJDR64YDRDSWKDA5CNFSM4HFUPSHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMGI55I#issuecomment-588025589>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABRPUWUQGHX6RXP6JTI72ZLRDSWKDANCNFSM4HFUPSHA>.
|
how can i add silent audio ... same length as my Video. can you please
share command for this
…On Wed, Feb 19, 2020 at 10:03 AM Motion Design Studio < ***@***.***> wrote:
Mansi_spaceO , I forgot to mention this. Yes both video files must have an
audio track. If you have a silent video add a silent audio track to it.
Currently I do not know of any other way to concat videos using ffmpeg when
some have audio tracks while others do not. It is probably possible but
what I described was my solution.
________________________________
From: Mansi_spaceO ***@***.***>
Sent: Tuesday, February 18, 2020 11:10:09 PM
To: transitive-bullshit/ffmpeg-gl-transition <
***@***.***>
Cc: Motion Design Studio ***@***.***>; Mention <
***@***.***>
Subject: Re: [transitive-bullshit/ffmpeg-gl-transition] How Modify So
Videos Remain Origin Length With Audio? (#38)
on Above command there is one issue no concate for silent audio in video
file.
merge 2 file like 1 video file have sound & another video file have silent
audio
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<
#38?email_source=notifications&email_token=ABRPUWSHHXWUDZIXJDR64YDRDSWKDA5CNFSM4HFUPSHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMGI55I#issuecomment-588025589>,
or unsubscribe<
https://github.com/notifications/unsubscribe-auth/ABRPUWUQGHX6RXP6JTI72ZLRDSWKDANCNFSM4HFUPSHA
>.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#38?email_source=notifications&email_token=ANCAZ4KI3UJ6NAAPICQ4ZITRDSZAZA5CNFSM4HFUPSHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMGKD4A#issuecomment-588030448>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANCAZ4OUKJWWC7LHZ4GSF4LRDSZAZANCNFSM4HFUPSHA>
.
|
Using the example ffmpeg from this source. How can I modify it so it does not remove the audio and trim the video file lengths to 3 seconds? I already have the videos at the correct length.
`
./ffmpeg
-i c40.mov
-i c42.mov
-i c44.mov
-filter_complex "
[0:v]split[v000][v010];
[1:v]split[v100][v110];
[2:v]split[v200][v210];
[v000]trim=0:3[v001];
[v010]trim=3:4[v011t];
[v011t]setpts=PTS-STARTPTS[v011];
[v100]trim=0:3[v101];
[v110]trim=3:4[v111t];
[v111t]setpts=PTS-STARTPTS[v111];
[v200]trim=0:3[v201];
[v210]trim=3:4[v211t];
[v211t]setpts=PTS-STARTPTS[v211];
[v011][v101]gltransition=duration=1:source=/home/lex/share/python/ffmpegHelper/gl-transitions/transitions/burn.glsl[vt0];
[v111][v201]gltransition=duration=1[vt1];
[v001][vt0][vt1][v211]concat=n=4[outv]"
-map "[outv]"
-c:v libx264 -profile:v baseline -preset slow -movflags faststart -pix_fmt yuv420p
-y out.mp4
`
The text was updated successfully, but these errors were encountered: