Programming :: Ffmpeg Stopping After The First Encode When Using Bash Script?

Apr 6, 2010

I'm trying to create a script that will trawl through a directory structure looking for VOB files, convert them to AVI and place them in a ./converted/ sub-directory of the the original source folder. I've knocked up the script below which appears to work fine when I place an "echo" in front of the actual ffmpeg encode line, I get the output on the screen with ffmpeg finding all the VOB files in the directories and looking to convert them to the correct sub-directory. Yet, when I remove the echo and run the script for real, ffmpeg converts the first file and then stops. No errors. Is this something to do with ffmpeg or a problem with my script below?

Code:
#!/bin/bash
#

[code]...

View 6 Replies


ADVERTISEMENT

Ubuntu Multimedia :: Ffmpeg Can No Longer Encode H263p For Some Reason?

Oct 13, 2010

I recently installed Ubuntu 10.10 after using 10.04. While using 10.04 I used ffmpeg quite a bit and just a few days ago I was using ffmpeg to encode video with the h263p codec.Anyway, for some reason ffmpeg no longer seems to want to decode h263p anymore. If I type "ffmpeg -codecs" to get a codec list, I get" EV h263p H.263+ / H.263-1998 / H.263 version 2"When it used to be "DEV" for decode / encode video. But now just " EV"Even on the ffmpeg website here http://ffmpeg.org/general.html#SEC3 it says ffmpeg should still be able to decode h263p. Yet, it can't!I've tried installing all sorts of codec libraries and I even followed a guide to download and compile ffmpeg myself. Nothing seems to change.

View 8 Replies View Related

Software :: Detect Corrupt Movie File During Or Before Using Ffmpeg To Encode Them?

Sep 10, 2009

What is an easy way detect corrupt movie file during or before using ffmpeg to encode them? is there a command I can use to check if the file is not corrupt and then pipe it ffmpeg or standard input?

View 1 Replies View Related

Programming :: Stopping New Line With Asctime

Jan 28, 2011

I'm using asctime function to print the time to a file, however it always puts a new line with it, for example if I do

fprintf(pFile,"%s",asctime ( tm ));
fprintf(pFile,"hello world");

it writes

Fri Jan 28 18:11:38 2011
hello world

rather than

Fri Jan 28 18:11:38 2011 hello world

it's as if asctime adds to the end.

View 3 Replies View Related

Programming :: Stopping Alarm() From Terminating The Process?

Jan 15, 2010

I am working in Linux and have connected a normal LED to my serial port (with voltage conversion). I am just trying to make that LED blink periodically using alarm ().So in the signal handling routine of my code,i toggle the LED but then the program quits as SIGALRM terminates the process. Shall i make a nested alarm so that the handling routine also has an alram()? I am stuck and i must confess that i am not so convenient with signal handling so can someone provide some pointers?I thought about using sleep(); but the advantage with alarm is that it waits for the exact number of seconds (when the second turn over from previous to new value) before raising the alarm while i am not sure about sleep taht does that or not.

View 2 Replies View Related

Ubuntu :: Bash Script To Recurse Directories And Exec Ffmpeg Using Find (possibly)?

Oct 3, 2010

I wrote a script that easily runs it in the same directory as it was run below: #for f in *.MTS do ffmpeg -i "$f" -acodec copy -vcodec libx264 -threads 2 -deinterlace -vpre slow -b 20000k -bt 3000k -refs 4 "${f%.MTS}.mp4" ; #done

I want to be able to use the find command so it will recurse through all the videos in my videos folder. Is there a painless way to do this. Here is the start of my find command but it doesn't work. Any help appreciated:

find . -name "*.MTS" -exec ffmpeg -i 'basename{}' -acodec copy -vcodec libx264 -threads 2 -deinterlace -vpre slow -b 20000k -bt 3000k -refs 4 'basename{%.MTS}.mp4'

View 8 Replies View Related

Ubuntu :: Boot Hangs On "Stopping Save Kernel Messages" Or "stopping System V Runlevel Compatib?

