Re: [FFmpeg-devel] fail to seek key video packet

2018-02-04 Thread qw
>> > I use following command to test ffmpeg-2.8.1: >> >> This list is for development of ffmpeg, not for user support or bug reports. >> >> Use the ffmpeg-user list for user support, and http://trac.ffmpeg.org/ >> to report bugs. > >And please don't expect anyone to help debug issues with ffmpeg-

[FFmpeg-devel] fail to seek key video packet

2018-02-02 Thread qw
Hi, I use following command to test ffmpeg-2.8.1: ffmpeg -debug_ts -ss 10 -t 1 -i hanma.ts -f null /dev/null ffmpeg version 2.8.1 Copyright (c) 2000-2015 the FFmpeg developers built with icc (ICC) 14.0.2 20140120 configuration: --cc=/opt/intel/bin/icc --enable-version3 --enable-asm --e

[FFmpeg-devel] fail to build ffmpeg with icc 14

2018-02-02 Thread qw
Hi, I use the following command to build ffmpeg: ./configure --cc=/opt/intel/bin/icc --enable-version3 --enable-asm --enable-avfilter --disable-static --enable-shared --enable-gpl --enable-nonfree --prefix=/usr/local/ --extra-cflags='-I/usr/local/include --extra-ldflags='-L/usr/local/lib --e

[FFmpeg-devel] one bug of getting wrong sample rate when receiving rtmp stream

2016-12-14 Thread qw
Hi, I found one bug, where ffmpeg functions can't get precise audio sample rate when receiving rtmp stream. 1st method: If avformat_open_input() and avformat_find_stream_info() is used to parse rtmp stream, audio sample rate can be calculated correctly. 2nd method: But if av_format_set_audi

[FFmpeg-devel] why the option 'timeout' in native rtmp plugin doesn't work

2016-10-31 Thread qw
Hi, 1) I want to open and read some rtmp live stream, and don't like wait indefinite time for some rtmp stream when there is no rtmp stream to come. Therefore, the option of 'timeout' is used to set the longest waiting time. But it didn't work, and avformat_open_input() reported as follows:

[FFmpeg-devel] why the option 'timeout' in native rtmp plugin doesn't work

2016-10-27 Thread qw
Hi, 1) I want to open and read some rtmp live stream, and don't like wait indefinite time for some rtmp stream when there is no rtmp stream to come. Therefore, the option of 'timeout' is used to set the longest waiting time. But it didn't work, and avformat_open_input() reported as follows:

[FFmpeg-devel] is it possible that avfilter graph updates its setting in realtime?

2016-10-24 Thread qw
Hi, I have one question about some rare usage for avfilter graph: Sometimes, I want to change the setting in avfilter graph. For example, fps filter is used to set output frame rate, and it's expected that fps can be changed in accordance to real needs. Sometimes, fps is set to 25, and later

Re: [FFmpeg-devel] questions about multi-thread issues for ffmpeg

2016-09-12 Thread qw
of 1st pass encoding, i.e. flushing bufferred video from x264 encoder. If AVFMT_NOFILE is unset in AVFormatContext::oformat->flags for 1st pass, there is no crash issue any more. Thanks! Regards Andrew At 2016-09-08 17:56:07, "Ronald S. Bultje" wrote: >Hi Andrew, > &

[FFmpeg-devel] questions about multi-thread issues for ffmpeg

2016-09-08 Thread qw
Hi, I have made one simple transcoding program by using ffmpeg lib, where several av transcoding tasks are done in one process and each task corresponds to one thread. But some ffmpeg function will report error, and sometimes the multi-thread version of transcoding program will crash abnorma

[FFmpeg-devel] why prebuilt windows ffmpeg use rtmpdump instead of its native rtmp plugin

2016-08-04 Thread qw
Hi, Previously, I sent email to ask which rtmp plugin is better. The answer is ffmpeg's native rtmp plugin is better than rtmpdump. But why does official prebuilt windows ffmpeg use rtmpdump instead of its native rtmp plugin? Thanks! Regards andrew ___

