admin wrote:
mikechambers wrote:
If anybody has problems getting it to work properly, please create an issue on the GitHub page so that I can look into it.
Will git it a try!
How long did it take to process Dark City entirely after TOSLINK capture?
Did you concatenate side 1 and 2 into a single WAV before extraction?
Julien
It took about 8 or 10 seconds to process the whole movie's stream.
And yes, they were in a single WAV. When I capture LD's, I just record everything into one file for all sides and then clip out all the frames in the video before the first disc frame, and between side changes in VirtualDub 2. During this step I also crop to 720x360 (for widescreen movies) and run the IVTC filter on it.
I don't have to clip out any of the blank audio between sides when extracting DTS though, I wrote this so that when it hits any samples without DTS packets, it just keeps seeking forward until it sees the next one and then it resumes extraction to the output file.
I am noticing an odd issue though. When I played the extracted DTS file directly in VLC, everything sounded perfect and the entire movie's length was there with no glitches in the sound. Now that I'm trying to mux together an MKV with video and audio in ffmpeg, it seems to miss packets and the audio is only around half the length of the movie in the MKV output and it seems to play through it too fast. Hmm.
I'm not sure if it's an issue with my extraction or with ffmpeg's muxing. Like I said, the raw .dts file sounds great alone in VLC. You can also see in the screenshot that's it's processed 1:45:07 worth of samples in DTS frames, which is the correct length of the video, and is also what VLC reports as the length of the .dts file.
ffmpeg -i dark_city_video_only.avi -i dark_city_audio_only.dts -aspect 16:9 -vcodec h264 -preset veryslow -b:v 8000k -acodec copy dark_city.mkv
This is the command line I used.
EDIT: I'm also thinking of writing another utility to stream the SPDIF input and save it directly as an AC3 or DTS bitstream. It would be nice to eliminate the intermediate step of making a WAV file.