Page 2 of 2
Re: Video stream error on trying to open udp://127.0.0.1:54000
Posted: Fri Aug 14, 2020 5:25 pm
by Sergey Tkachenko
I can see video artifacts in ffplay when displaying local udp stream.
Periodically, video becomes distorted.
- udp-stream.jpg (54.19 KiB) Viewed 26332 times
Re: Video stream error on trying to open udp://127.0.0.1:54000
Posted: Sat Aug 15, 2020 4:11 pm
by ya_vanka
Well, may be periodically smth is distorted.
But in my case picture becomes corrupted in 30 seconds from start and then never restores.
Watch please this:
https://yadi.sk/i/vNDmBlwFdEB8Mg and this:
https://yadi.sk/d/VmxWkiIt0JuwXA
Re: Video stream error on trying to open udp://127.0.0.1:54000
Posted: Mon Aug 17, 2020 12:07 pm
by ya_vanka
In order to set additional params (-framedrop -sync video -fflags nobuffer -probesize 64) I've written the following procedure:
Code: Select all
function SetDictSpeedUpOptions(var AOptionsDict : PAVDictionary): Boolean;
var
v: PAnsiChar;
begin
Result := (av_dict_set(AOptionsDict, 'framedrop', nil, 0) = 0);
v := PAnsiChar(AnsiString('video'));
Result := Result and (av_dict_set(AOptionsDict, 'sync', v, 0) = 0);
v := PAnsiChar(AnsiString('nobuffer'));
Result := Result and (av_dict_set(AOptionsDict, 'fflags', v, 0) = 0);
{v := PAnsiChar(AnsiString(IntToStr(64)));
Result := Result and (av_dict_set(AOptionsDict, 'probesize', v, 0) = 0);}
end;
It works, but only if the last call to av_dict_set is commented (Result := Result and (av_dict_set(AOptionsDict, 'probesize', v, 0) = 0);)
In ffplay there is no problem with "-probesize 64" parameter, but RVMedia doesn't show video if I uncomment this:
Code: Select all
v := PAnsiChar(AnsiString(IntToStr(64)));
Result := Result and (av_dict_set(AOptionsDict, 'probesize', v, 0) = 0)
What is the reason? Do I do smth wrong?
Re: Video stream error on trying to open udp://127.0.0.1:54000
Posted: Mon Aug 17, 2020 1:33 pm
by ya_vanka
And the problem is that "-probesize 64" affects greately on video latency.
Re: Video stream error on trying to open udp://127.0.0.1:54000
Posted: Wed Aug 19, 2020 7:30 pm
by Sergey Tkachenko
Some changes are needed in RVMedia code to allow working with a small probesize.
This change will be included in the next update. I'll send changed files to your tomorrow.
Re: Video stream error on trying to open udp://127.0.0.1:54000
Posted: Wed Aug 19, 2020 7:43 pm
by ya_vanka
Great!
Waiting for this update.
Re: Video stream error on trying to open udp://127.0.0.1:54000
Posted: Thu Aug 20, 2020 11:35 am
by Sergey Tkachenko
Sent
Re: Video stream error on trying to open udp://127.0.0.1:54000
Posted: Fri Aug 28, 2020 7:48 am
by ya_vanka
Tested update, but I still have a big delay and video frame corruption.
I found out that my video source sends data in tiny blocks (188 bytes).
Can this be the reason of the delay and corruption?