mlanypitts / webcamstudio

Automatically exported from code.google.com/p/webcamstudio
GNU General Public License v3.0
0 stars 0 forks source link

Seek takes minutes to work #123

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Add a file to play (preferably something over an hour)
2. Enable the extra options and set the seek to 3000 second
3. Press play

What is the expected output?
The video will start at the 3000 second mark

What do you see instead?
A 6-8 minute delay before the video starts

The Operating system you are using (Linux, Windows etc)?
Linux (Kubuntu 14.10)

What version of WebcamStudio are you using?
0.72

What version of Java are you using?
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)

What is your Webcamera vendor, model and version?
N/A

For *nix users please enter the output from "sudo lsusb"?
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 002: ID 046d:0a29 Logitech, Inc. 
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 013 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 012 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 011 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 010 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 003: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 005 Device 002: ID 0a5c:21e8 Broadcom Corp. BCM20702A0 Bluetooth 4.0
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 046d:0825 Logitech, Inc. Webcam C270
Bus 001 Device 077: ID 04e8:6865 Samsung Electronics Co., Ltd GT-I9300 Phone 
[Galaxy S III] (PTP mode)
Bus 001 Device 002: ID 0bc2:3008 Seagate RSS LLC 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 009 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 008 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Original issue reported on code.google.com by SteelCit...@gmail.com on 31 Jan 2015 at 4:33

GoogleCodeExporter commented 8 years ago
Just as a follow-up, I tried using both Libav and Gstreamer back-ends.  Both 
took extended times if the seek was large.

Using a file with a play time of 5179s:

Seek   Time until play starts
----   ----------------------
0      1s
50     4s
100    8s
500    42s
1000   84s
3000   253s

Original comment by SteelCit...@gmail.com on 31 Jan 2015 at 7:21

GoogleCodeExporter commented 8 years ago
Hi SteelCityScores,
 thanks for reporting.
WS is based upon avconv/ffmpeg and gst-launch 0.10/1.x commands for the 
Audio/Video Capture.
Unfortunately Avconv/ffmpeg seek (-ss) option is really really slow, and maybe 
the associated command cam be improved (the actual avconv video part):

$ avconv -v 0 -vsync cfr -i /home/karl/Videos/Video.flv -an -ss 0 -strict 
experimental -f rawvideo -vcodec rawvideo -pix_fmt rgb24 -s 640x480 -r 25 
tcp://127.0.0.1:56399

I didn't find nothing to make -ss option faster, and if you have any idea is 
very welcome.
The gst-launch command (Gstreamer backend) uses Gnonlin to seek video and, in 
my tests, the playback starts almost instantly when gstreamer backend is 
selected, even with 3000 secs of seek value.
I think that between your tests you try to switch backend using the top three 
buttons with the logos. Those buttons only switch backends for the outputs 
streams (the ones on the right: "Audio Output", "Record", "WSVideodevice", etc 
..)
To change the backend for the current loaded stream you have to use the "light 
bulb" icon located in the Stream-Panel menu bar (the one you use to "show more 
options" and get the seek field shown).
If I’m wrong please share more infos about the video format, and your HW 
specs.
Thanks.
karl

Original comment by soylent...@gmail.com on 4 Feb 2015 at 5:08