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:30
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Anyone know command line FFmpeg for Xvid & Ac3?
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 2 Posts_count   Goto page: 1, 2 Next
Author Message
sunburnt


Joined: 08 Jun 2005
Posts: 5037
Location: Arizona, U.S.A.

PostPosted: Sun 18 Oct 2009, 14:53    Post_subject:  Anyone know command line FFmpeg for Xvid & Ac3?  

Not exactly programming, but this seemed a better place than the Users forum.

I`m trying to make ffmpeg work because none of the GUIs will work.
I run ffmpeg and get the error: ffmpeg: unrecognized option '-i /mnt/hdb5/0/movie.avi
It`s hard to believe that "-i" and the input file is an unknown option...
Here`s the command line I used and ffmpeg`s output:
Code:
 IN='-i /mnt/hdb5/0/movie.avi'
VO='-vcodec libxvidcore.so.4.1.0 -r 29.97 -sameq -b 2500 -pass 1 -passlogfile /mnt/hdb5/0/movie.log -deinterlace'
AO='-ab 224k'
OUT='-f avi -g 300 -bf 2 /mnt/hda5/0/movie.avi'
ffmpeg "$IN" "$VO" "$AO" "$OUT"
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  configuration: --prefix=/usr --libdir=/usr/lib --mandir=/usr/man --disable-debug --arch=i386 --enable-libmp3lame --enable-liba52 --enable-libogg --enable-libvorbis --enable-pthreads --enable-small --enable-gpl --enable-shared --enable-pp
  libavutil version: 49.5.0
  libavcodec version: 51.44.0
  libavformat version: 51.14.0
  built on Oct 23 2007 22:05:00, gcc: 4.2.2
ffmpeg: unrecognized option '-i /mnt/hdb5/0/movie.avi'

One thing I noticed is that the Xvid codec is not listed by ffmpeg.
I copied the Xvid library to /usr/lib, but I guess that may not be enough.
Also I noticed most examples use: "-vcodec libxvid" without the rest
of the Xvid library`s file name file, maybe they have a link?
It didn`t complain about that, but the error is so odd that who knows?
Back to top
View user's profile Send_private_message 
sunburnt


Joined: 08 Jun 2005
Posts: 5037
Location: Arizona, U.S.A.

PostPosted: Fri 23 Oct 2009, 13:15    Post_subject:  

Surely someone here has used FFmpeg at the command line..!
Back to top
View user's profile Send_private_message 
trapster


Joined: 28 Nov 2005
Posts: 2006
Location: Maine, USA

PostPosted: Sat 24 Oct 2009, 08:03    Post_subject:  

I am no expert with ffmpeg but I use this to convert the size of movies for my phone.

Code:
ffmpeg -i "TheGoldenCompass.mp4" -s 320x240 -aspect 4:3 -b 1250k -ab 80k "TheGoldenCompass1.mp4"

_________________
trapster
Maine, USA

Asus eeepc 1005HA PU1X-BK
Frugal install: Puppeee4.31 + 1.0, Puppy4.10 + Lupu52
Currently using Slacko AND lupu52 w/ fluxbox
Back to top
View user's profile Send_private_message Visit_website 
gposil


Joined: 06 Apr 2009
Posts: 1305
Location: Stanthorpe (The Granite Belt), QLD, Australia

PostPosted: Sat 24 Oct 2009, 08:58    Post_subject:  

sunburnt,

your version of ffmpeg is not compiled with libxvid support, that is why it won't work.

_________________
Dpup Home
Back to top
View user's profile Send_private_message Visit_website MSNM 
sunburnt


Joined: 08 Jun 2005
Posts: 5037
Location: Arizona, U.S.A.

PostPosted: Sat 24 Oct 2009, 14:17    Post_subject:  

gposil; That`s what I suspected, and I`m sure the same goes for x-h264 and AC3.
Whats the chances of getting one that has been compiled properly?
Do you have a copy of ffmpeg that`s been "fixed" ?

trapster; There`s so many examples it`s dizzying, my needs are simple.
Convert to Xvid or x-h264, keep the AC3 audio, maybe transcode it`s bit rate lower.

