VLC statistics and picture snap during transcoding

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
GriffinRU
New Cone
New Cone
Posts: 6
Joined: 27 Sep 2012 16:23
VLC version: 2.0.3
Operating System: Windows
Location: MD, USA

VLC statistics and picture snap during transcoding

Postby GriffinRU » 27 Sep 2012 16:42

Hi,
I am developing application in LabVIEW to capture video streams from various camera streams (network/directshow). While everything works great and documentation is sufficient to perform the task, I have couple questions.
1. Where I can get units to assign for variables from libvlc_media_stats?
2. During transcoding (saving RTPS stream to file) audio and video stats are not available, is it a bug or how to get it other than libvlc_media_stats?
3. Looks like picture snap function is also not available during transcoding, is it a bug or how to get it other than libvlc_video_take_snapshot?
4. How to get FPS during transcoding? Normally I can track decoded frames but this is not available during transcoding (see 2)
5. How often I should quary statistics? Any relation to caching parameter?

VLC version 2.0.3

Thank you,
-Artur

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

Re: VLC statistics and picture snap during transcoding

Postby Jean-Baptiste Kempf » 27 Sep 2012 17:30

1. in the source code or the UI.
2. if you do not display, probably normal.
3. idem
4. idem
5. often :)

Sorry to not be more helpful.
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.

GriffinRU
New Cone
New Cone
Posts: 6
Joined: 27 Sep 2012 16:23
VLC version: 2.0.3
Operating System: Windows
Location: MD, USA

Re: VLC statistics and picture snap during transcoding

Postby GriffinRU » 27 Sep 2012 21:13

1. in the source code or the UI.
2. if you do not display, probably normal.
3. idem
4. idem
5. often :)

Sorry to not be more helpful.
Ok,
Is this correct matching with UI:
i_read_bytes / 1000 -> Input/Read - Media data size (KiB)
f_input_bitrate * 1000 -> Input/Read - Input bitrate (kb/s)
i_demux_read_bytes / 1000 -> Input/Read - Demuxed data size (KiB)
f_demux_bitrate * 1000 -> Input/Read - Content bitrate (kb/s)
i_demux_corrupted -> Input/Read - Discarded(corrupted)
i_demux_discontinuty -> Input/Read - Dropped(discontinued)
i_decoded_video -> Video - Decoded (blocks)
i_decoded_audio -> Audio - Decoded (blocks)
i_displayed_pictures -> Video - Played (frames)
i_lost_pictures -> Video - Lost (frames)
i_played_abuffers -> Audio - Played(buffers)
i_sent_packets -> Output - Sent (packets)
i_sent_bytes -> * 1000 Output - Sent (KiB)
f_sent_bitrate -> Output - Upstream rate (kb/s)

2,3 and 4 I have Video on display, libvlc_media_add_option ->
:sout=#transcode{vcodec=h264,vb=0,scale=1,acodec=mpga,ab=128,channels=2,samplerate=44100}:duplicate{dst=display,dst=std{access=file,mux=mp4,dst="D:\Video\LabVIEW_VLC.mpg"}}
Or VLC directly, and still Statistics are all Zero (except Demuxed data size and Content bitrate), picture snap returns -1 or greyout in UI.

5 - Querying faster (every 100ms) than 1 second (:network-caching=1000, default VLC settings) returns the same values, looks like new values comes every second...

Thank you for quick reply,
-Artur

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

Re: VLC statistics and picture snap during transcoding

Postby Jean-Baptiste Kempf » 28 Sep 2012 00:22

dst=display is not an actual display, that's why.
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.

GriffinRU
New Cone
New Cone
Posts: 6
Joined: 27 Sep 2012 16:23
VLC version: 2.0.3
Operating System: Windows
Location: MD, USA

Re: VLC statistics and picture snap during transcoding

Postby GriffinRU » 28 Sep 2012 15:31

dst=display is not an actual display, that's why.
Thanks again, I am glad I am not doing the right calls, can you provide help in setting up VLC to capture network stream to disk with ability to snap pictures and display statistics.
Looking forward for your reply,
-Artur

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

Re: VLC statistics and picture snap during transcoding

Postby Jean-Baptiste Kempf » 28 Sep 2012 16:23

I am not sure, you can, except by actually displaying and using the record function.
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.

GriffinRU
New Cone
New Cone
Posts: 6
Joined: 27 Sep 2012 16:23
VLC version: 2.0.3
Operating System: Windows
Location: MD, USA

Re: VLC statistics and picture snap during transcoding

Postby GriffinRU » 28 Sep 2012 16:36

I am not sure, you can, except by actually displaying and using the record function.
record function doesn't work in VLC, or it is not clear how to use it and where it saves to...
-Artur

Edited: I was able to use record function, so if that can be done directly with VLC why it cannot be done over dll call or command line script?

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

Re: VLC statistics and picture snap during transcoding

Postby Jean-Baptiste Kempf » 28 Sep 2012 16:49

We could extend libVLC for that, maybe.
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.

GriffinRU
New Cone
New Cone
Posts: 6
Joined: 27 Sep 2012 16:23
VLC version: 2.0.3
Operating System: Windows
Location: MD, USA

Re: VLC statistics and picture snap during transcoding

Postby GriffinRU » 28 Sep 2012 17:00

We could extend libVLC for that, maybe.
I see, thank you for your time.
It would be nice...:)
-Artur


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 17 guests