Skip to content
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

[Help] Problem with ffmpeg on Termux #164

Open
BarteQ2022 opened this issue Jul 28, 2024 · 8 comments
Open

[Help] Problem with ffmpeg on Termux #164

BarteQ2022 opened this issue Jul 28, 2024 · 8 comments
Labels
help wanted Extra attention is needed

Comments

@BarteQ2022
Copy link

I need Help.

I have a problem with ffmpeg on termux, I know it's an Android platform but the script is written in Python, I looked for a lot of solutions but they didn't help me, the rest works fine without it but I would like files in .FLAC
Screenshot_20240728_223344_Termux
Screenshot_20240728_223337_Termux

What operating system are you seeing the problem on?

None

Your settings

{"skip_existing": "False", "lyrics_embed": true, "lyrics_file": false, "video_download": true, "download_delay": true, "download_base_path": "/storage/emulated/0/TidalDownload", "quality_audio": "HI_RES_LOSSLESS", "quality_video": "480", "format_album": "Albums/{album_artist} - {album_title}{album_explicit}/{album_track_num}. {artist_name} - {track_title}", "format_playlist": "Playlists/{playlist_name}/{artist_name} - {track_title}", "format_mix": "Mix/{mix_name}/{artist_name} - {track_title}", "format_track": "Tracks/{artist_name} - {track_title}{track_explicit}", "format_video": "Videos/{artist_name} - {track_title}{track_explicit}", "video_convert_mp4": true, "path_binary_ffmpeg": "/data/data/com.termux/files/usr/bin/ffmpeg", "metadata_cover_dimension": "1280", "extract_flac": true, "downgrade_on_hi_res": false}
@BarteQ2022 BarteQ2022 added the help wanted Extra attention is needed label Jul 28, 2024
@IJWTU12
Copy link

IJWTU12 commented Jul 29, 2024

First you gotta install ffmpeg by
pkg install ffmpeg
and then
pkg files ffmpeg for show the path of ffmpeg is installed
and find ffmpeg. it should look something like this
/data/data/com.termux/files/usr/bin/ffmpeg
then you can put the path in config by
tdn cfg and tdn cfg path_binary_ffmpeg "Path of your ffmpeg"

@BarteQ2022
Copy link
Author

First you gotta install ffmpeg by pkg install ffmpeg and then pkg files ffmpeg for show the path of ffmpeg is installed and find ffmpeg. it should look something like this /data/data/com.termux/files/usr/bin/ffmpeg then you can put the path in config by tdn cfg and tdn cfg path_binary_ffmpeg "Path of your ffmpeg"

This doesn't help, I still get this error: "AttributeError: module 'ffmpeg' has no attribute 'input'". And ffmpeg is installed: "ffmpeg is already the newest version (6.1.1-5)."

@IJWTU12
Copy link

IJWTU12 commented Jul 30, 2024

Try to reinstall the ffmpeg by pkg uninstall ffmpeg and pkg install ffmpeg if it doesn't work maybe others could provide the help you wish more than me.

@BarteQ2022
Copy link
Author

Try to reinstall the ffmpeg by pkg uninstall ffmpeg and pkg install ffmpeg if it doesn't work maybe others could provide the help you wish more than me.

Uninstalling and installing doesn't help. Is there any alternative or other ffmpeg for termux? Or something that would work?

@unimetal
Copy link

Try to install ffmpeg via pip:
pip3.11 install ffmpeg

@BarteQ2022
Copy link
Author

Try to install ffmpeg via pip: pip3.11 install ffmpeg

This not working

@unimetal
Copy link

I use the following Version which is working at ubuntu.
ffmpeg version 6.1.1-3ubuntu5+esm1 Copyright (c) 2000-2023 the FFmpeg developers built with gcc 13 (Ubuntu 13.2.0-23ubuntu4)
Maybe you have to find a comparable built for android. I don't know if it works, but you can download a prebuilt binary here and then edit the tidal-dl-ng ffmpeg path to your downloaded binary. Good luck.
https://github.com/tanersener/mobile-ffmpeg/releases

@BarteQ2022
Copy link
Author

I use the following Version which is working at ubuntu. ffmpeg version 6.1.1-3ubuntu5+esm1 Copyright (c) 2000-2023 the FFmpeg developers built with gcc 13 (Ubuntu 13.2.0-23ubuntu4) Maybe you have to find a comparable built for android. I don't know if it works, but you can download a prebuilt binary here and then edit the tidal-dl-ng ffmpeg path to your downloaded binary. Good luck. https://github.com/tanersener/mobile-ffmpeg/releases

I saw it but I don't know how to add it to termux

@exislow exislow removed their assignment Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants