-
-
Notifications
You must be signed in to change notification settings - Fork 217
Add path.alternate setting so users can append to PATH inside gpodder.
#1649
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
Conversation
This should make it easier to use ffmpeg and other utilities that are not installed in PATH. The Mac launcher does not honor the environment PATH, making it impossible to override.
|
@Ploddles Could you try running |
|
I’ve never used the command line version but if I run it it does come up with an error:-
** (process:6381): WARNING **: 09:12:56.050: Failed to load shared library 'libglib-2.0.0.dylib' referenced by the typelib: dlopen(libglib-2.0.0.dylib, 0x0009): tried: 'libglib-2.0.0.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlibglib-2.0.0.dylib' (no such file), '/usr/lib/libglib-2.0.0.dylib' (no such file, not in dyld cache), 'libglib-2.0.0.dylib' (no such file), '/usr/local/lib/libglib-2.0.0.dylib' (no such file), '/usr/lib/libglib-2.0.0.dylib' (no such file, not in dyld cache)
… On 8 Aug 2024, at 08:14, auouymous ***@***.***> wrote:
@Ploddles <https://github.com/Ploddles> Could you try running gpo (the command line gpodder client) and tell me if it fails to find libglib?
—
Reply to this email directly, view it on GitHub <#1649 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AMG6JRBV2KGXGD72TJVW5DLZQMLFXAVCNFSM6AAAAABMDHOAJKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZVGEYTGMJUGY>.
You are receiving this because you were mentioned.
|
|
should it be also added to DYLD_LIBRARY_PATH? |
@elelay Was this referring to the gpo/glib issue I mistakening posted in this PR, or the |
|
Hi all
I still haven’t figured out the correct way to enter the path on my mac. Here is what I have copied into my settings.json file:
"alternate": "/Users/benjaminblatter/Downloads/ffmpeg-master-latest-linuxarm64-gpl/bin/"
Do I need the „slash” at the end?
The ultimate goal for me is to get finally audio .m4a files which doesn’t have issues like taking long until they play when I open them in VLC.
Is there a way to check if Gpodder even recognizes the ffmpeg?
How can one add the ffmpeg with the GUI?
I also tried the non-arm linux version, but it doesn’t seem to make a difference. Thanks for your help.
Von: auouymous ***@***.***>
Gesendet: Dienstag, 3. September 2024 04:55
An: gpodder/gpodder ***@***.***>
Cc: Subscribed ***@***.***>
Betreff: Re: [gpodder/gpodder] Add `path.alternate` setting so users can append to PATH inside gpodder. (PR #1649)
should it be also added to DYLD_LIBRARY_PATH?
@elelay <https://github.com/elelay> Was this referring to the gpo/glib issue I mistakening posted in this PR, or the path.alternate setting?
—
Reply to this email directly, view it on GitHub <#1649 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/ACNRICS4R7I7X4NCUKLCH5LZUUQJZAVCNFSM6AAAAABMDHOAJKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRVGUYTMOBYHE> .
You are receiving this because you are subscribed to this thread. <https://github.com/notifications/beacon/ACNRICXHX3AOQQ47QAKVXADZUUQJZA5CNFSM6AAAAABMDHOAJKWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUKTSJFS.gif> Message ID: ***@***.*** ***@***.***> >
|
|
Hi @auouymous I see it was related to the gpo issue and thp already mentioned DYLD_LIBRARY_PATH. |
|
@computerfreak105 are your settings a valid json file (you have a comma (',') before the snippet you showed us).? |
No, remove the trailing slash. |
|
@computerfreak105 And if you run gpodder with -v the log file should contain a line such as "Appending alternate PATH ..." if the config is good. That doesn't mean the directory you gave it is valid or contains a working ffmpeg. The audio_converter extension uses ffmpeg to convert audio files. You could enable it, change |
|
Thanks, auouymous, for your great idea. I’ll do this as soon as possible.
Von: auouymous ***@***.***>
Gesendet: Dienstag, 3. September 2024 09:01
An: gpodder/gpodder ***@***.***>
Cc: computerfreak105 ***@***.***>; Mention ***@***.***>
Betreff: Re: [gpodder/gpodder] Add `path.alternate` setting so users can append to PATH inside gpodder. (PR #1649)
@computerfreak105 <https://github.com/computerfreak105> And if you run gpodder with -v the log file should contain a line such as "Appending alternate PATH ..." if the config is good. That doesn't mean the directory you gave it is valid or contains a working ffmpeg.
The audio_converter extension uses ffmpeg to convert audio files. You could enable it, change use_ogg from false to true in settings, subscribe to https://feeds.libsyn.com/177941/rss and download an episode. If it converts to ogg then you know ffmpeg is working. Be sure to disable that extension when finished.
—
Reply to this email directly, view it on GitHub <#1649 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/ACNRICUXKJCHUVFC3IZWPGDZUVNDXAVCNFSM6AAAAABMDHOAJKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRVG42DONBRGM> .
You are receiving this because you were mentioned. <https://github.com/notifications/beacon/ACNRICWZ4L6QCWJ4U4M5E6DZUVNDXA5CNFSM6AAAAABMDHOAJKWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUKUALNK.gif> Message ID: ***@***.*** ***@***.***> >
|
|
Auouymous, how can one start the Audio converter extension from CLI. I can’t do it with the GUI because it’s probably listed on the next screen page in the settings and pressing page down on my keyboard doesn’t do anything.
So, I tried “extension enable audio_converter” and get the message “Need at least one of the following comands: avconv, ffmpeg).
When I enter “extension enable audio_converter ffmpeg” I get (Wrong argument count for extensions).
How can I specify the ffmpeg? I tried several things like /ffmpeg but it won’t accept.
Thanks.
Von: auouymous ***@***.***>
Gesendet: Dienstag, 3. September 2024 09:01
An: gpodder/gpodder ***@***.***>
Cc: computerfreak105 ***@***.***>; Mention ***@***.***>
Betreff: Re: [gpodder/gpodder] Add `path.alternate` setting so users can append to PATH inside gpodder. (PR #1649)
@computerfreak105 <https://github.com/computerfreak105> And if you run gpodder with -v the log file should contain a line such as "Appending alternate PATH ..." if the config is good. That doesn't mean the directory you gave it is valid or contains a working ffmpeg.
The audio_converter extension uses ffmpeg to convert audio files. You could enable it, change use_ogg from false to true in settings, subscribe to https://feeds.libsyn.com/177941/rss and download an episode. If it converts to ogg then you know ffmpeg is working. Be sure to disable that extension when finished.
—
Reply to this email directly, view it on GitHub <#1649 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/ACNRICUXKJCHUVFC3IZWPGDZUVNDXAVCNFSM6AAAAABMDHOAJKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRVG42DONBRGM> .
You are receiving this because you were mentioned. <https://github.com/notifications/beacon/ACNRICWZ4L6QCWJ4U4M5E6DZUVNDXA5CNFSM6AAAAABMDHOAJKWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUKUALNK.gif> Message ID: ***@***.*** ***@***.***> >
|
|
@computerfreak105 You don't specify ffmpeg, all you need is Can you provide a directory listing for your alternate path location? |
|
@auouymous,
thanks for that, I had no idea ...
I have a mac version with working GPO – or maybe it’s just that you have to run the GPO wich is in the MacOS folder of the package. I prepared everything and could enable the extension on my mac over CLI. But my work didn’t allow me to do the real interesting thing and download something in .ogg with your provided channel. I’ll do that as soon I can. I’m afraid it will about Wednesday or so because my workload is quite big, which isn’t a bad thing of course :-)
Thanks anyway and I’ll report soon.
Von: auouymous ***@***.***>
Gesendet: Montag, 9. September 2024 01:38
An: gpodder/gpodder ***@***.***>
Cc: computerfreak105 ***@***.***>; Mention ***@***.***>
Betreff: Re: [gpodder/gpodder] Add `path.alternate` setting so users can append to PATH inside gpodder. (PR #1649)
@computerfreak105 <https://github.com/computerfreak105> You don't specify ffmpeg, all you need is extension enable audio_converter to enable the extension. It searches path for a file named ffmpeg or avconv. It also accepts bat or exe extensions on Windows, which I assume you are using since gpo doesn't yet work on Mac. I just checked and gpo -v displays the "Appending alternate PATH: /home/test/bin" message on command line.
Can you provide a directory listing for your alternate path location?
—
Reply to this email directly, view it on GitHub <#1649 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/ACNRICSCUUXZ6JR56ZTEHBDZVTNU5AVCNFSM6AAAAABMDHOAJKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZWHA3DINJSHE> .
You are receiving this because you were mentioned. <https://github.com/notifications/beacon/ACNRICWZSYVNOPX2QUEQBZDZVTNU5A5CNFSM6AAAAABMDHOAJKWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTULJG4RC.gif> Message ID: ***@***.*** ***@***.***> >
|
|
@auouymous and anyone with Gpodder on mac Since I’m under the impression that GPO works under mac (because I can open it and do things like subscribing and importing .opml files), I tried one more time on my mac and enabled the audio converter plugin to check if it’s really working, with your provided podcast link. Unfortunately I get .mp3 and not .ogg files. So the path in the settings.json probably isn’t set correctly? I tried both yt-dlp based ffmpeg versions, Arm and just Linux. Here is what I get when I start GPO with -v option. Last login: Sun Sep 15 17:43:50 on ttys000 ** (process:63491): WARNING **: 17:46:32.764: Failed to load shared library 'libglib-2.0.0.dylib' referenced by the typelib: dlopen(libglib-2.0.0.dylib, 0x0009): tried: 'libglib-2.0.0.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlibglib-2.0.0.dylib' (no such file), '/usr/lib/libglib-2.0.0.dylib' (no such file, not in dyld cache), 'libglib-2.0.0.dylib' (no such file), '/usr/local/lib/libglib-2.0.0.dylib' (no such file), '/usr/lib/libglib-2.0.0.dylib' (no such file, not in dyld cache) gPodder 3.11.4 (2023-10-11) - http://gpodder.org/ Entering interactive shell. Type 'help' for help. 1726415192.947259 [gpodder.dbsqlite] INFO: Loading podcasts |
The alternate path is working in your gpo. I thought maybe you had reverted to an older version because you said gpo was not working in #1646 (comment), but it appears to just be a warning and only syncing will have issues. Could you provide the output after you download one of the mp3 episodes?
I didn't see the settings, did you send them? |
|
Ah, seems I have some difficulties in getting the file to attach. And here is an entry of the log file. Thank you. 2024-09-15.log |
Audio converter is working, however, ffmpeg was built for a different processor. Do you know if |
|
Ah, sorry, I changed locations of ffmpeg in order to avoid a long path with potential for failure.
Here I did a 2nd test, the one with ffmpeg 1 is with normal linux version, the ffmpeg 2 for ARM processor.
FFMPEG 1
2024-09-16 20:49:16,656 [gpodder.extensions] ERROR: Error in /Applications/gPodder.app/Contents/Resources/share/gpodder/extensions/audio_converter.py in on_episode_downloaded: [Errno 8] Exec format error: '/Users/ffmpeg1/bin/ffmpeg'
Traceback (most recent call last):
File "/Applications/gPodder.app/Contents/Resources/lib/python3.11/site-packages/gpodder/extensions.py", line 77, in handler
cb_res = callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Applications/gPodder.app/Contents/Resources/share/gpodder/extensions/audio_converter.py", line 59, in on_episode_downloaded
self._convert_episode(episode)
File "/Applications/gPodder.app/Contents/Resources/share/gpodder/extensions/audio_converter.py", line 125, in _convert_episode
ffmpeg = util.Popen(cmd, stdout=subprocess.PIPE,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Applications/gPodder.app/Contents/Resources/lib/python3.11/site-packages/gpodder/util.py", line 2180, in __init__
super(Popen, self).__init__(*args, **kwargs) # Python 2 syntax
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Applications/gPodder.app/Contents/Resources/lib/python3.11/subprocess.py", line 1026, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/Applications/gPodder.app/Contents/Resources/lib/python3.11/subprocess.py", line 1955, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: '/Users/ffmpeg1/bin/ffmpeg'
Ffmpeg 2, Arm-Version:
2024-09-16 21:11:54,450 [gpodder.extensions] ERROR: Error in /Applications/gPodder.app/Contents/Resources/share/gpodder/extensions/audio_converter.py in on_episode_downloaded: [Errno 8] Exec format error: '/Users/ffmpeg2/bin/ffmpeg'
Traceback (most recent call last):
File "/Applications/gPodder.app/Contents/Resources/lib/python3.11/site-packages/gpodder/extensions.py", line 77, in handler
cb_res = callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Applications/gPodder.app/Contents/Resources/share/gpodder/extensions/audio_converter.py", line 59, in on_episode_downloaded
self._convert_episode(episode)
File "/Applications/gPodder.app/Contents/Resources/share/gpodder/extensions/audio_converter.py", line 125, in _convert_episode
ffmpeg = util.Popen(cmd, stdout=subprocess.PIPE,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Applications/gPodder.app/Contents/Resources/lib/python3.11/site-packages/gpodder/util.py", line 2180, in __init__
super(Popen, self).__init__(*args, **kwargs) # Python 2 syntax
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Applications/gPodder.app/Contents/Resources/lib/python3.11/subprocess.py", line 1026, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/Applications/gPodder.app/Contents/Resources/lib/python3.11/subprocess.py", line 1955, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: '/Users/ffmpeg2/bin/ffmpeg'
I used the ffmpeg version suggested by
@Ploddles
https://github.com/yt-dlp/FFmpeg-Builds
and he also wrote me that I should use just the non-arm version.
But I guess both don’t seem to be made for my Mac Silicon M1.
Is there already an ffmpeg version for arm based Macs? Or should I just follow these steps here?
https://stackoverflow.com/questions/65060304/ffmpeg-package-for-apple-silicon
Von: auouymous ***@***.***>
Gesendet: Montag, 16. September 2024 08:18
An: gpodder/gpodder ***@***.***>
Cc: computerfreak105 ***@***.***>; Mention ***@***.***>
Betreff: Re: [gpodder/gpodder] Add `path.alternate` setting so users can append to PATH inside gpodder. (PR #1649)
OSError: [Errno 8] Exec format error: '/Users/ffmpeg2/bin/ffmpeg'
Audio converter is working, however, ffmpeg was built for a different processor. Do you know if /Users/ffmpeg2/bin/ffmpeg is the same file located in /Users/benjaminblatter/Downloads/ffmpeg/bin? You either have another ffmpeg that it found in another path, or they are linked together.
—
Reply to this email directly, view it on GitHub <#1649 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/ACNRICQ2LL3VOCU3UU2TY33ZWZZZ3AVCNFSM6AAAAABMDHOAJKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJSGA4TCNJTGU> .
You are receiving this because you were mentioned. <https://github.com/notifications/beacon/ACNRICRDVGVQKHCC7DGWUOTZWZZZ3A5CNFSM6AAAAABMDHOAJKWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUMGIIY6.gif> Message ID: ***@***.*** ***@***.***> >
|
|
Homebrew has an apple silicon build of ffmpeg. After installing homebrew, you should be able to run |
|
Hi auouymous!
You struck gold. I installed the homebrew ffmpeg and could confirm with the audio_converter extension that it was running and converting files to .ogg. Now I made tests with my youtube channels and it’s really working. My .m4a files of youtube livestreams are playing correctly now and don’t need a long time to open anymore. I’ll try to find my issue “Maybe corrupted .m4a when downloading livestreams (Issue #1646)”. This could be closed now.
Thank you and all others which helped me in some way to fix my problem!
Von: auouymous ***@***.***>
Gesendet: Montag, 16. September 2024 22:13
An: gpodder/gpodder ***@***.***>
Cc: computerfreak105 ***@***.***>; Mention ***@***.***>
Betreff: Re: [gpodder/gpodder] Add `path.alternate` setting so users can append to PATH inside gpodder. (PR #1649)
Homebrew has an apple silicon build of ffmpeg. After installing homebrew, you should be able to run brew install ffmpeg, figure out what directory it put the ffmpeg binary in, and use that as the alternate path in gpodder.
—
Reply to this email directly, view it on GitHub <#1649 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/ACNRICSCLTBJUJ24WAT3LVLZW43UFAVCNFSM6AAAAABMDHOAJKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJTHA2DMNBYGA> .
You are receiving this because you were mentioned. <https://github.com/notifications/beacon/ACNRICRNZOIEV5GNCSUTCJ3ZW43UFA5CNFSM6AAAAABMDHOAJKWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUMJTMNA.gif> Message ID: ***@***.*** ***@***.***> >
|
This should make it easier to use ffmpeg and other utilities that are not installed in PATH. The Mac launcher does not honor the environment PATH, making it impossible to override.
Fixes #1638.