Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ffmpeg video encoding
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1523

PostPosted: Fri Aug 22, 2014 10:09 am    Post subject: ffmpeg video encoding Reply with quote

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
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1523

PostPosted: Fri Aug 22, 2014 5:52 pm    Post subject: Reply with quote

the avi format accepts all codecs
problem solved
Back to top
View user's profile Send private message
FishB8
l33t
l33t


Joined: 17 Mar 2003
Posts: 820

PostPosted: Tue Aug 26, 2014 3:26 am    Post subject: Reply with quote

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
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1523

PostPosted: Tue Aug 26, 2014 6:22 am    Post subject: Reply with quote

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
View user's profile Send private message
FishB8
l33t
l33t


Joined: 17 Mar 2003
Posts: 820

PostPosted: Tue Aug 26, 2014 3:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1523

PostPosted: Wed Aug 27, 2014 6:27 am    Post subject: Reply with quote

hmm that's interesting
ok thanks I'll look up the nut format and use it for my benchmarks
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum