Recording not saving video, only audio (SOMETIMES)

This forum is about all development around libVLC.
tirolock
Blank Cone
Blank Cone
Posts: 29
Joined: 04 Jun 2018 17:34

Recording not saving video, only audio (SOMETIMES)

Postby tirolock » 20 Jul 2018 19:33

CONTEXT :
-Making a streaming/recording app
-Using visual studio 2017
-Windows 10 64 bits
-libvlc 32bits 3.0.0.0
-Windows form app c# (ANY CPU)
-Using Vlc.DotNet (VlcController)

QUESTION :
I have an app that records and shows multiple rtsp streams simultaneously.
When I start my app, I start all my vlcControls using the option:

Code: Select all

":sout=#duplicate{dst=std{access=file,mux=" + "avi" + ",dst='" + savePath + "'},dst=display}"
I then see the streams playing on the app, but when I go look at the recordings, SOMETIMES, I only get the audio part saved....

What's the best way to debug this problem?

I know it's a really vague problem, but I was hoping someone could throw me on the right tracks to debug this issue...

The

Code: Select all

error
and

Code: Select all

stopped
flags aren't going up also.

tirolock
Blank Cone
Blank Cone
Posts: 29
Joined: 04 Jun 2018 17:34

Re: Recording not saving video, only audio (SOMETIMES)

Postby tirolock » 20 Jul 2018 21:05


mfkl
Developer
Developer
Posts: 739
Joined: 13 Jun 2017 10:41

Re: Recording not saving video, only audio (SOMETIMES)

Postby mfkl » 21 Jul 2018 13:04

Can you post some logs please?
https://mfkl.github.io

tirolock
Blank Cone
Blank Cone
Posts: 29
Joined: 04 Jun 2018 17:34

Re: Recording not saving video, only audio (SOMETIMES)

Postby tirolock » 23 Jul 2018 14:56

I have been informed that it's a known bug and that an issue about it has been open for a long time....

https://trac.videolan.org/vlc/ticket/18940

tirolock
Blank Cone
Blank Cone
Posts: 29
Joined: 04 Jun 2018 17:34

Re: Recording not saving video, only audio (SOMETIMES)

Postby tirolock » 23 Jul 2018 14:56

Code: Select all

