Enabling rtmp_swfurl option in FFmpeg - unix

In Unix, in order to process RTMP live stream URLs some live streams needs swfurl, pageurl extra. We are able to pass this parameters to the RtmpDump and pipe it to the FFmpeg.
However some FFmpeg has rtmp_swfurl its own. How can we enable this options in FFmpeg, not all of them have. Although I have latest version I do not have them.

I have solved the problem by first removing libav-tools and installing ffmpeg manually after download last version from its web site. When I try to install ffmpeg without removing libav-tools it did not work, hence you should remove then install ffmpeg and install libav-tools again
sudo apt-get --purge remove libav-tools
sudo apt-get --purge autoremove

Related

.customize_environment failing for previously working apt-get update in cloud shell

.customize_environment was failing and forcing me to boot as root (safe mode).
I've selectively recreated but even a simple apt-get update gets a bunch of errors like...
Err:1 http://packages.cloud.google.com/apt gcsfuse-buster InRelease Temporary failure resolving 'packages.cloud.google.com'
Not sure if this is the root cause, I'm ultimately trying to..
apt-get install -y libxss1
apt-get install -y libgbm-dev
apt-get install -y parallel
In the meantime I'm having to manually run a whole bunch of installs which is getting pretty repetitive.
Normally customize_environment scripts cannot cause shell starts to failure. Unfortunately there was a bug causing this to be possible. The release containing the fix should be out in the next few days.
Would you mind trying to create the script again in a few days and letting me know if it works?
Thanks

Symlink lost within Docker image

I am defining a Dockerfile where I install sqlite3 in a ubuntu based image, something very similar (I also install grpc and rust as well as all the necessary dependencies) to:
FROM ubuntu
RUN apt-get update && \
apt-get install -y sqlite3 libsqlite3-dev&& \
apt-get clean && \
apt-get autoremove
I use this image to built my Rust project within it. The issue that I am facing is that cargo build fails on my GitLab CI due to a linking issue:
Compiling migrations_macros v1.4.0
error: linking with `cc` failed: exit code: 1
...
= note: /usr/bin/ld: cannot find -lsqlite3
I found out that this is due to this symlink not being present on the Docker image that is running on CI:
libsqlite3.so -> /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
while the file libsqlite3.so.0.8.6 exists. So if I create the symlink during the CI jobs I can have a working workaround. The weird thing is that if I pull the same exact image from my registry on my pc and run the container I can build without any issue and any change because the symlink is actually there.
What could be the cause of the problem and how to solve it?
After quite a bit of thinking the following ideas come to my mind which could help.
Docker history
Docker command has a build in feature to view the history of a built image. You have the option to identify the problematic command in the DockerFile.
docker history <image id or name>
For more visual filtering i do recommend dive tool but others are also available on google.
Correct docker version
Since in this scenario the two docker instances are different the question is trivial. Are they on the same version of docker daemon and docker file system driver?

Is it possible to Compile Stackdriver monitoring agent from source

It appears that Ubuntu 15:10 does not yet have a Stackdriver monitoring agent package available. Is the source available to be installed?
I work at Google on the Stackdriver agent. On Ubuntu, we only support the LTS releases, so if you could use Ubuntu 14.04 or 16.04 that would be our strong preference.
It might also be possible to use the 14.04 or 16.04 package and modify it so it works with 15.10.
But that said, if you really want to build on 15.10 these are the instructions for doing so. I have just tested them on a 15.10 instance so I can confirm they work as of five minutes ago. :-)
Again we do not officially support 15.10 so if this does not work reliably, we would not be able to offer any additional help.
sudo apt-get -y update && sudo apt-get -y install git flex bison gcc automake pkg-config libtool libgcrypt-dev glib2.0-dev make libssl-dev libyajl-dev libcurl4-openssl-dev
git clone https://github.com/Stackdriver/collectd.git
cd collectd/
git checkout stackdriver-agent-5.5.0
./clean.sh && ./build.sh
./configure --prefix=/opt/stackdriver/collectd --program-prefix=stackdriver- --disable-all-plugins --enable-cpu --enable-df --enable-disk --enable-load --enable-logfile --enable-memory --enable-swap --enable-syslog --enable-interface --enable-tcpconns --enable-write_http --enable-write_gcm --disable-static --enable-aggregation --enable-csv --enable-nginx --enable-apache --enable-memcached --enable-mysql --enable-postgresql --disable-perl --without-libperl --without-perl-bindings --enable-mongodb --with-libmongoc=own --enable-plugin_mem --enable-processes --enable-ntpd --enable-zookeeper --enable-exec --enable-curl_json --enable-match_regex --enable-target_set --enable-match_throttle_metadata_keys --enable-target_replace --enable-target_scale --enable-debug --with-useragent="stackdriver_agent/myagent"
make
sudo make install
Then obtain a suitable collectd.conf and run it in the foreground with
sudo /opt/stackdriver/collectd/sbin/stackdriver-collectd -f -C ~/my.collectd.conf
or in the background by leaving out the -f.
The easiest way to get a "suitable" collectd.conf is to get our production package, install or examine it, and use the file /opt/stackdriver/collectd/etc/collectd-gcm.conf.tmpl modified to your tastes.
I found that following the directions from Corey Kosak worked, but I had to use the "gabeperez-test-bionic-changes" branch for Ubuntu 18.04.

