Need Suggestions To Loop A Video Converted From An Animated Gif

hi

I have an animated gif file which I converted into a video. The video plays for one second. How can I loop it to play for 15 seconds. here is what I have tried.

Code:
ffmpeg -i 3.gif -loop input -t 15  -c:v mpeg4 -b:v 1000k out.avi

thanks


Similar Content



Using Ffmpeg To Fade In Audio, BUT Original Audio From Video Is Gone

Hi

I am trying to fade in audio at 39 seconds into the video with existing audio.

It did work, the mp3 file fades in at 39 seconds, however the original audio from the video is silence or removed.

Here is the code I've use.

Code:
ffmpeg -i audio.mp3 -i test.mp4 -c:v copy -strict experimental -shortest -af 'afade=t=in:st=39' test.mp4

How can I fix this? Thanks

Is There A Way To See The Current Frames Playing In The Video?

hi

Mplayer is my main video player and I always use the command line with mplayer to play the videos.

From the terminal it shows the stats about the video as it is playing. At the bottom it shows the elapsed time in seconds. Is there a way to see elapsed frames instead of seconds?

If mplayer can't do it, I'm open to other players if they do it. Thanks

Problem W/.bash Script... Need Help

I'm trying to loop through a query in SQLDeveloper by passing the query a different Period and I'm having a problem getting the syntax correct.

Individually the following works correctly on its own:

Code:
#!/bin/bash
 for i in `seq -f "%02g" 1 5`;
    do
    echo $i
 done

$ ./test.sh
1
2
3
4
5

the following also executes correctly:

Quote:
sqlplus table1/$userpass@Mytable <<EOF
@./sqlcode.sql $i
EOF
but when I try to wrap the loop around my sqlplus command

Code:
#! /bin/sh
userpass=read
for i in `seq -f "%01g" 1 3`;
  do
        sqlplus -S  table1/$userpass@Mytable <<EOF
        @./sqlcode.sql $i
        EOF
done

I get the following error:

./test.sh: line 13: syntax error: unexpected end of file

Does anyone have any ideas on what's going on?

To Send A While Loop To Background

Hi All,

i got a question (noob of course), stuck with my little script when i try to send this while loop into background.

cat stogrpexport | awk 'NR>1' | while read id2 &
do
echo $id2 >> stat.out &
symstat -sid 1075 -i 5 -c 5 -dev $id2 >> stat.out &
done


symstat is a vmax storage command for stat reading which taking long time to complete. is there any better wat to re-write this loop? thanks.

Chromium Displaying Artifacts On Youtube

Hello,

I have recently installed Elementary OS on my HP 550 laptop. While everything is running as expected, I've run into a small problem when attempting to watch videos on Youtube using Chromium.

The video loads fine but displays little yellow rectangles all over the video. According to Youtube, Chromium uses HTML5 rather than Flash - maybe that is the issue - but I am thinking it maybe a graphics driver issue. The videos run absolutely fine on Firefox and will stick to that if necessary, but I would prefer to use Chromium.

I have tried using Code:
gksu jockey-gtk

and it couldnt find any drivers to install.

This Code:
lspci | grep VGA

says:
Code:
00:02.0 VGA compatible controller: Intel Corporation Mobile GME965/GLE960 Integrated Graphics Controller (rev 0c)

Many Thanks

Been Having Problems, Need Help With "important" Log Entries, Fedora 21

If I'm loading down the system, i.e., running transmission while playing a video, periodically network throughput drops, video stops, cpu activity jumps up, then after a few seconds to a minute suddenly cpu activity goes back to normal, networking and video resumes. In addition I have this "important" message in the log viewer:

Quote:
systemd-udevd
Error calling EVIOCSKEYCODE on device node '/dev/input/event2' (scan code 0xc0183, key code 226): Invalid argument
There are several lines with varying scan and key codes, the rest being the same.

In addition, a couple weeks ago, I had locked myself out of the system, (boot to black screen), due to a failed attempt at installing the latest AMD/ATI proprietary drivers. Thanks to the help of several people on the forum, I was able to get back in, using the native drivers.


Obviously as a newbie to Linux I don't know if any of these things are related.

I would appreciate any help anyone could give me, TIA!!

