OBS via IPTSin on the PortsDown

Discussion about this major DATV Project. See https://wiki.batc.org.uk/The_Portsdown_Transmitter
2i0jmt
Posts: 65
Joined: Tue Apr 16, 2019 2:48 pm

Re: OBS via IPTSin on the PortsDown

Post by 2i0jmt » Tue Jun 04, 2019 10:29 pm

Hi Franck

Are you able to post your ffmpeg command, as well as a screenshot of the Output/Recording Page in OBS?

Thanks

Jonny

G7JTT
Posts: 338
Joined: Fri Jun 10, 2016 5:05 pm

Re: OBS via IPTSin on the PortsDown

Post by G7JTT » Wed Jun 05, 2019 4:41 am

Hi Franck it looks like your bitrate is about right but its running at 6.87x this needs to be around 1x this is my basic.ini file for 250Ks @ 3/4FEC have a look and compare it to yours the only difference might be screen sizes;

[General]
Name=250KS@3/4FEC

[Video]
BaseCX=1280
BaseCY=720
OutputCX=768
OutputCY=432
FPSType=0
FPSInt=25
FPSCommon=25 PAL
ColorFormat=NV12
ColorSpace=709
ColorRange=Full
ScaleType=lanczos

[Panels]
CookieId=CFF8AB48F4F7A36C

[Output]
Mode=Advanced
MaxRetries=14
NewSocketLoopEnable=true
LowLatencyEnable=true
RetryDelay=8
BindIP=default

[AdvOut]
TrackIndex=1
RecType=FFmpeg
RecEncoder=obs_x264
RecTracks=1
FFOutputToFile=false
FFURL=udp://230.0.0.11:20000?pkt_size=1316&bitrate=372100
FFFormat=mpegts
FFFormatMimeType=video/MP2T
FFExtension=ts
FFVBitrate=222
FFIgnoreCompat=true
FFVEncoderId=28
FFVEncoder=libx264
FFAEncoderId=86018
FFAEncoder=aac
FFAudioMixes=1
FFMCustom=muxrate=372100 mpegts_original_network_id =1 mpegts_transport_stream_id=2 mpegts_service_id=1 mpegts_start_pid=300 mpegts_pmt_start_pid=4096 pcr_period=40
FFVCustom=preset=superfast x264-params=nal-hrd=cbr:force-cfr=1:vbv-bufsize=1000
FFVGOPSize=50
FFABitrate=32
FFRescale=true
FFRescaleRes=576x324
RescaleRes=620x465
RecRescaleRes=1920x1080
Rescale=false

[Stats]
geometry=AdnQywACAAAAAAIoAAABXQAABVcAAAKbAAACMAAAAXwAAAVPAAACkwAAAAAAAAAAB4A=

[Audio]
SampleRate=48000
ChannelSetup=Mono

[SimpleOutput]
RecEncoder=qsv
RecQuality=Small

Also in the script I have added "&bitrate=%TSBITRATE%" to the line -flush_packets 0 -f mpegts "udp://%ip%:10000?pkt_size=1316&bitrate=%TSBITRATE%"

To set the C920 to HD use custom resolution 1920x1080 25FPS MJPEG this will run the camera in HD and give the best picture.


Hope this helps and look forward to a duplex contact on QO100 soon,

all the best John

F1SSF
Posts: 87
Joined: Sat Nov 25, 2017 5:14 pm

Re: OBS via IPTSin on the PortsDown

Post by F1SSF » Wed Jun 05, 2019 5:21 am

Hi John, Jonny

See my output file:
OBS OUT.PNG
OBS OUT.PNG (42.32 KiB) Viewed 4794 times
and my basic.ini (SR250 FEC 1/2)

[General]
Name=250Ks @ 1/2 FEC

[Video]
BaseCX=1280
BaseCY=720
OutputCX=768
OutputCY=432
FPSType=0
FPSInt=25
FPSCommon=25 PAL
ScaleType=lanczos

[Panels]
CookieId=7F3903664F2245BA

[Output]
Mode=Advanced

[AdvOut]
TrackIndex=1
RecType=FFmpeg
RecEncoder=obs_x264
RecTracks=1
FFOutputToFile=false
FFURL=udp://230.0.0.11:20000?pkt_size=1316&bitrate= 495700
FFFormat=mpegts
FFFormatMimeType=video/MP2T
FFExtension=ts
FFVBitrate=161
FFIgnoreCompat=true
FFVEncoderId=28
FFVEncoder=libx264
FFAEncoderId=86018
FFAEncoder=aac
FFAudioMixes=1
FFMCustom=muxrate= 268500 mpegts_original_network_id =1 mpegts_transport_stream_id=2 mpegts_service_id=1 mpegts_start_pid=300 mpegts_pmt_start_pid=4096 pcr_period=40
FFVCustom=preset=superfast x264-params=nal-hrd=cbr:force-cfr=1:vbv-bufsize=1000
FFVGOPSize=50
FFABitrate=32
FFRescale=true
FFRescaleRes=352x288
RescaleRes=620x465
RecRescaleRes=1920x1080
Rescale=false

