wang-bin / QtAV

A cross-platform multimedia framework based on Qt and FFmpeg. 基于Qt和FFmpeg的跨平台高性能音视频播放框架. Recommand to use new sdk https://github.com/wang-bin/mdk-sdk
http://qtav.org
3.99k stars 1.51k forks source link

Difference with ffplay #165

Closed cascarpato closed 9 years ago

cascarpato commented 10 years ago

Hi all, i have tried to use QtAv to show a video from an IP Cameras but the result is very different compared with ffplay. The QtAv Video is slower and not fluid and present more artefacts and a degraded Image. With ffplay there are no problems: the video is fluid and clean. The only log from QtAv adn ffmpeg is:

[ffmpeg: h264]: Current profile doesn't provide more RBSP data in PPS, skipping. Any Ideas?
cascarpato commented 10 years ago

this is ffplay output: ffplay -v debug "rtsp://Admin:1234@10.10.10.113/h264"

[rtsp @ 0x7fae700008c0] SDP:aq= 0KB vq= 0KB sq= 0B f=0/0
v=0 o=- 1275385516787921 1 IN IP4 0.0.0.0 s=Session streamed by "nessyMediaServer" i=h264 t=0 0 a=tool:Streaming Media v2010.04.09 a=type:broadcast a=control:* a=range:npt=0- a=x-qt-text-nam:Session streamed by "nessyMediaServer" a=x-qt-text-inf:h264 m=video 0 RTP/AVP 99 c=IN IP4 0.0.0.0 a=rtpmap:99 H264/90000 a=fmtp:99 packetization-mode=1;profile-level-id=4D401F; sprop-parameter-sets=Z01AH5pmBaCT//4AgABa1BQUFQAAAwPoAAGGoOhgAbNQABs0a7y40MADZqAANmjXeXCgAA==,aO48gA== a=control:track1 a=cliprect:0,0,576,720 a=framerate:50.000000 a=x-bufferdelay:0 m=audio 15070 RTP/AVP 0 a=rtpmap:0 PCMU/8000/1 a=control:track2 m=application 0 RTP/AVP 107 a=rtpmap:107 vnd.onvif.metadata/90000/ a=control:track3

[rtsp @ 0x7fae700008c0] video codec set to: h264 [NULL @ 0x7fae70004b20] RTP Packetization Mode: 1 [NULL @ 0x7fae70004b20] RTP Profile IDC: 4d Profile IOP: 40 Level: 1f [NULL @ 0x7fae70004b20] Extradata set to 0x7fae70005f80 (size: 64)! [rtsp @ 0x7fae700008c0] audio codec set to: pcm_mulaw [rtsp @ 0x7fae700008c0] audio samplerate set to: 8000 [rtsp @ 0x7fae700008c0] audio channels set to: 1 [rtsp @ 0x7fae700008c0] hello state=0 [h264 @ 0x7fae70004b20] Current profile doesn't provide more RBSP data in PPS, skipping Last message repeated 1 times 0KB vq= 0KB sq= 0B f=0/0
[rtsp @ 0x7fae700008c0] All info found [rtsp @ 0x7fae700008c0] Estimating duration from bitrate, this may be inaccurate Input #0, rtsp, from 'rtsp://Admin:1234@10.10.10.113/h264': Metadata: title : Session streamed by "nessyMediaServer" comment : h264 Duration: N/A, start: 0.000000, bitrate: 64 kb/s Stream #0:0, 28, 1/90000: Video: h264 (Main), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 1/100, 50 fps, 50 tbr, 90k tbn, 100 tbc Stream #0:1, 5, 1/8000: Audio: pcm_mulaw, 8000 Hz, 1 channels, s16, 64 kb/s Stream #0:2, 8, 1/90000: Data: none, 0/1 [h264 @ 0x7fae70004b20] detected 4 logical cores [h264 @ 0x7fae7025b860] Using externally provided dimensions Video frame changed from size:0x0 format:none serial:-1 to size:720x576 format:yuv420p serial:1 detected 4 logical cores [ffplay_buffer @ 0x7fae64192ca0] Setting 'video_size' to value '720x576' [ffplay_buffer @ 0x7fae64192ca0] Setting 'pix_fmt' to value '0' [ffplay_buffer @ 0x7fae64192ca0] Setting 'time_base' to value '1/90000' [ffplay_buffer @ 0x7fae64192ca0] Setting 'pixel_aspect' to value '64/45' [ffplay_buffer @ 0x7fae64192ca0] w:720 h:576 pixfmt:yuv420p tb:1/90000 fr:0/1 sar:64/45 sws_param: [ffplay_crop @ 0x7fae641931c0] Setting 'out_w' to value 'floor(in_w/2)_2' [ffplay_crop @ 0x7fae641931c0] Setting 'out_h' to value 'floor(in_h/2)_2' [AVFilterGraph @ 0x7fae64192420] query_formats: 3 queried, 2 merged, 0 already done, 0 delayed [ffplay_crop @ 0x7fae641931c0] w:720 h:576 sar:64/45 -> w:720 h:576 sar:64/45 [h264 @ 0x7fae70004b20] Current profile doesn't provide more RBSP data in PPS, skipping

wang-bin commented 10 years ago

what QtAV versions has this problem?

cascarpato commented 10 years ago

I tested my old

QtAV 1.1.11

and the last in github if you want i can send you the IP so you can test by yourself

Il 03/03/2014 12:16, WangBin ha scritto:

what QtAV versions has this problem?

— Reply to this email directly or view it on GitHub https://github.com/wang-bin/QtAV/issues/165#issuecomment-36500921.