[FFmpeg-devel] one issue for reading incoming rtmp stream

2016-07-31 Thread qw
Hi, I'm using avformat_open_input() and avformat_find_stream_info() open incoming rtmp stream, where there are two substream, i.e. audio and video streams. ffmpeg's native rtmp plugin is expected to detect both audio and video streams. Sometimes ffmpeg's native rtmp plugin can detect only audio

[FFmpeg-devel] why are audio/video encoding/decoding functions marked as attribute_deprecated?

2016-07-26 Thread qw
Hi, avcodec_decode_video2(), avcodec_decode_audio4(), avcodec_encode_video2(), and avcodec_encode_audio2(). The following url links are ffmpeg 3.1.1 description: http://ffmpeg.org/doxygen/3.1/group__lavc__decoding.html#ga3ac51525b7ad8bca4ced9f3446e96532 http://ffmpeg.org/doxygen/3.1/group__lavc_

Re: [FFmpeg-devel] why ffmpeg 3.1.1 still uses AVStream::codec

2016-07-19 Thread qw
Hi, If AVStream::codec is declared as deprecated, I think, there should be another way to open and close avcodec instead of using avcodec_open2() and avcodec_close(). Is that right? Thanks! Regards Andrew At 2016-07-19 19:30:58, "Timo Rothenpieler" wrote: >> Hi, >> >> I have read part

[FFmpeg-devel] why ffmpeg 3.1.1 still uses AVStream::codec

2016-07-19 Thread qw
Hi, I have read part of source code of ffmpeg 3.1.1. In the structure of 'struct AVStream', 'AVCodecContext *codec' is declared as deprecated. But in ffmpeg.c, 'AVCodecContext *codec' is still used in some functions. Why? Thanks! Regards Andrew __

[FFmpeg-devel] what's the general setting for network reading and writing?

2016-07-13 Thread qw
Hi, If input or output is set to file, it's easy to set AVFormatContext. But for network application, there are many issues that should be considered, such as network delay, no network connection, and corrupted data. How to set AVFormatContext to deal with those general network issues? Thanks!

[FFmpeg-devel] does ffmpeg support AEC?

2016-07-11 Thread qw
Hi, Does ffmpeg support AEC, i.e. Acoustic Echo Cancellation? Or Does ffmpeg has third-party dependency lib that supports AEC? Thanks! Regards Andrew ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-deve

[FFmpeg-devel] which rtmpdump is beter for fmpeg's native rtmp lib and rtmpdump

2016-07-11 Thread qw
Hi, I found ffmpeg support two rtmp libs, where one is ffmpeg's native rtmp lib, and the other is rtmpdump. Which is better? Thanks! Regards Andrew ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

[FFmpeg-devel] how to parse audio/video information for rtmp protocal

2016-06-28 Thread qw
Hi, FFmpeg has its native rtmp plugin, and also can use rtmpdump instead if enable-librtmp is chosen when building ffmpeg. I have reviewed rtmp specification, where client and server can notify its peer of audio/video information via metadata message, and of audio/video codec via connect comma

[FFmpeg-devel] how to use two rtmp plugins in ffmpeg

2016-06-28 Thread qw
Hi, ffmpeg has its own built-in rtmp plugin, and also support to use rtmpdump as another rtmp plugin. How to use specified rtmp plugin, i.e. build-in rtmp plugin or rtmpdump plugin, if rtmpdump is enabled and built within ffmpeg? Thanks! Regards Andrew ___

[FFmpeg-devel] why ffmpeg doesn't support vp9 svc?

2016-06-24 Thread qw
Hi, I have one question about vp9. vp9 supports svc encoding/decoding. Why ffmpeg doesn't support vp9 svc? Thanks! B.R. Andrew ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

[FFmpeg-devel] one question about h.264 svc decoder

