You are not logged in.
AUR Package: vivaldi-ffmpeg-codecs, also opera-ffmpeg-codecs
For weeks i'm playing arround with NativeMessaging in chrome-based
browser, as explained here:
https://developer.chrome.com/extensions/nativeMessaging
As host i use a python script, wich handles the messages, coming from
browser actions. In particular i want to send url of video sites, grab
the video file and convert by ffmpeg.
This works fine if i execute the script in terminal or by
NativeMessaging in chromium. But in vivaldi/opera only as long as
*-ffmpeg-codecs isn't installed.
As far as i understand, the *-ffmpeg-codecs packages provide
libffmpeg.so wich is LD_PRELOADed, so i think something is wrong with
the preloaded libffmpeg.so in the *-ffmpeg-codecs packages for vivaldi
and opera.
Here is the code from Python host:
cmd = ['/usr/bin/ffmpeg', '-y', '-i', '/home/user/Downloads/test.m4a',
'-c', 'copy', '-f', 'mp4', '/home/user/Downloads/test.temp.m4a']
p = subprocess.Popen(cmd, stdout=subprocess.PIPE,
stderr=subprocess.PIPE, stdin=subprocess.PIPE)
stdout, stderr = p.communicate()
if p.returncode != 0:
msg = stderr.strip().split('\n')[-1]
logging.error(msg)
The Output from logging.error():
ERROR:root:Did you mean file:/home/user/Downloads/test.m4a?
Same goes for tasks with ffprobe:
ffprobe -show_streams 'file:/home/user/Downloads/test.webm'
ERROR:root: WARNING: unable to obtain file audio codec with ffprobe
Is this a bug?
Why is chromium doing well but vivaldi/opera not?
Is there a workarround to ignore LD_PRELOAD for ffmpeg tasks?
I tried it already in the vivaldi forum and they send me here.
https://forum.vivaldi.net/topic/17134/p … strange/17
opera-developer-ffmpeg-codecs and vivaldi-snapshot-ffmpeg-codecs are also tested.
Last edited by lemondreas (2017-06-04 15:31:30)
Offline
Big Thanks to BlackIkeEagle, who helped me in getting a workarround:
if 'LD_PRELOAD' in os.environ:
del os.environ['LD_PRELOAD']
btw:
here ist my project
https://github.com/le-mon/vid2mp3
Last edited by lemondreas (2017-06-06 20:41:29)
Offline