this is what awaits you in the UNIX forums,
Neo's Avatar
Neo Neo is online now Forum Staff
Administrator
Join Date: Sep 2000
Location: Asia Pacific
Posts: 8,028
Thanks: 45
Thanked 61 Times in 34 Posts
Almost Banned From Site
If you ever post a thread title like "help me god" on this site again, I will personally ban you and your IP network from this site.
Follow forum rules and do not post trash titles on this site.
Any argument from you will result in an immediate ban.
few seconds later lol got this
now just look at the time it took this Neo to send me the warnings to a new comer to their forumsNeo's Avatar
Neo Neo is online now Forum Staff
Administrator
Join Date: Sep 2000
Location: Asia Pacific
Posts: 8,028
Thanks: 45
Thanked 61 Times in 34 Posts
You have received an infraction at The UNIX and Linux Forums
Dear mysoogal,
You have received an infraction at The UNIX and Linux Forums.
Reason: Very Inappropriate Subject Text
-------
Please read the rules, which you agreed to when you registered, if you have not already done so.
Thank You.
The UNIX and Linux Forums.
-------
This infraction is worth 15 point(s) and may result in restricted access until it expires. Serious infractions will never expire.
Original Post:
http://www.unix.com/shell-programmin...#post302458482
Quote:
please somebody tell me what is wrong with this, while the thumbnail grabbing works and encoding works, but what is not working is, mv $i.jpg /var/www/thumbs/ and mv $i.mp4 /var/www/uploads/
Code:
#!/bin/bash
# MINT 9 - FFMPEG - QT-FASTSTART - X264 - MP4
DIR=/var/www/tmp
for i in `find $DIR -type f`; do
ffmpeg -i $i -acodec libfaac -ab 128k -ac 2 -vcodec libx264 -vpre slow -crf 22 -threads 0 $i.mp4
&& qt-faststart $i.mp4 $i.qt.mp4
&& chmod 777 $i.qt.mp4 && ffmpeg -itsoffset -4 -i $i -vcodec mjpeg -vframes 1 -an -f rawvideo -s 320x200 $i.jpg
&& chmod 777 $i.jpg && mv $i.jpg /var/www/thumbs/ && rm $i.mp4
&& rm $i && mv $i.qt.mp4 /var/www/uploads/
done
---------- Post updated at 01:15 AM ---------- Previous update was at 01:12 AM ----------
i wold also like to know how to strip the spaces in file names
example blaa blaa blaa.avi how would i replace the space with _ so it looks like this blaa_blaa_blaa.avi
beacuse sometimes ffmpeg does not understand videos with spaces in them, and files like these
blaaa[blaaaa]filename.avi
Moderator's Comments:
Note to mysoogal: Your original thread title was a rule violation. First and last warning on following forum rules.
All the best,
The UNIX and Linux Forums

http://i55.tinypic.com/ezr6rq.png

online mods can be real funny, when i read the warning i thought i was going to die
