View previous topic :: View next topic |
Author |
Message |
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1523
|
Posted: Fri Aug 22, 2014 10:09 am Post subject: ffmpeg video encoding |
|
|
I'll be using ffmpeg video encoders alot
I'm lost in the codec part
I see ffmpeg automatically selects the codec based on the extension I'm using(.mp3,.mpg...etc
say I want to try out the amv format:
DEVIL. amv AMV Video
what am I supposed to do
I tried .amv(no dice)
and -vcodec amv
NULL @ 0x2614e90] Unable to find a suitable output format for '/tmp/out'
/tmp/out: Invalid argument
and -vcodec amv with /tmp/out.mpg
[amv @ 0x2548b30] only 8 bits/component accepted
Error while decoding stream #0:0: Operation not permitted
I have a vague idea of the container/codec topic
thanks |
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1523
|
Posted: Fri Aug 22, 2014 5:52 pm Post subject: |
|
|
the avi format accepts all codecs
problem solved |
|
Back to top |
|
|
FishB8 l33t
Joined: 17 Mar 2003 Posts: 820
|
Posted: Tue Aug 26, 2014 3:26 am Post subject: |
|
|
Quote: | the avi format accepts all codecs
problem solved |
The avi format is absolute crap.
Quote: | I'll be using ffmpeg video encoders alot
I'm lost in the codec part |
Nobody can help you if you don't post the actual command & arguments used. Otherwise people are just guessing at what you are trying to accomplish. _________________ "...as we enjoy great advantages from the inventions of others, we should be glad of an opportunity to serve others by any invention of ours, and this we should do freely and generously." -Benjamin Franklin |
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1523
|
Posted: Tue Aug 26, 2014 6:22 am Post subject: |
|
|
ffmpeg -f x11grab -r 30 -s 1366x768 -i :0.0 -vcodec $vcodec -preset ultrafast $out -y
where $vcodec is h264 atm and $out is a .mp4 file
I just use the avi format for benchmarking the codecs.
I'm using the .mp4 with h264(and sometimes aac as well) for the actual encoding now(after I was done benchmarking) |
|
Back to top |
|
|
FishB8 l33t
Joined: 17 Mar 2003 Posts: 820
|
Posted: Tue Aug 26, 2014 3:20 pm Post subject: |
|
|
amv is a slightly modified version of avi, and only really is intended to use mjpeg and a adpcm variant for codecs. So it's probably not very useful for what you are trying to do. Use the -f option to specify format rather than vcodec.
Avi does not have the proper mechanisms to deal with non-intra frame codecs, so each implementation works around that limitation (and others) in its own way, which creates incompatibilities. If you want a generic format for testing codecs with ffmpeg based tools, use the nut format. _________________ "...as we enjoy great advantages from the inventions of others, we should be glad of an opportunity to serve others by any invention of ours, and this we should do freely and generously." -Benjamin Franklin |
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1523
|
Posted: Wed Aug 27, 2014 6:27 am Post subject: |
|
|
hmm that's interesting
ok thanks I'll look up the nut format and use it for my benchmarks |
|
Back to top |
|
|
|