Make audio-desync work on sout also
As requested in: http://forum.videolan.org/viewtopic.php?p=181813#p181813
Audio-desync works OK when used in local playback.
vlc --audio-desync=10000 polii.wmv
but when we want to stream the same file to other computer with same desync, it doesn't work (sync isn't adjusted).
vlc --audio-desync=10000 polii.wmv :sout=#transcode{vcodec=WMV2,vb=800,scale=1,acodec=wma,ab=128,channels=2}:duplicate{dst=std{access=http,mux=asf,dst=:8080}}
Sync can be adjusted via Extended settings GUI and that also works on streaming (it adjusts audio-delay value). According to sourcecode the audio-desync adjusts same value
val.i_time = INT64_C(1000) * var_GetInteger( p_input, "audio-desync" );
var_Change( p_input, "audio-delay", VLC_VAR_SETVALUE, &val, NULL );
so I assume the audio-delay must be set again after streaming starts. But this seems to be impossible from command-line/console. So request is to make audio-desync work on streaming output.