[Stats]
geometry=AdnQywACAAAAAAIoAAABXQAABVcAAAKbAAACMAAAAXwAAAVPAAACkwAAAAAAAAAAB4A=

[Audio]
SampleRate=44100
ChannelSetup=Mono

**************************************
I compare this evening I am going to work ;)

73 Franck

G7JTT
Posts: 338
Joined: Fri Jun 10, 2016 5:05 pm

Re: OBS via IPTSin on the PortsDown

Post by G7JTT » Wed Jun 05, 2019 6:54 am

Hi Franck I think the issue is you have not changed the bitrate in the FFURL, you need this to be the same as muxrate so try changing it too 268500 so it should be

FFURL=udp://230.0.0.11:20000?pkt_size=1316&bitrate= 268500

Hopefully this will now work also check in the script as well.

All the best John

F1SSF
Posts: 87
Joined: Sat Nov 25, 2017 5:14 pm

Re: OBS via IPTSin on the PortsDown

Post by F1SSF » Wed Jun 05, 2019 7:24 pm

Hi ,
John, Ok for same bitrate ... I am tested differents config, the result is better, but not perfect.
My power is short, and I can not use FEC3/4 but only 1/2, and I am limited at SR250.
I have updated Net Bitrate and Video Bitrate for SR250 FEC 1/2, with your basic.ini, but I must ajust step by step the value to have a picture.
see attached my pattern on QO100...and if I try to use webcan, image is cloudly and pixelizedand looked.
UDP1.PNG
UDP1.PNG (222.34 KiB) Viewed 4752 times
I continue tomorrow...
See you later, thank you.
73 Franck

G7JTT
Posts: 338
Joined: Fri Jun 10, 2016 5:05 pm

Re: OBS via IPTSin on the PortsDown

Post by G7JTT » Wed Jun 05, 2019 8:24 pm

Hi FrancK for 250Ks @ 1/2 FEC use 247500 for muxrate/bitrate and 148 for FFVBitrate, also have you copied the pthreads to the ffmpeg directory ?

all best for now John

F1SSF
Posts: 87
Joined: Sat Nov 25, 2017 5:14 pm

Re: OBS via IPTSin on the PortsDown

Post by F1SSF » Thu Jun 06, 2019 5:05 am

Hi John,
Thank you again for your support.
For the pthreads yes , I have dezipped pthreads files directly in c:/ffmpeg/bin, is it correct?
.To set the C920 to HD use custom resolution 1920x1080 25FPS MJPEG this will run the camera in HD and give the best picture
Can you tell me to , where I do setup custom resolution 1920x1080 25FPS MJPEG ?
I continue this evening ;)
73 Franck

G7JTT
Posts: 338
Joined: Fri Jun 10, 2016 5:05 pm

Re: OBS via IPTSin on the PortsDown

Post by G7JTT » Thu Jun 06, 2019 7:21 am

Morning Franck yes copy pthreads to bin directory and over write existing files. To set up the C920 create a scene then select the C920 as a source. Now right click and go to properties and select "custom" from the menu and enter the value's below.

All best John

F1SSF
Posts: 87
Joined: Sat Nov 25, 2017 5:14 pm

Re: OBS via IPTSin on the PortsDown

Post by F1SSF » Thu Jun 06, 2019 6:50 pm

Hi John,
The video and pattern are perfect.
I must to wait few seconds before FFMPEG stabilizes.
I noticed some flaws on the mix transitions, I must cut the TX so that the image is correct.
The sound looks good too, and I have no more cuts.
sincerely congratulations for the relevance of your information 8-) 8-)
vid perfect.PNG
vid perfect.PNG (33.35 KiB) Viewed 4686 times
also, sometime FFMPEG has some mistakes
Is it possible to correct it?
output.PNG
output.PNG (21.09 KiB) Viewed 4686 times
73 Franck

G7JTT
Posts: 338
Joined: Fri Jun 10, 2016 5:05 pm

Re: OBS via IPTSin on the PortsDown

Post by G7JTT » Fri Jun 07, 2019 6:55 am

Fantastic that you've got it working, I always let the stream run for a minute or so before TX to let it settle down and yes I still get the odd error in FFmpeg but think thats down to the laptop only being an old i5.

All the best and look forward to working you via QO100

Post Reply

Return to “The Portsdown Digital ATV System”