05:42
I need a script (in win 10) that will do the following thing:
Retrieve the name of the directory it is in.
In this directory are placed two mp4 files - video and audio separately. The files have different names.
Script will merge them using ffmpeg into one mkv (ffmpeg -i ... - i ... -c copy “the name of the directory in which the script and files.mkv”)
end
The idea is that I put myself this script in some directory, run it and have the job done without typing the command manually.
Thank (...)
08:09
I have a FFmpeg-Python program that puts subtitles into a video, pseudocode below:
for i in range(10000):
video= video.filter(
'drawtext', fontfile=FONT_FILE, text=cur_string, x='(w-text_w)/2', y='(h-text_h)/2',
fontsize=FONT_SIZE, fontcolor=FONT_COLOR, borderw=2, bordercolor=FONT_OUTLINE_COLOR,
enable=f'between(t,i,i+1)')
video.output(PATH).run()
The code above gives the following error:
FileNotFoundError: [WinError 206] The filename or extension is too long
My questions are:
(1) Is (...)
07:07
How can I convert m3u8 file to mp4 file in React Native Expo?
I have tried to convert m3u8 file to mp4 using FFmpegKit but I have this errors:
'Cannot read property 'getLogLevel' of null' and 'Cannot read property 'ffmpegSession' of null'
Also building with this package failing (Could not determine the dependencies of task ':ffmpeg-kit-react-native:compileDebugAidl'.).
Is there a simple and easy way to convert m3u8 file in React Native Expo?
Code I have used:
import FFmpegKit from (...)