Open GoogleCodeExporter opened 9 years ago
Is it something that's supposed to work according to the documentation of
FFmpeg? If it's a documented feature, please attach a code snippet so I can try
and run here. If it's not documented, please consult with the authors of FFmpeg
first, thanks!
Original comment by samuel.a...@gmail.com
on 15 Sep 2013 at 5:33
Hi, Samuel:
Thanks for your comments.
Actually I have solved this issue by disabling the AVFMT_GLOBALHEADER setting
in FFmpegFrameRecorder.java as following:
if(true){ //disabling AVFMT_GLOBALHEADER for my private codec
oformat.flags((oformat.flags()&(~AVFMT_GLOBALHEADER)));
video_c.flags(video_c.flags() | CODEC_FLAG2_LOCAL_HEADER);
}else if ((oformat.flags() & AVFMT_GLOBALHEADER) != 0) {
video_c.flags(video_c.flags() | CODEC_FLAG_GLOBAL_HEADER);
}
Then, I'm able to override the extradata when I received the Sps/pps from my
encoder. Hope this change could be added into javacv, which may be needed by
someone else with same issue.
Thanks for your great work on javacv.
-Martin
Original comment by hone...@gmail.com
on 23 Sep 2013 at 7:05
Good! Would you have a patch to suggest to include that feature in future
versions of FFmpegFrameRecorder.java? Thanks!
Original comment by samuel.a...@gmail.com
on 29 Sep 2013 at 12:11
Samuel:
This change is only useful for my private codec, but not ffmpeg codec.
I think if there is a new XXXRecorder.java in JavaCV to support third party
codec, which will be a very good interface for the ones which do not want to
use ffmpeg codec, but still need the parser, demuxer etc.
I think my patch could be useful to add into this XXXRecoder.java.
Original comment by hone...@gmail.com
on 8 Oct 2013 at 9:56
It would be helpful to know why you believe that it is not possible to adapt
FFmpegFrameRecorder in some way... thanks!
Original comment by samuel.a...@gmail.com
on 8 Oct 2013 at 10:01
It is all right if you think it is better to adapt FFmpegFrameRecorder in
some way.
For my decoder, I changed the recording calling from sync and async, which
could improve the recording performance. There might be other different
requirement for different codec api.
Original comment by hone...@gmail.com
on 8 Oct 2013 at 11:34
I'm asking your opinion here: Do you think it's possible to adapt
FFmpegFrameRecorder? And if so, how?
Original comment by samuel.a...@gmail.com
on 13 Oct 2013 at 2:33
I think what we need to figure out is a way to make it easy to change various
FFmpeg options, in general. If anyone has any good ideas, please let us know!
thanks
Original comment by samuel.a...@gmail.com
on 4 Jan 2014 at 1:57
Original issue reported on code.google.com by
hone...@gmail.com
on 10 Sep 2013 at 3:20Attachments: