Transcode and Seek not working correctly in RC mode

About encoding, codec settings, muxers and filter usage
WillTower
New Cone
New Cone
Posts: 4
Joined: 06 Oct 2016 18:38

Transcode and Seek not working correctly in RC mode

Postby WillTower » 02 Nov 2016 17:16

(using the Version 2.2.4 Weatherwax (Intel 64bit) on OSX 10.11.6)

I am trying to use VLC to transcode and stream video to stdout and controlling VLC through the "Remote Control" interface. I have the basic transport controls working – except for seek.

Question:
Am I doing something obviously wrong with my transcode code – or is seek broken in RC mode? My client reading the stream is written in Actionscript and AIR – though with the VLC error msgs I am getting, I don't think issue is with the client

Symptoms:
When I issue the seek command:
  • • the audio of the video will jump to the correct time and play but the image of the video does not: it freezes at the current frame

    • the video seems to get parsed from time 0 so the larger the specified time, the longer it takes for the audio to resume playing from the seek point.

Code:
I've tried many variations on the commands to transcode and stream – like trying to force keyframes, etc. Not sure if these are correct but they don't seem to help.

Code: Select all

#transcode{vcodec=FLV1,keyint=1}:std{access=file,mux=ffmpeg{mux=flv,intra=0},dst=-}
Debug Output:
While VLC is seeking, I get a stream of these error msgs while it seeks to the specified frame:
avcodec encoder warning: almost fed libavcodec with a frame in the past
(shortened msgs so they fit here)
avcodec encoder warning: almost fed... past (current: 57695957, last: 57696008)
avcodec encoder warning: almost fed... past (current: 57695958, last: 57696008)
avcodec encoder warning: almost fed... past (current: 57695959, last: 57696008)
avcodec encoder warning: almost fed... past (current: 57695960, last: 57696008)

Rémi Denis-Courmont
Developer
Developer
Posts: 15268
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Transcode and Seek not working correctly in RC mode

Postby Rémi Denis-Courmont » 02 Nov 2016 17:54

Don't seek while transcoding. It will never work well.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

WillTower
New Cone
New Cone
Posts: 4
Joined: 06 Oct 2016 18:38

Re: Transcode and Seek not working correctly in RC mode

Postby WillTower » 02 Nov 2016 17:59

Please explain. I need to transcode on the fly

Rémi Denis-Courmont
Developer
Developer
Posts: 15268
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Transcode and Seek not working correctly in RC mode

Postby Rémi Denis-Courmont » 02 Nov 2016 19:01

Seeking disrupts buffers and group of pictures. It will never be nicely done live with a simple media player.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

WillTower
New Cone
New Cone
Posts: 4
Joined: 06 Oct 2016 18:38

Re: Transcode and Seek not working correctly in RC mode

Postby WillTower » 02 Nov 2016 19:09

But VLC itself does it - so?


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 31 guests