sout to a file, questions
Posted: 19 Aug 2010 21:19
I have some questions about streaming to a file. I need to be able to test various encoder tools vs my target platform (VLC). I want to make sure that the A/V sync is not skewed at the encoder level. I was told by a dev on IRC that I could use the -sout to test that... so
1) Is the audio and video that is output from -sout identical (before any encoding, etc) to what would would be displayed on the screen and played via the sound card?
1a) Is the audio and video sync identical?
1b) If i add the postproc video filter to the command line, will it be applied to the output of -sout, or do I need to add that filter to the -sout string?
1c) If I add audio normalization to the command line, will that reflect in the -sout audio, or do I need to add it to the -sout string
2) When writing to a file, does VLC skip frames if it is running behind? Ie if there is 4 or 5 of these commands running in parallel or this is being run on an older machine, would the slowdown cause frame skips, or does the lack of an externally forced "clock" allow VLC to process at its own pace?
3) Is it possible to have vlc wait until the file is done processing before returning control back to the command prompt. right now if I want to convert 20+ files, if I build a batch file to run the commands the second video starts processing before the first is done. Maybe it is possible to have multiple -sout commands in a command line, one for each file? (right now I play a single video and add a vlc://quit command to the end of the playlist)
4) If the goal is to test the A/V sync of the rendered video and the quality of the encoder, what is the best -sout string to use? I need the audio and video to be lossless... uncompressed if possible. I also need to be able to inspect the file, either in VirtualDub, or via AVISynth. I was told on IRC not to use the AVI muxer, as it is broken. So far the optimal solution seams to be and then I have to load that MKV into AVISynth's directshow filter to access it.
1) Is the audio and video that is output from -sout identical (before any encoding, etc) to what would would be displayed on the screen and played via the sound card?
1a) Is the audio and video sync identical?
1b) If i add the postproc video filter to the command line, will it be applied to the output of -sout, or do I need to add that filter to the -sout string?
1c) If I add audio normalization to the command line, will that reflect in the -sout audio, or do I need to add it to the -sout string
2) When writing to a file, does VLC skip frames if it is running behind? Ie if there is 4 or 5 of these commands running in parallel or this is being run on an older machine, would the slowdown cause frame skips, or does the lack of an externally forced "clock" allow VLC to process at its own pace?
3) Is it possible to have vlc wait until the file is done processing before returning control back to the command prompt. right now if I want to convert 20+ files, if I build a batch file to run the commands the second video starts processing before the first is done. Maybe it is possible to have multiple -sout commands in a command line, one for each file? (right now I play a single video and add a vlc://quit command to the end of the playlist)
4) If the goal is to test the A/V sync of the rendered video and the quality of the encoder, what is the best -sout string to use? I need the audio and video to be lossless... uncompressed if possible. I also need to be able to inspect the file, either in VirtualDub, or via AVISynth. I was told on IRC not to use the AVI muxer, as it is broken. So far the optimal solution seams to be
Code: Select all
vlc bsgtest.mpg --sout=#transcode{vcodec=HFYU,acodec=s16l}:file{dst="test-huff-wav.mkv"} vlc://quit