[FFmpeg-trac] #6418(undetermined:open): ffmpeg QSV doesnt work with live streams
FFmpeg
trac at avcodec.org
Fri May 26 16:56:24 EEST 2017
#6418: ffmpeg QSV doesnt work with live streams
-------------------------------------+-------------------------------------
Reporter: rycius | Owner:
Type: defect | Status: open
Priority: important | Component:
Version: git-master | undetermined
Keywords: qsv | Resolution:
regression | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by rycius):
with TS analyzer figured out that first I-Frame is on packet 476, if i
cut file to that point - transcoding start's to work:
{{{
dd if=stream_dump.ts of=stream_dump_skip.ts bs=188 skip=475
}}}
{{{
ffmpeg -hwaccel qsv -c:v mpeg2_qsv -i stream_dump_skip.ts -c:v h264_qsv
-b:v 3M -maxrate 3M -look_ahead 0 -c:a copy -f mpegts udp://127.0.0.1:123
ffmpeg version N-86258-g5782e0b Copyright (c) 2000-2017 the FFmpeg
developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
configuration: --enable-libmfx --enable-nonfree --disable-ffplay
--disable-ffprobe --disable-ffserver --disable-doc
libavutil 55. 63.100 / 55. 63.100
libavcodec 57. 96.101 / 57. 96.101
libavformat 57. 72.101 / 57. 72.101
libavdevice 57. 7.100 / 57. 7.100
libavfilter 6. 90.100 / 6. 90.100
libswscale 4. 7.101 / 4. 7.101
libswresample 2. 8.100 / 2. 8.100
Input #0, mpegts, from 'stream_dump_skip.ts':
Duration: 00:00:25.63, start: 57544.240956, bitrate: 5420 kb/s
Program 157
Metadata:
service_name : Info tv
service_provider: xxxx
Stream #0:0[0x623]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002),
yuv420p(tv, top first), 720x576 [SAR 64:45 DAR 16:9], 4026 kb/s, 25 fps,
25 tbr, 90k tbn, 50 tbc
Stream #0:1[0x624]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz,
stereo, s16p, 192 kb/s (clean effects)
Stream mapping:
Stream #0:0 -> #0:0 (mpeg2video (mpeg2_qsv) -> h264 (h264_qsv))
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
libva info: VA-API version 0.99.0
libva info: va_getDriverName() returns 0
libva info: User requested driver 'iHD'
libva info: Trying to open /opt/intel/mediasdk/lib64/iHD_drv_video.so
libva info: Found init function __vaDriverInit_0_32
libva info: va_openDriver() returns 0
Output #0, mpegts, to 'udp://127.0.0.1:123':
Metadata:
encoder : Lavf57.72.101
Stream #0:0: Video: h264 (h264_qsv), qsv, 720x576 [SAR 64:45 DAR
16:9], q=2-31, 3000 kb/s, 25 fps, 90k tbn, 25 tbc
Metadata:
encoder : Lavc57.96.101 h264_qsv
Side data:
cpb: bitrate max/min/avg: 3000000/0/3000000 buffer size: 0
vbv_delay: -1
Stream #0:1: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo,
s16p, 192 kb/s (clean effects)
[h264_qsv @ 0x2ed41a0] Warning during encoding: incompatible video
parameters (5)
Last message repeated 18 times
[mpegts @ 0x2eb0520] Non-monotonous DTS in output stream 0:0; previous:
104400, current: 86400; changing to 104401. This may result in incorrect
timestamps in the output file.
[h264_qsv @ 0x2ed41a0] Warning during encoding: incompatible video
parameters (5)
[mpegts @ 0x2eb0520] Non-monotonous DTS in output stream 0:0; previous:
104401, current: 100800; changing to 104402. This may result in incorrect
timestamps in the output file.
[h264_qsv @ 0x2ed41a0] Warning during encoding: incompatible video
parameters (5)
Last message repeated 6 times
[mpegts @ 0x2eb0520] Non-monotonous DTS in output stream 0:0; previous:
136800, current: 136800; changing to 136801. This may result in incorrect
timestamps in the output file.
[h264_qsv @ 0x2ed41a0] Warning during encoding: incompatible video
parameters (5)
Last message repeated 15 times
[mpegts @ 0x2eb0520] Non-monotonous DTS in output stream 0:0; previous:
198000, current: 198000; changing to 198001. This may result in incorrect
timestamps in the output file.
[h264_qsv @ 0x2ed41a0] Warning during encoding: incompatible video
parameters (5)
Last message repeated 11 times
[mpegts @ 0x2eb0520] Non-monotonous DTS in output stream 0:0; previous:
244800, current: 244800; changing to 244801. This may result in incorrect
timestamps in the output file.
[h264_qsv @ 0x2ed41a0] Warning during encoding: incompatible video
parameters (5)
Last message repeated 15 times
[mpegts @ 0x2eb0520] Non-monotonous DTS in output stream 0:0; previous:
306000, current: 306000; changing to 306001. This may result in incorrect
timestamps in the output file.
[h264_qsv @ 0x2ed41a0] Warning during encoding: incompatible video
parameters (5)
Last message repeated 11 times
[mpegts @ 0x2eb0520] Non-monotonous DTS in output stream 0:0; previous:
352800, current: 352800; changing to 352801. This may result in incorrect
timestamps in the output file.
[h264_qsv @ 0x2ed41a0] Warning during encoding: incompatible video
parameters (5)
Last message repeated 15 times
[mpegts @ 0x2eb0520] Non-monotonous DTS in output stream 0:0; previous:
414000, current: 414000; changing to 414001. This may result in incorrect
timestamps in the output file.
[h264_qsv @ 0x2ed41a0] Warning during encoding: incompatible video
parameters (5)
Last message repeated 11 times
[mpegts @ 0x2eb0520] Non-monotonous DTS in output stream 0:0; previous:
460800, current: 460800; changing to 460801. This may result in incorrect
timestamps in the output file.
[h264_qsv @ 0x2ed41a0] Warning during encoding: incompatible video
parameters (5)
Last message repeated 15 times
[mpegts @ 0x2eb0520] Non-monotonous DTS in output stream 0:0; previous:
522000, current: 522000; changing to 522001. This may result in incorrect
timestamps in the output file.
[h264_qsv @ 0x2ed41a0] Warning during encoding: incompatible video
parameters (5)
Last message repeated 11 times
[mpegts @ 0x2eb0520] Non-monotonous DTS in output stream 0:0; previous:
568800, current: 568800; changing to 568801. This may result in incorrect
timestamps in the output file.
[h264_qsv @ 0x2ed41a0] Warning during encoding: incompatible video
parameters (5)
Last message repeated 15 times
[mpegts @ 0x2eb0520] Non-monotonous DTS in output stream 0:0; previous:
630000, current: 630000; changing to 630001. This may result in incorrect
timestamps in the output file.
[h264_qsv @ 0x2ed41a0] Warning during encoding: incompatible video
parameters (5)
Last message repeated 11 times
[mpegts @ 0x2eb0520] Non-monotonous DTS in output stream 0:0; previous:
676800, current: 676800; changing to 676801. This may result in incorrect
timestamps in the output file.
[h264_qsv @ 0x2ed41a0] Warning during encoding: incompatible video
parameters (5)
Last message repeated 15 times
[mpegts @ 0x2eb0520] Non-monotonous DTS in output stream 0:0; previous:
738000, current: 738000; changing to 738001. This may result in incorrect
timestamps in the output file.
[h264_qsv @ 0x2ed41a0] Warning during encoding: incompatible video
parameters (5)
Last message repeated 11 times
[mpegts @ 0x2eb0520] Non-monotonous DTS in output stream 0:0; previous:
784800, current: 784800; changing to 784801. This may result in incorrect
timestamps in the output file.
[h264_qsv @ 0x2ed41a0] Warning during encoding: incompatible video
parameters (5)
Last message repeated 15 times
[mpegts @ 0x2eb0520] Non-monotonous DTS in output stream 0:0; previous:
846000, current: 846000; changing to 846001. This may result in incorrect
timestamps in the output file.
[h264_qsv @ 0x2ed41a0] Warning during encoding: incompatible video
parameters (5)
Last message repeated 11 times
[mpegts @ 0x2eb0520] Non-monotonous DTS in output stream 0:0; previous:
892800, current: 892800; changing to 892801. This may result in incorrect
timestamps in the output file.
[h264_qsv @ 0x2ed41a0] Warning during encoding: incompatible video
parameters (5)
Last message repeated 15 times
[mpegts @ 0x2eb0520] Non-monotonous DTS in output stream 0:0; previous:
954000, current: 954000; changing to 954001. This may result in incorrect
timestamps in the output file.
[h264_qsv @ 0x2ed41a0] Warning during encoding: incompatible video
parameters (5)
Last message repeated 4 times
[h264_qsv @ 0x2ed41a0] Warning during encoding: incompatible video
parameters (5) speed=21.8x
Last message repeated 6 times
[mpegts @ 0x2eb0520] Non-monotonous DTS in output stream 0:0; previous:
1000800, current: 1000800; changing to 1000801. This may result in
incorrect timestamps in the output file.
[h264_qsv @ 0x2ed41a0] Warning during encoding: incompatible video
parameters (5)
Last message repeated 13 times
[mpegts @ 0x2eb0520] Non-monotonous DTS in output stream 0:0; previous:
1054800, current: 1054800; changing to 1054801. This may result in
incorrect timestamps in the output file.
[h264_qsv @ 0x2ed41a0] Warning during encoding: incompatible video
parameters (5)
Last message repeated 15 times
[mpegts @ 0x2eb0520] Non-monotonous DTS in output stream 0:0; previous:
1116000, current: 1116000; changing to 1116001. This may result in
incorrect timestamps in the output file.
[h264_qsv @ 0x2ed41a0] Warning during encoding: incompatible video
parameters (5)
Last message repeated 11 times
[mpegts @ 0x2eb0520] Non-monotonous DTS in output stream 0:0; previous:
1162800, current: 1162800; changing to 1162801. This may result in
incorrect timestamps in the output file.
[h264_qsv @ 0x2ed41a0] Warning during encoding: incompatible video
parameters (5)
Last message repeated 15 times
[mpegts @ 0x2eb0520] Non-monotonous DTS in output stream 0:0; previous:
1224000, current: 1224000; changing to 1224001. This may result in
incorrect timestamps in the output file.
[h264_qsv @ 0x2ed41a0] Warning during encoding: incompatible video
parameters (5)
Last message repeated 11 times
[mpegts @ 0x2eb0520] Non-monotonous DTS in output stream 0:0; previous:
1270800, current: 1270800; changing to 1270801. This may result in
incorrect timestamps in the output file.
[h264_qsv @ 0x2ed41a0] Warning during encoding: incompatible video
parameters (5)
Last message repeated 15 times
[mpegts @ 0x2eb0520] Non-monotonous DTS in output stream 0:0; previous:
1332000, current: 1332000; changing to 1332001. This may result in
incorrect timestamps in the output file.
[h264_qsv @ 0x2ed41a0] Warning during encoding: incompatible video
parameters (5)
Last message repeated 11 times
[mpegts @ 0x2eb0520] Non-monotonous DTS in output stream 0:0; previous:
1378800, current: 1378800; changing to 1378801. This may result in
incorrect timestamps in the output file.
[h264_qsv @ 0x2ed41a0] Warning during encoding: incompatible video
parameters (5)
Last message repeated 15 times
[mpegts @ 0x2eb0520] Non-monotonous DTS in output stream 0:0; previous:
1440000, current: 1440000; changing to 1440001. This may result in
incorrect timestamps in the output file.
[h264_qsv @ 0x2ed41a0] Warning during encoding: incompatible video
parameters (5)
Last message repeated 11 times
[mpegts @ 0x2eb0520] Non-monotonous DTS in output stream 0:0; previous:
1486800, current: 1486800; changing to 1486801. This may result in
incorrect timestamps in the output file.
[h264_qsv @ 0x2ed41a0] Warning during encoding: incompatible video
parameters (5)
Last message repeated 15 times
[mpegts @ 0x2eb0520] Non-monotonous DTS in output stream 0:0; previous:
1548000, current: 1548000; changing to 1548001. This may result in
incorrect timestamps in the output file.
[h264_qsv @ 0x2ed41a0] Warning during encoding: incompatible video
parameters (5)
Last message repeated 11 times
[mpegts @ 0x2eb0520] Non-monotonous DTS in output stream 0:0; previous:
1594800, current: 1594800; changing to 1594801. This may result in
incorrect timestamps in the output file.
[h264_qsv @ 0x2ed41a0] Warning during encoding: incompatible video
parameters (5)
Last message repeated 19 times
[mpegts @ 0x2eb0520] Non-monotonous DTS in output stream 0:0; previous:
1674000, current: 1674000; changing to 1674001. This may result in
incorrect timestamps in the output file.
[h264_qsv @ 0x2ed41a0] Warning during encoding: incompatible video
parameters (5)
Last message repeated 27 times
[mpegts @ 0x2eb0520] Non-monotonous DTS in output stream 0:0; previous:
1782000, current: 1782000; changing to 1782001. This may result in
incorrect timestamps in the output file.
[h264_qsv @ 0x2ed41a0] Warning during encoding: incompatible video
parameters (5)
Last message repeated 27 times
[mpegts @ 0x2eb0520] Non-monotonous DTS in output stream 0:0; previous:
1890000, current: 1890000; changing to 1890001. This may result in
incorrect timestamps in the output file.
[h264_qsv @ 0x2ed41a0] Warning during encoding: incompatible video
parameters (5)
Last message repeated 2 times
[h264_qsv @ 0x2ed41a0] Warning during encoding: incompatible video
parameters (5) speed=21.2x
Last message repeated 38 times
[mpegts @ 0x2eb0520] Non-monotonous DTS in output stream 0:0; previous:
2052000, current: 2052000; changing to 2052001. This may result in
incorrect timestamps in the output file.
[h264_qsv @ 0x2ed41a0] Warning during encoding: incompatible video
parameters (5)
Last message repeated 27 times
[mpegts @ 0x2eb0520] Non-monotonous DTS in output stream 0:0; previous:
2160000, current: 2160000; changing to 2160001. This may result in
incorrect timestamps in the output file.
[h264_qsv @ 0x2ed41a0] Warning during encoding: incompatible video
parameters (5)
Last message repeated 19 times
[mpegts @ 0x2eb0520] Non-monotonous DTS in output stream 0:0; previous:
2239200, current: 2239200; changing to 2239201. This may result in
incorrect timestamps in the output file.
[h264_qsv @ 0x2ed41a0] Warning during encoding: incompatible video
parameters (5)
Last message repeated 5 times
[mpeg2_qsv @ 0x2eaf980] A decode call did not consume any data: expect
more data at input (-10)
[h264_qsv @ 0x2ed41a0] Warning during encoding: incompatible video
parameters (5)
[mpeg2_qsv @ 0x2eaf980] A decode call did not consume any data: expect
more data at input (-10)
[h264_qsv @ 0x2ed41a0] Warning during encoding: incompatible video
parameters (5)
[mpeg2_qsv @ 0x2eaf980] A decode call did not consume any data: expect
more data at input (-10)
Last message repeated 1 times
[mpegts @ 0x2eb0520] Non-monotonous DTS in output stream 0:0; previous:
2286000, current: 2286000; changing to 2286001. This may result in
incorrect timestamps in the output file.
frame= 583 fps=482 q=-0.0 Lsize= 10048kB time=00:00:25.60
bitrate=3215.3kbits/s dup=0 drop=4 speed=21.2x
video:8652kB audio:594kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 8.670417%
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/6418#comment:12>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list