May 16, 2011

Boot of a new minimal system hangs on "Stopping save kernel messages" or "stopping system v runlevel compatibility". I have ubuntu minimal iso x86_64 from usb stick created with unetbootin (don't have a cd drive on the machine in question), and after that I didsudo aptitude install gnome-terminal network-manager-gnome gdm geditsudo rebootnever got a system back. Annoyingly I can't boot into the recovery mode either, and it seems the keyboard is only semi-responsive (i.e. many dead keys when at the grub menu).qualms about reinstalling, but I've done this a few times and ended up at the same place every time.

View 6 Replies View Related

OpenSUSE :: Stopping The Screen Saver And Stopping The Screen Locking?

Jan 23, 2011

In December I finally filled up my root partition and broke Suse 11.1. I therefore resized my partitions and installed Suse 11.3 on /root. I didn't not touch my /home partition.

I notice that when I leave my machine and come back the screen has locked. I have tried to turn off the screensaver, but it hasn't worked. I have Googled, but unfortunately the screen shots don't look like what I have and the instructions to stop this do not seem to match what I am seeing on the screen.

Is there a way to do this via the command line?

View 7 Replies View Related

Ubuntu Multimedia :: Ffmpeg 6 Is Out For Some Time When Will Lucid Afford Such A New Ffmpeg?

Jul 20, 2010

Since ffmpeg 6 is out for some time, when will Ubuntu Lucid afford such a new ffmpeg package from its repository?

View 2 Replies View Related

Debian Programming :: How To Remove Libav And Install Ffmpeg

Feb 4, 2015

I've been trying to compile OpenCV3 beta for Debian Jessie, but I can't figure out how to compile support for video I/O .Tutorials that can be found on-line usually use ffmpeg library, but as I found out Debian 8 replace this library with libav (?). Of course I found tutorials how to remove libav and install ffmpeg, but I would rather try to find some another way.

I use OpenCV3 beta from URL...

When I use this switch

Code: Select all-DWITH_FFMPEG=0 compilation succeed, but there is no support for video.
When I don't use that switch, then I get this error:
Code: Select allIn file included from /home/sehny/Dokumenty/opencv-3.0.0-beta/modules/videoio/src/cap_ffmpeg_impl.hpp:65:0,
from /home/sehny/Dokumenty/opencv-3.0.0-beta/modules/videoio/src/cap_ffmpeg.cpp:45:
/home/sehny/Dokumenty/opencv-3.0.0-beta/modules/videoio/src/ffmpeg_codecs.hpp:98:7: error: ‘CODEC_ID_H264’ was not declared in this scope
     { CODEC_ID_H264, MKTAG('H', '2', '6', '4') },
       
[code]...

View 9 Replies View Related

Programming :: Bash: Printing The Line Number In Bash Script?

Feb 4, 2011

I would like to know how do I print the line # in a script. My requirement is, I have a script which is about ~5000 lines long. If there are any errors happen I just exit. And I would like to add the line # of the script where the error happened.

View 3 Replies View Related

Programming :: Bash Ctrl+c Tarp And Bash Read With Timeout?

Jan 24, 2010

simple bash code:

Code:
#!/bin/bash
trap "echo 'you got me'" SIGINT SIGTERM # to trap ctrl+c
echo "Press ctrl+c during 5 sec loop"
for ((i=0;i<5;i++)); do

[Code]...

How come code behaves normally and stops when ctrl+c signal is caught and resumes, but after I use at least one timeout read in the code it looks like, if signal is caught again it doesn't pause the execution but skips the loop. If you remove -t (timeout) option from the read, both loops look the same!

View 10 Replies View Related

Programming :: Reading A Bash Variable In Bash Scripting ?

Nov 26, 2008

I have a config file that contains:

my.config:

Code:

Now in my bash script, I want to get the output /home/user instead of $HOME once read. So far, I have managed to get the $HOME variable but I can't get it to echo the variable. All I get is the output $HOME.

Here is my parse_cmd script:

Code:

View 3 Replies View Related

Programming :: Run Multiple Bash And Php Scripts From A Bash Script?

Jul 25, 2011

I have written quite a few separate bash & scripts and php scripts that up to now I have run from cron jobs. However I have to estimate how long each takes to run, before running the next and so it probably takes much longer than necessary to run them all. They have to run in order.

Now there are so many I am thinking it would be better to have a master bash script that would run one after the other, but I am not sure how to get the master script to wait before starting to run the next script. Is this possible and is there a command that will make the script wait between bash and php scripts , for them to finish, before running the next?

View 5 Replies View Related

Programming :: Bash: Get Filename And Extension Using Bash?

Jan 9, 2010

I would like to get the filename (without extension) and the extension separately. The best solution I found so far is:

Let FILE="thefilenameofsomefilesfor_instance.txt"

Code:

NAME=`echo "$FILE" | cut -d'.' -f1`
EXTENSION=`echo "$FILE" | cut -d'.' -f2`

I think it would be better to count the len and remove 3 chars to right to get the extension, but it can be macintosh filenames with have 4 chars for extensions.

View 5 Replies View Related

Ubuntu Multimedia :: GLC Will Not Encode?

Jun 3, 2011

There's so little documentation for GLC that it's nearly impossible to get it working. I just tried encoding a file I made using the script provided, and got this output:

Code:
joseph@joseph:~/Desktop$ sh encode.sh lugaru-17880-0.glc
[: 103: lugaru-17880-0.glc: unexpected operator

[code]....

View 9 Replies View Related

Programming :: Bash Programming - Rename Files In A Loop?

Mar 31, 2011

I need to rename the resulted searched files from a loopI have the following code:

find . -name DOC* | while read i
do
find $i -type f -name '*.txt'
done

basically, I am searching for all txt files inside any folder starting with DOC name.this code is working fine with me.I need to rename those .txt files to .txtOLDOS: Ubuntu 10.4Bash shell

View 10 Replies View Related

Fedora :: Encode With X264 And Aac For Psp/ipod/ps3

Apr 5, 2010

I've been trying to convert video files to play on a psp, I used to use this command

Code:
ffmpeg -y -i inputfile -acodec aac -ab 128k -ar 48000 -ac 2 -s 480x272 -vcodec h264 -b 384k -coder 1 -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -subq 5 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -b_strategy 1 -level 21 outputfile.mp4

[Code]....

View 10 Replies View Related

Ubuntu Multimedia :: Unable To Encode H.264 Under 10.04?

May 16, 2010

After several google searches and forum searches, installing restricted repos, encoders, codecs, ffmpec still REFUSES to encode H.264. Here the output of an FLV to be converted:

[Code]...

View 5 Replies View Related

Fedora :: What Sound Editor Can Cut In MP3s Without Re-encode?

Jan 23, 2010

I would like to cut a part out of a huge mp3, and want to do it without it being re-encoded.Does such an editor exist for Linux/Fedora?

View 6 Replies View Related

Ubuntu Multimedia :: Use Tmpeng To Encode Films?

Feb 2, 2010

when using windows xp i used to use tmpeng to encode films is there any good applications to use on ubuntu ?

View 4 Replies View Related

Ubuntu Multimedia :: Can't Encode Files With Mpeg-4?

Nov 28, 2010

This is my first post in this forum. After trying out every video compositing program I found for Linux, I am about to settle with KDEnlive. It looks like the best allrounder professional program in this section to me.

I only got one problem. I cant encode files with mpeg-4. All options here are grayed out and if I hover over one of the options for a moment it's going to tell me:

"Unsupported audio codec: libmp3lame" Whats funny is that it worked a time before i reinstalled my system. I also checked and I got libmp3lame installed. So why has KDEnlive problems to access this library?

View 2 Replies View Related

General :: Mencoder To Encode Multiple AVI Files?

Dec 29, 2009

I'm new to commandline, and I'd like to:
$mencoder -ffourcc DX50 -oac mp3lame -ovc lavc about 10 files...
How to write that?

View 2 Replies View Related

Server :: Encode Mismatch Error In Postgresql

Jul 12, 2010

we have postgresql database in our server. when i tried to install our application it throws some error like "org.postgresql.util.PSQLException: ERROR: encoding UTF8 does not match locale en_US Detail: The chosen LC_CTYPE setting requires encoding LATIN1". the locale which is set in our server is

[code]...

I don't know how to approach to solve this error.

View 1 Replies View Related

Programming :: Write A Bash Script That Sources Another Bash Script?

Jan 29, 2011

I am trying to write a bash script that sources another bash script. Essentially, I need a few lines to check to see if a certain variable is set. If not, I set it manually, and then source a scripts with that variable in the path. I wrote a test script to try it, but for some reason the last line does not work. Here is what I wrote:

#!/bin/sh
source ~setupdir/setup.shrc #just a test, this line works
echo ${#SETUP} # prints 0 if setup is not set, which it isn't
if [ ${#SETUP} -eq 0 ]
then
SETUP="~setupdir"
fi
echo $SETUP # prints ~setupdir

[Code]...

View 5 Replies View Related

OpenSUSE Multimedia :: Re-encode Video With Audio Offset?

Feb 17, 2011

I used K3B to rip some of my DVDs (using the Xvid codec) onto my laptop to take away on holiday with me. This worked fine for 2 of the DVDs but the 3rd one ended up with the audio out of sync with the video. Fortunately VLC comes to the rescue with the ability to offset the video and audio tracks.Is there a way to re-encode the ripped files to permanently fix the offset.

View 4 Replies View Related

Ubuntu Security :: Openssl Sign And Base Encode?

Mar 29, 2010

i need to know more about openssl.In particular i'm having problems with some basic coammand-line stuff to do with signing and base64 encoding.You'll have to excuse me but i'm a security n00b. What is the command for signing some text file with a given private key and then after that base64 encoding the same file.Can this be done with a single command? what's wrong with:

Code:
openssl rsautl -sign -in textfile -inkey privatekey.pem enc -base64 -in textfile
or should that be:
Code:
openssl rsautl -sign -in textfile -inkey privatekey.pem | openssl enc -base64 -

View 1 Replies View Related

Ubuntu Multimedia :: Encode Video Using The Cinepak Codec?

Mar 18, 2011

Is there a way to encode video using the Cinepak codec on Linux? FFMPEG can only decode.

View 9 Replies View Related

General :: Find A Shell Script That Will Encode Video To?

Apr 17, 2011

I was trying to find a shell script that will encode video to a an iso that I can burn for a dvd. It seems I have lost a few of my dvds and I backed them up into mkv and I need to convert it to pal so it will work until I find them. My search was leading to other formats, but I was wanting to use pal because it is smaller. My search lead me here, but this shell script is not in pal.I need a solution that would work with slackware.

View 2 Replies View Related

Fedora :: Encode MP4 Video With AAC Audio For IPod Nano 5G With Avidemux

Jan 2, 2011

I Updated from Fedora 9 to Fedora 13 several months ago and noticed that AAC audio encoder was no more available in Avidemux (I use version 2.5.3.3 for fedora 13 from rpmfusion repo)Unfortunately AAC is mandatory on the IPod (and probably other Apple devices) to have the sound working.I had faad2-libs (decoder) and faac (encoder) packages installed, but avidemux was not using them.After some search on the web, I found that faac support was removed because of legal issues.Some people recommend to rebuild Avidemux from source but this was a little bit complicated, and I found an easier solution.

In fact the only thing needed to add AAC support to Avidemux is to add the required libADM_ae_faac.so library in /usr/lib/ADM_plugins/audioEncoders, as it is no more supplied in the package avidemux-plugins. Searching for libADM_ae_faac.so on the Web, I found some packages containing this file, such as the ones from other distros, and the package for the same Avidemux version than the one I use but for Fedora 11 : avidemux-plugins-2.5.3-3.fc11.i586.rpm.

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved