debian

How to split accurately a LONG GOP video (h264/XDCAM…) with FFMPEG?

我怕爱的太早我们不能终老 提交于 2019-12-25 07:28:23
问题 My goal is to split a XDCAM or a H264 video, frame-accurately, with ffmpeg. I guess that the problem comes from its long GOP structure, but I'm looking for a way to split the video without re-encoding it. I apply an offset to encode only a specific section of the video (let say from the 10th second to the end of the media) Any ideas ? 回答1: Please refer to the ffmpeg documentation. You will find an option -frames . That option can be use to specify for a given input stream (in the following

Upgraded PHP now apache won`t execute php files anymore

徘徊边缘 提交于 2019-12-25 05:15:35
问题 On my server (Debian) I had some problem with the execution of php files, I thought I would check if the latest version was installed so I wrote: apt-get install php5-cli It turned out that php5 wasn't even installed yet. Anyway after the installation apache won't execute any .php files anymore. If I open the url it`s just outputting the code. Then I thought updating apache would help (it was on 2.2.2) so i did: apt-get upgrade apache2 but it didn`t resolve the problem (I have restared apache

Java execute Linux commands that require su?

倖福魔咒の 提交于 2019-12-25 05:08:05
问题 What is the best way to run Linux commands that require "su" with Java? I want it to be very reliable, as for security goes I don't care much about it the system is not a production server. No one ever connects to the machine but myself. I thought about logging in as root so I don't have to deal with the su command and its disabled by default. I'm using Debian 6. The only thing is that one of my requirements is that the program should start after the normal user logs in without any farther

My php script is killed automatically by the OS (DEBIAN)

拜拜、爱过 提交于 2019-12-25 05:00:30
问题 I have a php script that is killed after 10 minutes by the OS (debian) I don't want it to be killed Someone told me that my server maybe has a task monitor that kills long-running processes as a safeguard against lockups. I don't know how to access to the task monitor and how to disable it 回答1: What Apache error log says? If you have error: Fatal error: Maximum execution time of ... then you have to turn off limit for PHP script execution time, which can be set like this: set_time_limit(0); /

QSocketNotifier and QFile::readAll()

十年热恋 提交于 2019-12-25 03:15:26
问题 Currently working on the GPIOs of a SBC (Olimex A20), I have a problem with QSocketNotifier. On my GPIOs, I'm using a pin with interruption abilities (For those who want to know more : https://developer.ridgerun.com/wiki/index.php/How_to_use_GPIO_signals ) and a QSocketNotifier to monitor the changes. That's my class for interruptions : OLinuXinoGPIOEdge::OLinuXinoGPIOEdge(int num) : m_gpioNumber(num), m_value(false), m_direction(IN) { this->exportGPIO(); // equivalent to 'echo num > export'

synchronize local Debian time with amazon Debian instances (RDS) MDT to UTC

这一生的挚爱 提交于 2019-12-25 03:03:34
问题 it tried this command on my amazon Debian instances root@ip-:~# date Sun Apr 27 11:26:34 UTC 2014 and in my local debain instances its like this root@debian:~# date Sun Apr 27 16:56:56 MDT 2014 so now how can i make my local debain machine time as same as the amazon instance time i.e convert Sun Apr 27 16:56:56 MDT 2014 ->(to) Sun Apr 27 11:26:34 UTC 2014 this in my local debain machinee 回答1: There are two issues concerning the time difference at hand: Timezone - your local Debian system is

Update failed of file descriptor limit

这一生的挚爱 提交于 2019-12-25 02:53:47
问题 I have a server with Debian wheezy x64, I have problem with asterisk server "Try increasing max file descriptors with ulimit -n", I try to change the file descriptor limit as follows: # su - asterisk $ ulimit -Hn 4096 $ ulimit -Sn 1024 $ exit # vi /etc/security/limits.conf I added in the end of the file: .... asterisk soft nofile 65535 asterisk hard nofile 65535 # End of file And when I try to test: # su - asterisk $ ulimit -Hn 4096 $ ulimit -Sn 1024 $ am I miss somethings? (I rebooted the

Creating multiple packages with dpkg-buildpackage

家住魔仙堡 提交于 2019-12-25 02:26:52
问题 I have a source tree structure like - /src /moduleA /moduleB /common where moduleA and moduleB need packaged separately but share the common code. Is it possible to create 2 separate binary packages using dpkg-buildpackage? Thanks! 回答1: It is possible. In order to do it, you should modify the control file. When you use dh_make -s , you have something like : Source: yourpackage Section: unknown Priority: optional Maintainer: toto <toto@unknown> Build-Depends: debhelper (>= 8.0.0), autotools

Debian 7.4 - Wifi configuration fails … Again [closed]

匆匆过客 提交于 2019-12-25 02:22:16
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I've been installing multiple versions of ubunutu over years and now I better understand why I faced always problems with wifi configuration on these different baselines : Debian root of course. Issue Now on Debian 7.4 : The Broadcom BCM4313 driver is not loaded by default (not free product) for my wifi card.

crontab being saved in tmp/ in debian

一笑奈何 提交于 2019-12-25 02:06:14
问题 I'm trying to make a crontab with crontab -e, but it saves it in tmp/crontab.FTt6nI/crontab the crons don't work so I guess that's the problem. But I don't understand why. 回答1: type: crontab -l to show list of crontab, your newly added crontab should be on the list. you could set the crontab to email the output to you by > youremail@aaa.com, in this way you can assure the cronjob is already run. example: * * * * * /usr/bin/php /home/username/public_html/cron.php > aaa@aaa.com make sure the