ALSO... I haven`t seen any examples of loading several video files into ffmpeg.
Or examples of using it to join separate video files together end to end..
Back to top
View user's profile Send_private_message 
gposil


Joined: 06 Apr 2009
Posts: 1305
Location: Stanthorpe (The Granite Belt), QLD, Australia

PostPosted: Sat 24 Oct 2009, 20:03    Post_subject:  

sunburnt,
I'm doing a recompile of ffmpeg for dpup482beta5, and it includes all the codecs you would want, it won't be ready till probably Tuesday though...I'll post the link to it here when it's done...Hope that helps.

Cheers

_________________
Dpup Home
Back to top
View user's profile Send_private_message Visit_website MSNM 
sunburnt


Joined: 08 Jun 2005
Posts: 5037
Location: Arizona, U.S.A.

PostPosted: Sat 24 Oct 2009, 23:42    Post_subject:  

gposil; That is killer! I want to dump Puppy400, but no other Puppy has worked.
Then I tried Dpup and I love it, I have Debian experience and it worked great...
Just that "load SFS file to ram no matter what" problem so Firefox lacked ram to run.
Let me know... And many thanks... Terry
Back to top
View user's profile Send_private_message 
gposil


Joined: 06 Apr 2009
Posts: 1305
Location: Stanthorpe (The Granite Belt), QLD, Australia

PostPosted: Sun 25 Oct 2009, 07:11    Post_subject:  

sunburnt,

below is link to ffmpeg upgrade for dpup...it will not work in other puppies, it has just about all codecs known to man and dog...hope that helps...

http://dpup.org/test/dpup482beta4-2.6.30.5/upgrades/ffmpeg-dpup-upgrade.pet

Cheers
Guy

_________________
Dpup Home
Back to top
View user's profile Send_private_message Visit_website MSNM 
sunburnt


Joined: 08 Jun 2005
Posts: 5037
Location: Arizona, U.S.A.

PostPosted: Sun 25 Oct 2009, 13:41    Post_subject:  

Thanks Guy; I`ll be working on this today, I`ll let you know how it goes.
I ran Dpup all night to see if it had any problems.. Nope, not a one!
Got up this morning and it responded to the mouse and was running fine.
Back to top
View user's profile Send_private_message 
mikeb


Joined: 23 Nov 2006
Posts: 8344

PostPosted: Sun 25 Oct 2009, 17:32    Post_subject:  

Avidemux uses the shared Xvid library and not avcodec.

mike
Back to top
View user's profile Send_private_message 
sunburnt


Joined: 08 Jun 2005
Posts: 5037
Location: Arizona, U.S.A.

PostPosted: Tue 03 Nov 2009, 00:26    Post_subject:  

gposil; I`ve tried your Dpup ffmpeg.pet and I`m getting the same error:
Code:
# ffmpeg -i /mnt/sda6/V/tropicT/-1-1.vob -vcodec libxvidcore.so.4.2 -sameq -b 1500 -ab 224k -f avi -g 300 -bf 2 /mnt/sda3/v/tropic-1.avi

FFmpeg version 0.5, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --prefix=/usr --enable-libfaac --enable-libfaad --enable-libmp3lame --enable-libschroedinger --enable-libtheora --enable-libx264 --enable-libxvid --enable-libvorbis --enable-gpl --enable-x11grab --enable-pthreads --enable-postproc --enable-swscale
  libavutil     49.15. 0 / 49.15. 0
  libavcodec    52.20. 0 / 52.20. 0
  libavformat   52.31. 0 / 52.31. 0
  libavdevice   52. 1. 0 / 52. 1. 0
  libswscale     0. 7. 1 /  0. 7. 1
  libpostproc   51. 2. 0 / 51. 2. 0
  built on Oct 25 2009 17:22:15, gcc: 4.3.2
ffmpeg: unrecognized option '-i /mnt/sda6/V/tropicT/-1-1.vob'

I don`t know what the -g option does exactly, -bf is the number of B frames.
I`ve tried removing arguments to see if it helped, same error no matter what.
I`m puzzled by the error that it doesn`t recognize the -i option? Weird !!!

I have been using avidemux but almost all of them have really bad sync.
All ripped with pupdvdtool and the vobs play just fine. I`m getting nowhere.
Back to top
View user's profile Send_private_message 
gposil


Joined: 06 Apr 2009
Posts: 1305
Location: Stanthorpe (The Granite Belt), QLD, Australia

PostPosted: Tue 03 Nov 2009, 00:47    Post_subject:  

sunburnt...command should be

Quote:
ffmpeg -i /mnt/sda6/V/tropicT/-1-1.vob -vcodec libxvid -acodec ac3 -sameq -b 1500 -ab 224k -f avi -g 300 -bf 2 /mnt/sda3/v/tropic-1.avi


Cheers

_________________
Dpup Home
Back to top
View user's profile Send_private_message Visit_website MSNM 
sunburnt


Joined: 08 Jun 2005
Posts: 5037
Location: Arizona, U.S.A.

PostPosted: Tue 03 Nov 2009, 04:07    Post_subject:  

gposil; It`s running! ( at last ) Many thanks my friend... Terry

I`m working on a replacement for pupdvdtool, I found a few flaws in it.
And I may work up a simplified GUI for ffmpeg also, a lot more work though.

# Qs;
1) Is there a way to get ffmpeg to append or load more than one input file?
2) Can ffmpeg multiplex separate V & A files together?
3) Your line put V & A codec declares first and bit rates after, is this needed?
Back to top
View user's profile Send_private_message 
gposil


Joined: 06 Apr 2009
Posts: 1305
Location: Stanthorpe (The Granite Belt), QLD, Australia

PostPosted: Tue 03 Nov 2009, 04:45    Post_subject:  

1.) You can batch convert with ffmpeg simply using a script...like the following:

Quote:
ls *.flv | while read file; do
echo $file
ffmpeg -i "$file" "${file%.flv}.avi"
done


2.) You would combine an audio and Video stream like this:

Quote:
ffmpeg -i break-video.m2v -i break-audio.mp3 no-saving-the-bugle.flv


If the two streams differ in time length you can use the -itsoffset switch.
FFmpeg can quite easily strip streams out of a file also, using -vn and -an switches..

3.) It doesn't matter where the codec declarations go...

FFmpeg is a marvelous tool but it is complicated, no not complicated just a little cryptic... Smile

Cheers
Guy

_________________
Dpup Home
Back to top
View user's profile Send_private_message Visit_website MSNM 
disciple

Joined: 20 May 2006
Posts: 6448
Location: Auckland, New Zealand

PostPosted: Tue 03 Nov 2009, 05:07    Post_subject:  

1) They want to know how to join several files together, one after the other... I can't remember now whether ffmpeg can do that.
_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 2 Posts_count   Goto page: 1, 2 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Off-Topic Area » Programming
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.0767s ][ Queries: 11 (0.0039s) ][ GZIP on ]