Bash Shell Script Help Please

I want to write a bash shell script to execute a command for one minute then stop that command (ctrl c) pause for 10 seconds then run another command for one minute then stop that command pause for 10 seconds then go back to the begining of the script and loop indefinetly.

First I want to run this command for one minute;

reaver -i mon0 -c 6 -b "mac address" -a -vv

stop previous command and pause for 10 seconds

Then run this command for one minute;

airodump-ng -i mon0

stop previous command and pause for 10 seconds

Then recall reaver command and continue to loop through until reaver spits out result.

I imagine I will need to create a function for each command, an if statement and an ifelse statement and I will need the break and sleep commands. but I am not sure about the syntax, PLEASE HELP THIS NOOB!

Can No Longer Mount Data Dvds

For whatever reason, when I try to mount a data DVD I get the following message:

Unable to mount [disk name]
Error mounting: mount exited with exit code 1: helper failed with:
mount: mount point /media/cdrom does not exist

Yet, if I put a DVD video in I can play on any of my video apps, yet I also can't mount those in a file browser. I have no idea what has caused this. I haven't backed up data to disks in a long time, I only did so today because I'm running low on space in one of my drives.

I was told elsewhere that I needed to alter a file: /etc/udev/rules.d/70-persistent-cd.rules

But I have no idea how to do this, and what I found there does not look like what was shown. This is what my file looks like:

Code:
# This file maintains persistent names for CD/DVD reader and writer devices.
# See udev(7) for syntax.
#
# Entries are automatically added by the 75-cd-aliases-generator.rules
# file; however you are also free to add your own entries provided you
# add the ENV{GENERATED}=1 flag to your own rules as well.
# TSSTcorp_CDDVDW_SH-S223C (pci-0000:00:1f.2-scsi-1:0:1:0)
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-1:0:1:0", SYMLINK+="cdrom", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-1:0:1:0", SYMLINK+="cdrw", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-1:0:1:0", SYMLINK+="dvd", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-1:0:1:0", SYMLINK+="dvdrw", ENV{GENERATED}="1"

Any suggestions would be appreciated.

(mv ~/.config ~/.config.org) Ruined My FPS In Games

Hey just signed up after lurking for a bit.

I'm using Mint 17.1 and following the advice in this post to solve my missing menu problem which worked fine.

http://www.linuxquestions.org/questi...5/#post4234891

But now after using Code:
mv ~/.config ~/.config.org

my FPS in a steam game went down from 70 to 30.

I did some re-installations in my package manager, but the FPS still sucks.

Quote:
Commit Log for Mon Mar 23 16:15:01 2015


Completely removed the following packages:
nvidia-340
nvidia-settings
xserver-xorg-video-nouveau

Removed the following packages:
xserver-xorg-video-all
Quote:
Commit Log for Mon Mar 23 16:28:01 2015


Installed the following packages:
nvidia-340 (340.76-0ubuntu1~xedgers14.04.1)
nvidia-settings (346.47-0ubuntu1~xedgers14.04.1)
xserver-xorg-video-nouveau (1:1.0.11+git20141030.3fb97d78-0ubuntu0sarvatt~trusty2)
Quote:
Commit Log for Mon Mar 23 16:40:46 2015


Reinstalled the following packages:
steam-launcher (1.0.0.47)
I also re-downloaded the game as well to make sure it set a new configuration file if it needed to.

Need Help In Bash Scripting

I have two files which has exact same number of lines.
I want first line of first file should be filename of new file and content of this new file should be first line of second file.
Then second line of first file should be filename of again new file and content of this new file should be second line of second file.
then third line of first file should be filename of again new file and content of this new file should be third line of second file.
and so on...
I am trying to do it using for loop but I am not able to create two for loops.
This is what I have done
Code:
IFS=$'\n'
var=$(sed 's/\"http\(.*\)\/\(.*\).wav\"\,\".*/\2/g' 1797.csv) # filenames of all files
var2=$(sed 's/\"http\(.*\)\/\(.*\).wav\"\,\"\(.*\)\"$/\3/g' 1797.csv) # contents of all files
for j in $var;
do
#Here I do not know how to use $var2
done

Please help.