How to install wkhtmltopdf patched qt without compiling?

I'm using google cloud instance for host Odoo, somo reports print to pdf ok, but other with custom paperformat get the following error:
"The switch --header-spacing, is not support using unpatched qt, and will be ignored.The switch --header-html, is not support using unpatched qt, and will be ignored.The switch --footer-html, is not support using unpatched qt, and will be ignored.QXcbConnection: Could not connect to display"
I google it, and to solve I need to compile wkhtmltopdf like this:
http://www.grobak.net/id/blog/how-fix-wkhtmltopdf-failed-error-code-6 but this proccess need 3 hs and I'm building a script to install google instances on the run with odoo dependencies.
the .deb package have a dependency broken
Anyone know other solution?
My system configuration is Ubuntu 14.04 and 64 bit. So, i am downloading according to that.
First you have to check your system OS name by
lsb_release -a
Check to see if your Ubuntu Linux operating system architecture is 32-bit or 64-bit, open up a terminal and run the following command below.
file /sbin/init
Download wkhtmltopdf patched with qt using below command
sudo wget -P Downloads https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb
Here, replace "trusty" with your OS name and if 64 bit only then keep "amd64" like that , otherwise change it to "i386" and down load the deb file.
After that execute the following commands,
cd ~/Downloads
sudo dpkg -i wkhtmltox-0.12.1_linux-trusty-amd64.deb
Now, check wkhtmltopdf version with below command,
wkhtmltopdf -V
Enjoy!!
After trying many ways I finally made it work.
First I removed all my previous installation by
sudo apt-get remove --purge wkhtmltopdf
sudo apt-get autoremove
Then I opened wkhtmltopdf.org and navigated into their Downloads > Archive. In Archive section I downloaded 0.12.1 .deb version by
wget <copy the link from website for the.deb file and paste it in terminal here>.
sudo dpkg -i <package name>
sudo cp /usr/local/bin/wkhtmltopdf /usr/bin
This is because odoo looks for wkhtmltopdf in /usr/bin directory otherwise gives IOError. I also set my webkit_path parameter in Odoo System Parameters to /usr/bin.
Thats it. Hope this helps
I was facing same issue with wkhtmltopdf 0.12.4
installed new version of wkhtmltopdf 0.12.6-1
follow below commands to install wkhtmltopdf 0.12.6-1
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox-0.12.6-1.centos7.x86_64.rpm
yum localinstall wkhtmltox-0.12.6-1.centos7.x86_64.rpm #centos specific command

Report formatting not working in Odoo 8 Qweb Reports

All the default reports and the new reports that I am generating are being printed towards the left of the page. This only happens when the report is generated in PDF format. In HTML format the report is displayed fine. I did some research and found that downgrading the wkhtmltox to version 0.21.1 would solve this problem. I did that, but the problem still persists.
There is one small configuration
Go to settings --> Technical --> Parameters --> System Parameters -->
Click on Create and type
Done
You can try with completely un install and install again it again wkhtmlttopdf 0.12.X python library and try to print that report again..
I hope this should helpful for you ..:)
In Ubuntu 14.04, open the terminal and type:
sudo add-apt-repository ppa:ecometrica/servers
sudo apt-get update
sudo apt-get install wkhtmltopdf
In Ubuntu 12.04, open the terminal and type:
sudo add-apt-repository ppa:pov/wkhtmltopdf
sudo apt-get update
sudo apt-get install wkhtmltopdf
If That Was Not Working Then Following This Step
1) Download wkhtmltopdf version from wkhtmltopdf.org depend on your system arch (32 or 64 bit)
wget http://downloads.sourceforge.net/project/wkhtmltopdf/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb
2) Install the package using commnad :
sudo dpkg -i wkhtmltox-0.12.1_linux-trusty-amd64.deb
3) Copy binary or wkhtmltopdf to /usr/bin location from ./usr/local/bin use command
sudo cp /usr/local/bin/wkhtmltopdf /usr/bin/
4) Restart Odoo server and try once again.

Resources