ASF + RTSP+TS = problem

About encoding, codec settings, muxers and filter usage
postscripter
Blank Cone
Blank Cone
Posts: 36
Joined: 21 Jul 2017 08:30
Location: Hot Russia

Re: ASF + RTSP+TS = problem

Postby postscripter » 08 Feb 2018 07:53

Jean? Rémi?

postscripter
Blank Cone
Blank Cone
Posts: 36
Joined: 21 Jul 2017 08:30
Location: Hot Russia

Re: ASF + RTSP+TS = problem

Postby postscripter » 08 Feb 2018 10:34

Okay, I've found the original commit, it says, there should be also a protocol name in cmd. Wiki lies
lua: merge telnet interface into rc

The crappy input buffering code of rc is replaced by the (now) decent
one of telnet. A new telnet transport is relatively cleanly added, and
VLM commands are made available (over any transport). Example of use:

vlc -I rc --rc-host "telnet://localhost:4212"
Last edited by postscripter on 08 Feb 2018 12:13, edited 2 times in total.

postscripter
Blank Cone
Blank Cone
Posts: 36
Joined: 21 Jul 2017 08:30
Location: Hot Russia

Re: ASF + RTSP+TS = problem

Postby postscripter » 08 Feb 2018 11:20

But all the old VLM commands seem to be gone now. Should I load VLM explicitly? How?

putty 127.0.0.1:4212
new live broadcast enabled
Неизвестная команда `new'. Введите `help' для справки.
vlm
Неизвестная команда `vlm'. Введите `help' для справки.
help
Неизвестная команда `help'. Введите `help' для справки.
:shock:

postscripter
Blank Cone
Blank Cone
Posts: 36
Joined: 21 Jul 2017 08:30
Location: Hot Russia

Re: ASF + RTSP+TS = problem

Postby postscripter » 16 Feb 2018 07:15

Jean-Baptiste Kempf: logs from a version from 6 month ago? come on.
Okay, I've got brand new, shining Otto Chriek vlc-4.0.0-20180213-0319-dev-win32's log.
Sucked a certain amount of my lifeblood before I managed to fight it finally :)

Full log: https://yadi.sk/d/WJXG8ugd3ST6pU
vlc --intf qt --extraintf http --http-host=127.0.0.1 --http-port=4214 --http-password 123 --qt-start-minimized

