Libretube downloads to mkv converting tool
Find a file
2025-06-29 18:17:08 +03:00
lt2mkv.py init 2025-06-28 19:21:37 +03:00
README.md Fix readme.md 2025-06-29 18:17:08 +03:00

A problem

Libretube saves all downloaded videos in internal app storage and with detached video and audio, this program merge video and audio to one mkv file

Program dependencies

python3 and mkvtoolnix

Usage examples

Moving your downloadings from rooted android phone to linux pc

Step 1

Create work dir on pc, and download lt2mkv.py to work dir

Step 2

Copy audio and video dirs from Android/data/com.github/libretube/files to work dir

Step 3

Create mkv_output dir in work dir

Step 4

Run

python3 lt2mkv.py -audio $PATH_TO_AUDIO_DIR -video $PATH_TO_VIDEO_DIR -mkv $PATH_TO_MKV_OUTPUT

$PATH_TO_AUDIO_DIR is path to your audio dir $PATH_TO_VIDEO_DIR is path to your video dir $PATH_TO_MKV_OUTPUT is path to mkv_output dir

Step 5

Check mkv_output dir for mkv files