I decided to take a look and realised that on my system, I can't see videos on either Windows 7 or Windows 8 (if I try to load a video I end up with a blank preview window and a blank video timeline).

Steps To Reproduce

Simply attempt to load a video from 'Session->Open Video...'

Additional Information

The video preview seems to get handled via curl somehow. I'm assuming that some 3rd party app (harvid maybe?) is listening on a port and responding to curl requests. Here's the relevant code from function 'HttpGet::get()' (it's at line 214 in gtk2_ardour/ardour_http.cc). Note that it gets passed a URL:-

this completes successfully and the http status returned from curl is 200 (status OK). The next stage seems to be a request to get some general info about the selected video file (duration / frame rate / aspect ratio etc.) - with the relevant URL being:-

However... this request fails (on Windows) with the returned status being 400 (Bad Request status). So I'm assuming that the above request is malformed somehow. Here's the code which forms it at line 695 in 'gtk2_ardour/add_video_dialog.cc' (function 'AddVideoDialog::request_preview()'):-

Activities

The video track still isn't working but I managed to fix the preview issue... Here's the code that's causing the preview problem (at line 696 in 'gtk2_ardour/add_video_dialog.cc' - function 'AddVideoDialog::request_preview()'):-

I now see a preview image if I select a video file but when I press OK (to launch the Transcode dialog) it still shows no path for the output file and the Import Settings still say "Do Not Import Video".

From johne53:-
" 'transcoder->get_fps()' and 'transcoder->get_duration()' both return zero "

In fact if I change that section to look like this, it works again:-

if (w > 0 && h > 0) {
ffok = true;
}

AFAICT those various fields (duration / width / height / fps etc.) all seem to get calculated by an external helper app (ffprobe.exe?) So my guess is that there's some problem with the helper app (in some situations it isn't calculating the duration and fps correctly).

Yes Robin, you're right. I made a few sample->frame reversions in 'gtk2_ardour/transcode_ffmpeg.cc' and I now have visible pictures again on my video timeline. There could easily be more needed elsewhere though...