del all
new live broadcast enabled
setup live input "C:\Temp\temp.asf"
setup live output #duplicate{dst=rtp{mux=ts,sdp=rtsp://:9090/},dst=http{mux=asf,dst=:8080},dst=display}
control live play
The origin of the temp.asf is ffmpeg:
$Audio = ""
$Video = "VF0520 Live! Cam Sync"
$Fil = "c:\temp\temp.asf"
$Exec = "ffmpeg"
$Cmd = "-report -f dshow -rtbufsize 2M -i %aud% %vid% -r 25 -vcodec wmv2 -b 2M -minrate 2M -maxrate 2M -bufsize 1M -acodec wmav2 `"$Fil`""
And what happens next:

-- logger module started --
main debug: VLC media player - 4.0.0-dev Otto Chriek
main debug: Copyright © 1996-2018 the VideoLAN team
main debug: revision 4.0.0-dev-1319-g2bf3ccac88
...
main debug: Creating an input for 'temp.asf'
main debug: using sout chain=`duplicate{dst=rtp{mux=ts,sdp=rtsp://:9090/},dst=http{mux=asf,dst=:8080},dst=display}'
...
cache_read debug: starting pre-buffering
cache_read debug: received first data after 0 ms
cache_read debug: pre-buffering done 1024 bytes in 0s - 999 KiB/s
...
asf debug: found 1 streams
asf debug: added new video stream(codec:WMV2,ID:1)
main debug: selecting program id=0
main debug: using demux module "asf"
...
main debug: no meta reader modules matched
main debug: `file:///C:/Temp/temp.asf' successfully opened
asf debug: 1 payloads
asf debug: payload(1) stream_number:1 media_object_number:1 media_object_offset:0 replicated_data_length:8 payload_data_length 3174
asf debug: extpts=-1 pkttime=0 st=0
asf debug: 1 payloads
asf debug: payload(1) stream_number:1 media_object_number:1 media_object_offset:3174 replicated_data_length:8 payload_data_length 3174
asf debug: extpts=-1 pkttime=0 st=0
asf debug: 1 payloads
asf debug: payload(1) stream_number:1 media_object_number:1 media_object_offset:6348 replicated_data_length:8 payload_data_length 3174
asf debug: extpts=-1 pkttime=0 st=0
asf debug: 1 payloads
asf debug: payload(1) stream_number:1 media_object_number:1 media_object_offset:9522 replicated_data_length:8 payload_data_length 3174
asf debug: extpts=-1 pkttime=0 st=0
asf debug: 1 payloads
asf debug: payload(1) stream_number:1 media_object_number:1 media_object_offset:12696 replicated_data_length:8 payload_data_length 3174
asf debug: extpts=-1 pkttime=0 st=0
... ... ... ... ...
asf debug: 1 payloads
asf debug: payload(1) stream_number:1 media_object_number:50 media_object_offset:3908 replicated_data_length:8 payload_data_length 3174
asf debug: extpts=-1 pkttime=1960000 st=1960
asf debug: 2 payloads
asf debug: payload(1) stream_number:1 media_object_number:50 media_object_offset:7082 replicated_data_length:8 payload_data_length 3123
asf debug: extpts=-1 pkttime=1960000 st=1960
asf debug: payload(2) stream_number:1 media_object_number:51 media_object_offset:0 replicated_data_length:8 payload_data_length 31
asf debug: extpts=-1 pkttime=2000000 st=1960
asf debug: 1 payloads
asf debug: payload(1) stream_number:1 media_object_number:51 media_object_offset:31 replicated_data_length:8 payload_data_length 3174
asf debug: extpts=-1 pkttime=2000000 st=2000
asf debug: 1 payloads
asf debug: payload(1) stream_number:1 media_object_number:51 media_object_offset:3205 replicated_data_length:8 payload_data_length 3174
asf debug: extpts=-1 pkttime=2000000 st=2000
asf debug: 2 payloads
asf debug: payload(1) stream_number:1 media_object_number:51 media_object_offset:6379 replicated_data_length:8 payload_data_length 1984
asf debug: extpts=-1 pkttime=2000000 st=2000
asf debug: payload(2) stream_number:1 media_object_number:52 media_object_offset:0 replicated_data_length:8 payload_data_length 1170
asf debug: extpts=-1 pkttime=2040000 st=2000
asf debug: 1 payloads
asf debug: payload(1) stream_number:1 media_object_number:52 media_object_offset:1170 replicated_data_length:8 payload_data_length 3174
asf debug: extpts=-1 pkttime=2040000 st=2040
asf warning: cannot peek while getting new packet, EOF ?
main debug: Buffering 0%
main debug: switching to sync mode
main debug: Buffering 100%
main debug: adding a new sout input for `WMV2` (sout_input: 060ddc88)
main debug: Stream buffering done (200 ms in 1 ms)
duplicate debug: duplicated a new stream codec=WMV2 (es=1 group=0)
main debug: adding a new input
mux_ts debug: adding input codec=WMV2 pid=100

mux_ts debug: new PCR PID is 100
duplicate debug: - added for output 0
main debug: adding a new input
asf debug: adding input
duplicate debug: - added for output 1
main debug: looking for video decoder module matching "any": 17 candidates
avcodec debug: using ffmpeg Lavc58.6.103
avcodec debug: CPU flags: 0x000853db
avcodec debug: allowing 6 thread(s) for decoding
avcodec debug: available software decoder output format 0 (yuv420p)
avcodec debug: codec (wmv2) started
main debug: using video decoder module "avcodec"
duplicate debug: - added for output 2
main debug: Decoder wait done in 9 ms
main debug: looking for text renderer module matching "any": 3 candidates
freetype warning: DirectWrite initialization failed. Falling back to GDI/Uniscribe
main debug: using text renderer module "freetype"
...
direct3d11 error: Could not Create the D3D11 device. (hr=0x80070057)
direct3d11 error: Direct3D11 could not be opened
direct3d9 debug: Using Direct3D9 Extended API!
...
direct3d9 debug: Direct3d9 Device: Intel(R) HD Graphics 4000 32902 354 9
direct3d9 debug: Direct3D9 device adapter successfully initialized
...
main debug: VoutDisplayEvent 'resize' 640x480
main debug: auto hiding mouse cursor
asf debug: Asf muxer creating header
main debug: EOF reached
main debug: killing decoder fourcc `WMV2'
...
Last edited by postscripter on 16 Feb 2018 21:39, edited 2 times in total.

postscripter
Blank Cone
Blank Cone
Posts: 36
Joined: 21 Jul 2017 08:30
Location: Hot Russia

Re: ASF + RTSP+TS = problem

Postby postscripter » 16 Feb 2018 07:40

And here I also created two logs from both 2.7 and 4.0 reading the same file. All the VLM commands were sent to them at the very same moment.
I suppose, the timestamps-in-log patch was discarded, so we have what we have here...

First the 2.7 window appeared with a video in it.
Then +0.5 sec 4.0 window appeared.
Then +2 sec 4.0 window disappeared
But 2.7 continued playing smoothly.

postscripter
Blank Cone
Blank Cone
Posts: 36
Joined: 21 Jul 2017 08:30
Location: Hot Russia

Re: ASF + RTSP+TS = problem

Postby postscripter » 03 Mar 2018 15:13

Hello

postscripter
Blank Cone
Blank Cone
Posts: 36
Joined: 21 Jul 2017 08:30
Location: Hot Russia

Caching algorithm regression

Postby postscripter » 15 Mar 2018 10:08

Should I fill a bugreport in the tracker?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: ASF + RTSP+TS = problem

Postby Jean-Baptiste Kempf » 26 Jun 2018 21:16

Yes.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 31 guests