Feature #132

Task #227: Sample template demo

Automated audio cross fades between individual clips

Added by SteveWyshy over 5 years ago. Updated over 4 years ago.

Status:ClosedStart date:05/11/2012
Priority:UrgentDue date:01/25/2013
Assignee:n8fr8% Done:

50%

Category:-Estimated time:8.00 hours
Target version:Dev Sprint 5
Component:

Description

a 1 second cross fade should be applied to both audio and video clips that are combined together with the template.

Associated revisions

Revision 0590f80f
Added by vitriolix about 2 years ago

Merge pull request #132 from StoryMaker/sqlite_fix

Sqlite fix

History

#1 Updated by n8fr8 over 5 years ago

  • Status changed from New to In Progress
  • Assignee changed from SteveWyshy to n8fr8

#2 Updated by SteveWyshy over 5 years ago

An important distinction Nathan, the cross fade should only apply to the audio of the video clip. Crossfading the picture from one clip to another is unnecessary.

We were simply trying to make sure we had the functionality for both audio to audio fading as well as video to video. But, it is not necessary for the video in the clips to have a visual crossfade, only an audio one.

n8fr8 wrote:

Working on crossfades this week, based on this concept:
http://nerdcore-enthusiasm.blogspot.com/2010/05/crossfade-two-videos-clips-from-command_340.html

#3 Updated by n8fr8 over 5 years ago

Thanks for the clarification. We will focus then on "sox" which is an open-source command line audio processer that has all the fx we need.

There is an existing project for running on Android (https://github.com/Kyborg2011/SoxPlayer) though we may want to just create our own build from scratch. TBD!

#4 Updated by abeluck over 5 years ago

  • Parent task set to #227

#5 Updated by n8fr8 over 5 years ago

  • Assignee changed from n8fr8 to hans

Hans - can you look into this... can we do audio crossfades with ffmpeg, or will need to use sox or some other tool to operate on the audio tracks?

#6 Updated by hans over 5 years ago

So in order for there to be audio cross-fades, there needs to be separate audio tracks that are cut 1 second before the video and 1 second after the video. This is needed so that the audio tracks overlap when combined, and then can therefore be crossfaded. Is there already infrastructure in place for working with the audio tracks separately than video?

And I'll second Nathan in that I think you cannot do fades/cross-fades with ffmpeg as it stands now. So our options are either use sox or I can also easily write a 'afade' filter for ffmpeg. I think that having an 'afade' plugin for ffmpeg will be the more manageable option in the long run, while using sox will probably be the quickest route to getting something working.

#7 Updated by abeluck over 5 years ago

hans wrote:

So in order for there to be audio cross-fades, there needs to be separate audio tracks that are cut 1 second before the video and 1 second after the video. This is needed so that the audio tracks overlap when combined, and then can therefore be crossfaded. Is there already infrastructure in place for working with the audio tracks separately than video?

Are you talking about in the java wrapper or in ffmpeg? In Java, not yet. But in ffmpeg we can easily split out audio video tracks into separate files.

And I'll second Nathan in that I think you cannot do fades/cross-fades with ffmpeg as it stands now. So our options are either use sox or I can also easily write a 'afade' filter for ffmpeg. I think that having an 'afade' plugin for ffmpeg will be the more manageable option in the long run, while using sox will probably be the quickest route to getting something working.

No comment here, Nathan?

#8 Updated by n8fr8 over 5 years ago

  • Target version changed from Dev Sprint 1 to Dev Sprint 2

I would rather stick with ffmpeg filters if possible, and not introduce another binary/system into the mix.

We have a little time to get this right (moving to Dev Sprint 2), so no need to hack something right now.

#9 Updated by abeluck about 5 years ago

I've ported sox to android inside android-ffmpeg. While this might be less than ideal, but we're in a time crunch and since sox depends on ffmpeg, this was the easiest solution.

Furthermore, I've integrated it into android-ffmpeg-java. I only implemented the bare minimum needed to serve our needs: simple crossfade.

Pull requests are out for each repo:

I also pushed the Android Test Project I used.

#10 Updated by abeluck about 5 years ago

  • Status changed from In Progress to Feedback
  • Assignee changed from hans to n8fr8
  • Priority changed from Normal to High

#11 Updated by n8fr8 about 5 years ago

  • Target version changed from Dev Sprint 2 to Dev Sprint 4

#12 Updated by n8fr8 about 5 years ago

  • Due date set to 01/25/2013
  • Estimated time set to 8.00

#13 Updated by n8fr8 almost 5 years ago

  • Target version changed from Dev Sprint 4 to Dev Sprint 5

#14 Updated by baghdadbrian almost 5 years ago

  • Priority changed from High to Urgent

#15 Updated by n8fr8 almost 5 years ago

  • Status changed from Feedback to In Progress
  • % Done changed from 0 to 50

completed for audio stories. now need it for video!

#16 Updated by n8fr8 almost 5 years ago

  • Status changed from In Progress to Resolved

This is now implemented (FINALLY!) using Abel's excellent port of Sox.

You can see a sample here:
https://storymaker.cc/videofade/

#17 Updated by SteveWyshy over 4 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF