View previous topic :: View next topic |
Author |
Message |
carlos.gentoo n00b
Joined: 16 Sep 2012 Posts: 17
|
Posted: Sun Dec 28, 2014 6:01 pm Post subject: Capture video from miniDV cam |
|
|
Hi,
I am trying to capture video from an old miniDV cam (Sony DCR-TRV16E) through firewire. I have tried kino with no luck (it seems it doesn't detect any camera), and also, trying dvgrab doesn't detect the camera:
Code: |
~ $ sudo dvgrab
Error: no camera exists
|
During start up, the following messages about firewie appear in dmesg:
Code: |
[ 0.498930] firewire_ohci 0000:05:01.0: added OHCI v1.0 device as card 0, 8 IR + 8 IT contexts, quirks 0x41
[ 1.000812] net firewire0: IP over IEEE 1394 on card 0000:05:01.0
[ 1.001843] firewire_core 0000:05:01.0: created device fw0: GUID 001106000000584c, S400
[ 4.669239] firewire_core: exports duplicate symbol fw_bus_type (owned by kernel)
[ 4.675601] firewire_core: exports duplicate symbol fw_bus_type (owned by kernel)
|
When I plug-in the camera and power on no message appears in dmesg.
When I power off the camera, the following message appears in dmesg:
Code: |
[ 274.298269] firewire_core 0000:05:01.0: rediscovered device fw0
|
Here is my kernel configuration related to firewire:
Code: |
#
# IEEE 1394 (FireWire) support
#
CONFIG_FIREWIRE=y
CONFIG_FIREWIRE_OHCI=y
CONFIG_FIREWIRE_SBP2=y
CONFIG_FIREWIRE_NET=y
CONFIG_FIREWIRE_NOSY=y
# CONFIG_I2O is not set
# CONFIG_MACINTOSH_DRIVERS is not set
CONFIG_NETDEVICES=y
CONFIG_MII=m
CONFIG_NET_CORE=y
# CONFIG_BONDING is not set
# CONFIG_DUMMY is not set
# CONFIG_EQUALIZER is not set
# CONFIG_NET_FC is not set
# CONFIG_IFB is not set
# CONFIG_NET_TEAM is not set
# CONFIG_MACVLAN is not set
# CONFIG_VXLAN is not set
CONFIG_NETCONSOLE=y
CONFIG_NETPOLL=y
CONFIG_NET_POLL_CONTROLLER=y
# CONFIG_TUN is not set
# CONFIG_VETH is not set
# CONFIG_NLMON is not set
# CONFIG_ARCNET is not set
|
Is there anything I am missing? |
|
Back to top |
|
|
heiwa n00b
Joined: 24 Oct 2012 Posts: 70
|
Posted: Sun Dec 28, 2014 6:58 pm Post subject: |
|
|
Have you tried media-video/coriander ? |
|
Back to top |
|
|
carlos.gentoo n00b
Joined: 16 Sep 2012 Posts: 17
|
Posted: Thu Jan 08, 2015 4:31 pm Post subject: |
|
|
Sorry for my late response, I have been out these days...
I can't emerge coriander:
Code: | ...
x86_64-pc-linux-gnu-gcc -march=native -O2 -fomit-frame-pointer -pipe -mmmx -msse -msse2 -Wl,-O1 -Wl,--as-needed -o coriander main.o support.o interface.o error.o definitions.o camera.o thread_base.o thread_iso.o watch_thread.o SDLEvent.o thread_display.o thread_ftp.o thread_save.o thread_v4l.o tools.o conversions.o callbacks.o update_frames.o build_frames.o update_windows.o build_windows.o build_menus.o update_ranges.o build_ranges.o preferences.o video_encode.o subtitles.o -L/usr/X11R6/lib/ -lgnomeui-2 -lSM -lICE -lbonoboui-2 -lgnome-2 -lpopt -lbonobo-2 -lbonobo-activation -lORBit-2 -lgnomecanvas-2 -lart_lgpl_2 -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lfontconfig -lfreetype -lgdk_pixbuf-2.0 -lgnomevfs-2 -lgconf-2 -lgthread-2.0 -pthread -lgmodule-2.0 -pthread -lgobject-2.0 -lglib-2.0 -lSDL -lpthread -ldc1394 -lraw1394 -lXv -lgthread-2.0
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: tools.o: undefined reference to symbol 'XOpenDisplay'
/usr/lib64/libX11.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:283: recipe for target 'coriander' failed
make[2]: *** [coriander] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-video/coriander-2.0.0/work/coriander-2.0.0/src'
Makefile:259: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/media-video/coriander-2.0.0/work/coriander-2.0.0'
Makefile:198: recipe for target 'all' failed
make: *** [all] Error 2
emake failed
* ERROR: media-video/coriander-2.0.0::gentoo failed (compile phase):
* emake failed
*
* Call stack:
* ebuild.sh, line 93: Called src_compile
* environment, line 1890: Called die
* The specific snippet of code:
* emake SSE_CFLAGS="${CFLAGS}" || die "emake failed"
*
* If you need support, post the output of `emerge --info '=media-video/coriander-2.0.0::gentoo'`,
* the complete build log and the output of `emerge -pqv '=media-video/coriander-2.0.0::gentoo'`.
* The complete build log is located at '/var/tmp/portage/media-video/coriander-2.0.0/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/media-video/coriander-2.0.0/temp/environment'.
* Working directory: '/var/tmp/portage/media-video/coriander-2.0.0/work/coriander-2.0.0'
* S: '/var/tmp/portage/media-video/coriander-2.0.0/work/coriander-2.0.0'
|
Any idea? |
|
Back to top |
|
|
mimosinnet l33t
Joined: 10 Aug 2006 Posts: 713 Location: Barcelona, Spain
|
Posted: Thu Jan 15, 2015 1:49 am Post subject: |
|
|
I have been playing with my firewire camera these days. I have been able to use dvgrab, and when I plug the camera I get a new /dev/fw device. These are my kernel options:
Code: | grep FIRE .config
CONFIG_FIREWIRE=m
CONFIG_FIREWIRE_OHCI=m
CONFIG_FIREWIRE_SBP2=m
# CONFIG_FIREWIRE_NET is not set
# CONFIG_FIREWIRE_NOSY is not set
# CONFIG_SND_FIREWIRE is not set |
_________________ Please add [solved] to the initial post's subject line if you feel your problem is resolved.
Take care of the community answering unanswered posts. |
|
Back to top |
|
|
carlos.gentoo n00b
Joined: 16 Sep 2012 Posts: 17
|
Posted: Fri Jan 16, 2015 10:03 pm Post subject: |
|
|
Thanks mimosinnet. Still no luck....
I have configured the kernel exactly as yours:
Code: | $ grep FIRE .config
CONFIG_FIREWIRE=m
CONFIG_FIREWIRE_OHCI=m
CONFIG_FIREWIRE_SBP2=m
# CONFIG_FIREWIRE_NET is not set
# CONFIG_FIREWIRE_NOSY is not set
# CONFIG_SND_FIREWIRE is not set |
Then reboot, this is what dmesg says about firewire just after reboot:
Code: | 58779-[ 4.842625] firewire_ohci 0000:05:01.0: added OHCI v1.0 device as card 0, 8 IR + 8 IT contexts, quirks 0x41
58890:[ 5.343419] firewire_core 0000:05:01.0: created device fw0: GUID 001106000000584c, S400
|
Modules are loaded:
Code: | $ lsmod
Module Size Used by
w83627ehf 31166 0
hwmon_vid 3076 1 w83627ehf
vboxnetadp 17510 0
vboxnetflt 15282 0
vboxdrv 318558 2 vboxnetadp,vboxnetflt
firewire_ohci 31163 0
firewire_core 49179 1 firewire_ohci
x86_pkg_temp_thermal 4535 0
|
Then I plug the camera and turn it on. Nothing new in dmesg and the same error with dvgrab
Code: | $ sudo dvgrab -i
Error: no camera exists
|
Then I turn off the camera and the same message in dmesg:
Code: | [ 6527.657442] firewire_core 0000:05:01.0: rediscovered device fw0
|
I have read several posts about problems with the new firewire kernel stack and DV-Cams, but they are old and I supposed those problems would be corrected, may be they persist?
Some easy way to compile and test an old kernel? (I think prior to 2.6) |
|
Back to top |
|
|
mimosinnet l33t
Joined: 10 Aug 2006 Posts: 713 Location: Barcelona, Spain
|
Posted: Sun Jan 18, 2015 11:37 pm Post subject: |
|
|
This is my kernel:
Code: | Linux mimomedia 3.16.5-gentoo #2 SMP Fri Dec 5 01:22:26 CET 2014 x86_64 AMD Phenom(tm) II X4 965 Processor AuthenticAMD GNU/Linux |
I believe this is not a question with the kernel. I will do your tests when I get to the camera.
Cheers! _________________ Please add [solved] to the initial post's subject line if you feel your problem is resolved.
Take care of the community answering unanswered posts. |
|
Back to top |
|
|
mimosinnet l33t
Joined: 10 Aug 2006 Posts: 713 Location: Barcelona, Spain
|
Posted: Wed Jan 21, 2015 3:50 pm Post subject: |
|
|
I have been able to get to the camera and these are the results.
This is what I get after I switch the camera on:
Code: | [12888.516690] firewire_core 0000:05:0e.0: IRM has link off, making local node (ffc0) root
[12888.516701] firewire_core 0000:05:0e.0: phy config: new root=ffc0, gap_count=5
[12888.767863] firewire_core 0000:05:0e.0: rediscovered device fw0
[12890.571475] firewire_core 0000:05:0e.0: phy config: new root=ffc1, gap_count=5
[12891.774568] firewire_core 0000:05:0e.0: created device fw1: GUID 08004601036cfb56, S100 |
These are my devices. /dev/fw1 is created after I switch the camera on:
Code: | ls -lisah /dev/fw*
1393 0 crw------- 1 root root 251, 0 21 gen 13:01 /dev/fw0
257557 0 crw-rw---- 1 root video 251, 1 21 gen 16:35 /dev/fw1 |
This is the output of dvgrab:
Code: | dvgrab
Found AV/C device with GUID 0x08004601036cfb56
libiec61883 error: Failed to get channels available.
Waiting for HDV...
Capture Started |
I can grab the sound and picture of the camera with this command:
Code: | dvgrab - | mplayer - |
The device /dev/fw1 disappears when I switch the camera off.
I do not 'sudo' to get to the camera as my user is in the video group.
Hope this is helpful.
Cheers! _________________ Please add [solved] to the initial post's subject line if you feel your problem is resolved.
Take care of the community answering unanswered posts. |
|
Back to top |
|
|
carlos.gentoo n00b
Joined: 16 Sep 2012 Posts: 17
|
Posted: Sat Jan 24, 2015 10:17 pm Post subject: |
|
|
Thanks mimosinnet,
I don't get any message when I switch the camera. Maybe there is a problem with the camera... unfortunately I don't know anyone else with this kind of camera so I cannot test it. I am about to give up and probably buy a video capture with analogic inputs to capture my DV videos. |
|
Back to top |
|
|
mimosinnet l33t
Joined: 10 Aug 2006 Posts: 713 Location: Barcelona, Spain
|
Posted: Mon Jan 26, 2015 2:17 pm Post subject: |
|
|
My camera is a Sony - Handycam HDR-HC9E
I also use a video capture card:
Quote: | lpsci -v -s 05:08.0
05:08.0 Multimedia controller: Philips Semiconductors SAA7130 Video Broadcast Decoder (rev 01)
Subsystem: Avermedia Technologies Inc AVerMedia DVD EZMaker
Flags: bus master, medium devsel, latency 32, IRQ 23
Memory at fdaff000 (32-bit, non-prefetchable) [size=1K]
Capabilities: [40] Power Management version 1
Kernel driver in use: saa7134
Kernel modules: saa7134 |
Cheers! _________________ Please add [solved] to the initial post's subject line if you feel your problem is resolved.
Take care of the community answering unanswered posts. |
|
Back to top |
|
|
|