2016-06-18 Thread qw
Hi, I found ffmpeg has supported openh264 now. Does ffmpeg support h.264 SVC deocding, i.e. capability of decoding temporal, spatial and quality scalability bitstream? Thanks! B.R. Andrew ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://

[FFmpeg-devel] One questions about 3D video

2016-06-12 Thread qw
Hi, My quesions are shown below: 1) Is there some way to check whether media files contain 3d Video or not? Thanks! B.R. andrew ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

[FFmpeg-devel] how to deal with the situation of full disk

2016-05-25 Thread qw
Hi, In some rare case, when there are huge AV transcoding tasks, disk will become full if old files are not deleted immediately. Then those running transcoding tasks may not work correctly. In general transcoding application, av_interleaved_write_frame() and av_read_frame() are used to write o

[FFmpeg-devel] does the latest ffmpeg support h264 SVC

2016-05-17 Thread qw
Hi, I have one question about the function of the latest ffmepg. Does the latest ffmpeg support H.264 SVC? Why ffmpeg doesn't support H.264 SVC? Thanks! B.R. Andrew ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listi

Re: [FFmpeg-devel] why ffmpeg reports error when decoding rm or rmvb files

2016-05-16 Thread qw
Hi Moritz, Thanks for your reply. What does 'the thread went OT' mean? How to know whether my presented question has been resolved, if someone has sent some solution on ffmpeg forum, like 'http://ffmpeg.org/pipermail/ffmpeg-devel/2016-May/194083.html'? Thanks! B.R. Andrew At 2016-05-16 23

[FFmpeg-devel] why ffmpeg reports error when decoding rm or rmvb files

2016-05-16 Thread qw
Hi, I'm using the following command to decode some rm and rmvb files, and ffmpeg reports error as shown below: [root@PT-18376 test-clips]# ffmpeg -i hanma.rm -xerror -f null /dev/null ffmpeg version 2.8.3 Copyright (c) 2000-2015 the FFmpeg developers built with icc (ICC) 14.0.2 20140120 conf

[FFmpeg-devel] how to know via ffmpeg lib whether disk is full or not

2016-05-16 Thread qw
Hi, In some rare case, when there are huge AV transcoding tasks, disk will become full if old files are not deleted immediately. Then those transcoding tasks can't work correctly. In general transcoding application, av_interleaved_write_frame() and av_read_frame() are used to make media files,

[FFmpeg-devel] one question about aac bitstream in mov container

2016-03-22 Thread qw
Hi, I am reading ffmpeg source code, and confused about the following logic in movenc.c, if (enc->codec_id == AV_CODEC_ID_AAC && pkt->size > 2 && (AV_RB16(pkt->data) & 0xfff0) == 0xfff0) { if (!s->streams[pkt->stream_index]->nb_frames) { av_log(s, AV_LOG_ERROR,

[FFmpeg-devel] one question about aac bitstream in mov container

2016-03-22 Thread qw
Hi, I am reading ffmpeg source code, and confused about the following logic in movenc.c, if (enc->codec_id == AV_CODEC_ID_AAC && pkt->size > 2 && (AV_RB16(pkt->data) & 0xfff0) == 0xfff0) { if (!s->streams[pkt->stream_index]->nb_frames) { av_log(s, AV_LOG_ERROR,

[FFmpeg-devel] how to build ffmpeg with -O0 instead of -O1

2016-03-21 Thread qw
Hi, I want to build ffmpeg without optimization options, which means compiling flags uses O0 instead of O1-O3. I use the following command to build ffmpeg, where O1 is used in config.mak. ./configure --enable-debug --disable-optimizations .. I want to disable all optimization options to

[FFmpeg-devel] how to flush audio delayed frames

2015-07-30 Thread qw
hi, avcodec_encode_audio() is used to encode audio frame. How to flush audio delayed frames in audio encoder? Thanks! B.R. Andrew ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel