hi:
I need to compress a video with close GOP and open Gop to compare them using some algorithm.
I used -flags -cgop for open and -flags +cgop for close with GOP=12, and gets the same pattern
IBPBPBPBPBPP for both open and close...... I think the pattern must be for open IBPBPBPBPBPB, the pattern must ends with B-frame...
please help me
ffmpeg -i vid.y4m -vcodec libx264 -g 12 -flags -cgop -y -r 30 output.avi 2>list4.txt
+ Reply to Thread
Results 1 to 18 of 18
-
-
a. if your ffmpeg version is more than 20month old http://ffmpeg.org/trac/ffmpeg/ticket/261 might be a problem.
b. open and close gop do not always have different frame patterns (e.g. scene change detection might trigger a IDR frame for both)
c. no clue where you get the assumption that the frame pattern must end with a B-Frame for open gop,...
d. compiling x264 with lav support and simply using the x264 encoder directly might give better control over the x264 parameters,... -
i read this
http://documentation.apple.com/en/compressor/usermanual/index.html#chapter=18%26sectio...5%26tasks=true
the last P-frame is replaced with B-frame that depends on the I-frame of the next GOP -
what about this
libx264: change default to closed gop to match x264cli
open-gop can be enabled with "-flags -cgop"
http://lists.libav.org/pipermail/libav-commits/2012-September/008145.html -
what about this
My point (in post #4) was only that if you use x264 (or any other H.264 codec) you can't rely on documentation for a MPEG-2 encoder of Apple!
I only wrote that I think that the assumption that gops need to end with b-frames is wrong and that if you want to rely on the documentation you linked to you should use the encoder the documentation belongs to,...
Before (in post #2) at the beginning was, that if -flags -/+cgop doesn't work for you it might be due to an old ffmpeg version,...
=> no clue what you are trying to tell me with your last post.
Cu Selur -
Just for the notes (and according to my understanding of the subject):
-- if an open-GOP begins with a B-frame, then it ends with a P-frame (or even on an I-frame)
-- if an open-GOP begins with an I-frame, then it ends with a B-frame
-- ffmpeg does not / cannot fully~control the behavior of the codecs which are not part of the libavcodec bundle
-- until some years ago at least, the only ways to ensure closed-GOPs through ffmpeg were: 1) not use B-frames, or 2) disable the scene-detection algorithm. -
I just want to ensure that this is true (what is written in link), I dont be to bother you.... I just want your help
-
i have another problem, I libx264 does not take the bit rate I choos into consideration, what to do?
-
Read up on how to use libx264 properly.
Especially the difference between the different 1pass and 2pass rate control methods. -
sorry instead of libavcodec , it must be libx264, its not the line code I wanted
Similar Threads
-
Honoring Pulldown Flags
By unclescoob in forum DVD RippingReplies: 10Last Post: 26th Jul 2012, 09:14 -
Can You Change The AR Flags in an MKV file?
By wulf109 in forum Blu-ray RippingReplies: 5Last Post: 6th Jul 2011, 19:00 -
Do MKV files Have AR Flags?
By wulf109 in forum Blu-ray RippingReplies: 1Last Post: 28th Jun 2011, 11:37 -
VirtuaDub Flags. FPS.
By vodmare in forum Newbie / General discussionsReplies: 1Last Post: 4th Aug 2010, 02:08 -
-ss / -t flags?
By richlyon in forum ffmpegX general discussionReplies: 3Last Post: 9th Mar 2008, 08:58