I can see video artifacts in ffplay when displaying local udp stream.
Periodically, video becomes distorted.
Video stream error on trying to open udp://127.0.0.1:54000
-
- Site Admin
- Posts: 17569
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: Video stream error on trying to open udp://127.0.0.1:54000
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
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
In order to set additional params (-framedrop -sync video -fflags nobuffer -probesize 64) I've written the following procedure:
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:
What is the reason? Do I do smth wrong?
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;
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)
Re: Video stream error on trying to open udp://127.0.0.1:54000
And the problem is that "-probesize 64" affects greately on video latency.
-
- Site Admin
- Posts: 17569
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: Video stream error on trying to open udp://127.0.0.1:54000
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.
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
Great!
Waiting for this update.
Waiting for this update.
-
- Site Admin
- Posts: 17569
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: Video stream error on trying to open udp://127.0.0.1:54000
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?
I found out that my video source sends data in tiny blocks (188 bytes).
Can this be the reason of the delay and corruption?