Skip to content

Transcoding/sout issues on UWP

Summary

Transcoding some rtsp: streams to files creates files with bad duration's or they are short duration's.

mp2v and mp4v codecs don't work. theo codec always works.

But the same stream transcoded fine using the windows VLC client 3.08. Video lengths were good.

Minimal project and steps to reproduce

https://github.com/groovykool/libVLC-Transcode.git

Select trancode option from combobox. Press play/rec. View log as required. wait 20+ seconds. Press stop. View output results or look at saved video files.

Repeat for mp2v and mp4v codecs.

What is the current bug behavior?

Transcoding with mp2v codec and ts mux results in a video file with a duration over 2hours? It plays but the long duration screws with the player.

Transcoding with mp4v codec and mp4 mux results in a video file with a short 3-4 second duration?

Transcoding with theo codec and ogg mux ALWAYS works.

What is the expected correct behavior?

I expect the video files to have the correct duration's when transcoding with the mp2v and mp4v codecs.(all codecs really)

The results should be the same as the VLC client.

Relevant logs and/or screenshots

Run repo code. https://github.com/groovykool/libVLC-Transcode.git

Environment

  • OS: Windows 10 64bit
  • Version 1903
  • Device: Windows PC, Visual studio 2019
  • LibVLC version and architecture 3.04 from nuget
  • LibVLCSharp version 3.2.5, UWP 3.1.1

Possible fixes

Setting different options? Updating UWP libVLC to match Windows VLC Client?

Edited by Tony Wilkey
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information