Cut audio clips and screen shots from the MP4 Timestapes
The best option (implementation) for creating a set of audio fragments and screen shots based on a video file needs to be explored and proposed.
At the entrance, the program receives:
- video file with one or more audio tracks
- text file with subtitles
- Arguments (audio track number, audio fadein/fadeout in milliseconds, see para. (see example)
audioTrack=1
FadeIn=200
FadeOut=200
At exit:
- audio fragments recorded in the folder (in mp3 format, bitrate the same as in the video)
- screen shots recorded in another folder (png format, resolution same as video)
I'm guessing we can do this with a ffpeg call.
Then the Java control program you've written should untweet the subtitles, make all the necessary calls ffmpeg with the right parameters.
Video for testing (Family Guy s1e1, 20min, 173Mb):
https://drive.google.com/file/d/1tRRU51a9kjHC47we_Vunl4_1FxF6Wotd/view?usp=sharing
Subtitles:
https://drive.google.com/file/d/1CflWB9nJ_SZKahWf7an5SN4Tv22Cty/view?usp=sharing
Assess how much it's going to cost to develop a prototype of this program.
(Prototype means you don't want to try to do the code, the optimization, the functional diversity, you don't have to write tests - only if it's for yourself.)
Clarification #1:
Screen shots are taken from the video for every audio fragment. The timestamp screen is calculated as the mid-point of audiofragment.screenshotTimetamp =(audioEndTimemp-audioStartTimetamp)/2 Final objective is to create an audio comic book for the web. The generation of this comic book is a separate story.
Clarification #2:
You can use ffmpeg-cli-wrapper.
Clarification #3:
There is also a need to add fadein/fadeout for audio fragments so that they do not sound ripped. Apparently, you can use afade filter. Example of use:
ffmpeg-i music.mp3-af"afade=t=in:st=0:d=0.5"out.mp3
ffmpeg-i music.mp3-af"afade=t=out:st=5:d=0.5"out.mp3 links to other examples
So maybe we'll have to use ffpeg several times for each fragment: cut the fadeIn fadeOut compression into mp3
Plik z rezultatem
Opinia zleceniodawcy o współpracy z Lyubomir B.
Cut audio clips and screen shots from the MP4 TimestapesMikołaj napisał świetny kod źródłowy. Korzystając z Streams, Consumer, Java 17. Bardzo dobrze wykorzystywana jest biblioteka net.bramp.ffmpeg. Wszystkie operacje za pomocą parametrów są obniżone do jednego, proces batch działa szybko. To jest to, co opisałem w zadaniu. A nawet lepiej. Dziękuję .
Opinia freelancera o współpracy z Vitaly Sazanovich
Cut audio clips and screen shots from the MP4 TimestapesZadaniem technicznym jest jak najbardziej jasne i zrozumiałe, ciekawy projekt i terminowe zapłaty. Cieszę się, że się zajmuje!
Aktualne zlecenia dla freelancerów w kategorii Java
Opracowanie aplikacji Android odtwarzacza dla usługi telewizji online
2205 PLN
Potrzebny programista Android do stworzenia natywnej aplikacji Android dla usługi telewizji online. Planowane są dwie wersje: dla urządzeń mobilnych: smartfony i tablety; dla Android TV / Android STB: dekodery. Orientacyjne terminy: do 3 miesięcy. Orientacyjny budżet: 150… Java, Programowanie na Androida ∙ 1 miesiąc 1 dzień temu ∙ 32 oferty |