Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 21 Oct 2014, 23:35
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Multimedia
FFmpeg Wrapper 0.0.5
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count_1  
Author Message
abushcrafter


Joined: 30 Oct 2009
Posts: 1447
Location: England

PostPosted: Mon 18 Oct 2010, 11:24    Post_subject:  FFmpeg Wrapper 0.0.5  

Here is the FFmpeg Wrapper script. It corrects the acodec "vorbis" parameter to "libvorbis". This is because older versions of FFmpeg used "vorbis" as the acodec parameter and in new version it was changed to "libvorbis". It also corrects "-vcodec xvid" to "-vcodec libxvid". This way old pre-sets/scripts are still compatible with this version of FFmpeg.

To use, rename the "ffmpeg" binary to "fmpeg.bin" and save this script in "/usr/bin/" using the name "ffmpeg".

Code:
#!/bin/sh

#FFmpeg Wrapper
#Version=0.0.5
#Date (dd.mm.yyyy hh:mm:ss)=08.10.2010 22:42:38
#Thanks to the dad (SSR) of Alexander .S.T. Ross (abushcrafter) (Again :).)

#ChangeLog ----------------------------------------------------------------------
#    12.10.2010 Alexander .S.T. Ross (abushcrafter) Email: <http://www.google.com/recaptcha/mailhide/d?k=01uNeUuXxeNm9FA3Zciuoqzw==&c=nVfKeb7kjqZVVIQanqJwEC2DP5zrALkSERTopYvj_pU=>
#      * 0.0.5: Now corrects "-vcodec xvid" to "-vcodec libxvid".

# Bash script to modify edit parameters in command line.
# Designed to cope with spaces in parameters .

prevparam="none"
count=1
args=("$@")

while [ $count -ne  $# ] ; do
if [ "$prevparam" = "-acodec" ] ; then
    args[$count]=$(echo ${args[$count]}| sed s/vorbis/libvorbis/g )
fi
if [ "$prevparam" = "-vcodec" ] ; then
    args[$count]=$(echo ${args[$count]}| sed s/xvid/libxvid/g )
fi
prevparam=${args[$count]}
#echo $count "  " ${args[$count]}  #Debugging: Comment out in final code.
count=$((count+1))
done
ffmpeg.bin "${args[@]}"




On the subject of compatibility you might find this info useful: http://www.murga-linux.com/puppy/viewtopic.php?p=457774#457774 and http://www.murga-linux.com/puppy/viewtopic.php?p=458019#458019

_________________
adobe flash is rubbish!
My Quote:"Humans are stupid, though some are clever but stupid." http://www.dependent.de/media/audio/mp3/System_Syn_Heres_to_You.zip http://www.systemsyn.com/
Back to top
View user's profile Send_private_message Visit_website 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count_1  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Multimedia
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0411s ][ Queries: 12 (0.0048s) ][ GZIP on ]