main debug: auto hiding mouse cursor main debug: VoutDisplayEvent 'mouse button' 2 t=8 main debug: VoutDisplayEvent 'mouse button' 2 t=9 main warning: playback too early (-51872): down-sampling main warning: playback too late (72066): up-sampling main warning: playback too early (-58851): down-sampling main warning: playback too late (69795): up-sampling main warning: playback too early (-54205): down-sampling main debug: auto hiding mouse cursor main debug: using sout chain=`record{dst-prefix='E:\\testLouka\\vlc-record-2018-07-23-08h53m34s-rtsp___192.168.10.116_554_videoMain-'}' main debug: stream=`record' main debug: looking for sout stream module matching "record": 23 candidates main warning: playback too late (62976): up-sampling main warning: playback too early (-43439): down-sampling main warning: playback too late (62873): up-sampling main debug: set config option: sout-record-dst-prefix to E:\testLouka\vlc-record-2018-07-23-08h53m34s-rtsp___192.168.10.116_554_videoMain- main debug: using sout stream module "record" main debug: looking for packetizer module matching "any": 24 candidates h264 debug: found NAL_SPS (sps_id=0) h264 debug: found NAL_PPS (pps_id=0 sps_id=0) main debug: using packetizer module "h264" main debug: looking for packetizer module matching "any": 24 candidates main debug: using packetizer module "copy" main debug: adding a new sout input for `mlaw` (sout_input: 00000000068fef20) main warning: playback way too early (-145691): playing silence main debug: inserting 6993 zeroes main warning: playback too late (61246): up-sampling main warning: timing screwed (drift: 148748 us): stopping resampling main warning: playback too late (109164): up-sampling main debug: resampling stopped (drift: 25852 us) main warning: playback too late (89227): up-sampling main debug: adding a new sout input for `h264` (sout_input: 0000000003e42440) main warning: picture is too late to be displayed (missing 44 ms) main warning: picture is too late to be displayed (missing 24 ms) main debug: VoutDisplayEvent 'mouse button' 2 t=8 main debug: picture might be displayed late (missing 10 ms) main debug: VoutDisplayEvent 'mouse button' 2 t=9 main warning: playback way too late (208779): flushing buffers mmdevice debug: state changed: 0 wasapi debug: reset main debug: inserting 48063 zeroes mmdevice debug: state changed: 1 main warning: playback too early (-44637): down-sampling main warning: timing screwed (drift: -110491 us): stopping resampling main warning: playback too early (-52823): down-sampling main debug: resampling stopped (drift: 2155 us) main warning: playback too early (-62033): down-sampling main debug: auto hiding mouse cursor main debug: resampling stopped (drift: -13940 us) main warning: playback too early (-55585): down-sampling main debug: resampling stopped (drift: -23273 us) main warning: playback too early (-60346): down-sampling main warning: playback way too early (-140502): playing silence main debug: inserting 6744 zeroes main debug: killing decoder fourcc `h264' main debug: removing module "h264" main debug: removing a sout input (sout_input: 0000000003e42440) record warning: failed to find an adequate muxer, probing muxers record debug: probing muxer avi record debug: Using record output `std{access=file{no-append,no-format,no-overwrite},mux='avi',dst='C:\\Users\\MORNEA~1\\AppData\\Local\\Temp\\vlc2'}' main debug: stream=`std' main debug: looking for sout stream module matching "std": 23 candidates main debug: set config option: sout-standard-access to file{no-append,no-format,no-overwrite} main debug: set config option: sout-standard-mux to avi main debug: set config option: sout-standard-dst to C:\Users\MORNEA~1\AppData\Local\Temp\vlc2 main debug: looking for sout access module matching "file": 10 candidates main debug: set config option: sout-file-append to (null) main debug: set config option: sout-file-format to (null) main debug: set config option: sout-file-overwrite to (null) file debug: file access output opened (C:\Users\MORNEA~1\AppData\Local\Temp\vlc2) main debug: using sout access module "file" main debug: looking for sout mux module matching "avi": 11 candidates avi debug: AVI muxer opened main debug: using sout mux module "avi" stream_out_standard debug: using `file{no-append,no-format,no-overwrite}/avi://C:\Users\MORNEA~1\AppData\Local\Temp\vlc2' main debug: using sout stream module "stream_out_standard" main debug: adding a new input avi debug: adding input main debug: adding a new input avi debug: adding input avi debug: removing input avi debug: removing input main warning: no more input streams for this mux main debug: destroying chain... (name=std) main debug: removing module "stream_out_standard" main debug: removing module "avi" avi debug: AVI muxer closed avi info: stream[0] duration:0 totalsize:0 frames:0 fps:25.000000 KiB/s:128 avi info: stream[1] duration:0 totalsize:0 frames:0 fps:25.000000 KiB/s:128 main debug: removing module "file" file debug: file access output closed main debug: destroying chain done record debug: using muxer avi with extension avi (2/2 streams accepted) record debug: Using record output `std{access=file{no-append,no-format,no-overwrite},mux='avi',dst='E:\\testLouka\\vlc-record-2018-07-23-08h53m34s-rtsp___192.168.10.116_554_videoMain-.avi'}' main debug: stream=`std' main debug: looking for sout stream module matching "std": 23 candidates main debug: set config option: sout-standard-access to file{no-append,no-format,no-overwrite} main debug: set config option: sout-standard-mux to avi main debug: set config option: sout-standard-dst to E:\testLouka\vlc-record-2018-07-23-08h53m34s-rtsp___192.168.10.116_554_videoMain-.avi main debug: looking for sout access module matching "file": 10 candidates main debug: set config option: sout-file-append to (null) main debug: set config option: sout-file-format to (null) main debug: set config option: sout-file-overwrite to (null) file debug: file access output opened (E:\testLouka\vlc-record-2018-07-23-08h53m34s-rtsp___192.168.10.116_554_videoMain-.avi) main debug: using sout access module "file" main debug: looking for sout mux module matching "avi": 11 candidates avi debug: AVI muxer opened main debug: using sout mux module "avi" stream_out_standard debug: using `file{no-append,no-format,no-overwrite}/avi://E:\testLouka\vlc-record-2018-07-23-08h53m34s-rtsp___192.168.10.116_554_videoMain-.avi' main debug: using sout stream module "stream_out_standard" main debug: adding a new input avi debug: adding input main debug: adding a new input avi debug: adding input avi debug: writing header avi warning: argg length avi warning: argg length avi warning: argg length avi warning: argg length avi warning: argg length avi warning: argg length avi warning: argg length avi warning: argg length avi warning: argg length avi warning: argg length avi warning: argg length avi warning: argg length avi debug: removing input main debug: killing decoder fourcc `mlaw' main debug: removing module "copy" main debug: removing a sout input (sout_input: 00000000068fef20) avi debug: removing input main warning: no more input streams for this mux main debug: destroying chain... (name=record) main debug: removing module "record" main debug: destroying chain... (name=std) main debug: removing module "stream_out_standard" main debug: removing module "avi" avi debug: AVI muxer closed avi info: stream[0] duration:3 totalsize:21120 frames:56 fps:15.732265 KiB/s:46 avi info: stream[1] duration:0 totalsize:0 frames:0 fps:25.000000 KiB/s:128 main debug: removing module "file" file debug: file access output closed main debug: destroying chain done main debug: destroying chain done main warning: playback too late (98839): up-sampling main debug: resampling stopped (drift: 35006 us) main warning: playback too late (105006): up-sampling main debug: resampling stopped (drift: 24357 us) main warning: playback too late (98563): up-sampling main debug: auto hiding mouse cursor

tirolock
Blank Cone
Blank Cone
Posts: 29
Joined: 04 Jun 2018 17:34

Re: Recording not saving video, only audio (SOMETIMES)

Postby tirolock » 23 Jul 2018 21:30

I think the problem is not happening when using the mp4 muxer...

I've changed this option today and since then, no unrecorded video!

sr99622
New Cone
New Cone
Posts: 4
Joined: 22 Mar 2018 02:20

Re: Recording not saving video, only audio (SOMETIMES)

Postby sr99622 » 23 Jul 2018 22:07

I have been experiencing this problem in the vlc app as well when recording from camera. For now the only workaround I have found is to disable audio on the camera stream and then I can get the video only to record. It would be nice if there was a way to get both audio and video when recording from the camera

tirolock
Blank Cone
Blank Cone
Posts: 29
Joined: 04 Jun 2018 17:34

Re: Recording not saving video, only audio (SOMETIMES)

Postby tirolock » 25 Jul 2018 20:52

Changing to mp4 definitely helped!

Code: Select all

":sout=#duplicate{dst=std{access=file,mux=" + "mp4" + ",dst='" + savePath + "'},dst=display}"
Don't forget to change the file ending for .mp4


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 27 guests