LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-22-2014, 04:05 PM   #1
camerabambai
Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 444

Rep: Reputation: 57
VHS video capture: please help


Try to capture from vhs source,with mencoder

Code:
mencoder tv:// -tv driver=v4l2:width=720:height=576:device=/dev/video1:input=0:alsa:amode=1:forcechan=2:audiorate=48000:adevice=plughw.2,0:forceaudio:immediatemode=0 -o out.avi -ovc lavc -oac mp3lame -lavcopts vbitrate=1200 -noskip -endpos 02:00:00
out of sync,green stripes and garbage on video

gstreamer

Code:
gst-launch-0.10 avimux name=mux ! filesink location=test0.avi v4l2src device=/dev/video1 ! video/x-raw-yuv,width=640,height=480,framerate=\(fraction\)30000/1001 ! ffmpegcolorspace ! ffenc_mpeg4 ! queue ! mux. alsasrc device=hw:2,0 ! audio/x-raw-int,channels=2,rate=32000,depth=16 ! audioconvert ! lame ! mux.
Impostazione della pipeline a PAUSED ...
ERRORE: la pipeline non vuole mettersi in pausa.
ERRORE: dall'elemento /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Could not negotiate format
Informazioni di debug aggiuntive:
gstbasesrc.c(2830): gst_base_src_start (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Check your filtered caps, if any
Impostazione della pipeline a NULL ...
Esecuzione di free sulla pipeline...


ffmpeg e vlc= very bad quality video,same as mencoder or similar
Any suggestion?
My card is grabby usb 0ccd:0096
 
Old 03-22-2014, 09:05 PM   #2
Dafydd
Member
 
Registered: Oct 2008
Posts: 344

Rep: Reputation: 29
Can you confirm the condition of your VHS tape player. I spent 3 months last year trying to work around this same problem only to find that the 20 year old tapes were the cause. Not correctable at least for me.

Here is the mencode script I used if it is any help
Code:
#! /bin/bash
## Rip analog tapes from camcorder to digital
## Sunday May 30, 2010
## Using Dazzle device

# check if there is no command line argument
if [ $# -eq 0 ]
then
echo "You forgot the required image name to be used!"
echo "Usage :: new image name"
exit
fi

mencoder tv:// -tv driver=v4l2:input=0:norm=ntsc:width=720:height=480:outfmt=yuy2:device=/dev/video1:forceaudio:audiorate=48000:adevice=/dev/dsp1 buffersize=128 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=5000:keyint=30 -oac mp3lame -lameopts br=128:cbr:mode=3 -ffourcc divx -o "$1".avi
 
Old 03-23-2014, 11:21 AM   #3
camerabambai
Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 444

Original Poster
Rep: Reputation: 57
Quote:
Originally Posted by Dafydd View Post
Can you confirm the condition of your VHS tape player. I spent 3 months last year trying to work around this same problem only to find that the 20 year old tapes were the cause. Not correctable at least for me.

Here is the mencode script I used if it is any help
Code:
#! /bin/bash
## Rip analog tapes from camcorder to digital
## Sunday May 30, 2010
## Using Dazzle device

# check if there is no command line argument
if [ $# -eq 0 ]
then
echo "You forgot the required image name to be used!"
echo "Usage :: new image name"
exit
fi

mencoder tv:// -tv driver=v4l2:input=0:norm=ntsc:width=720:height=480:outfmt=yuy2:device=/dev/video1:forceaudio:audiorate=48000:adevice=/dev/dsp1 buffersize=128 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=5000:keyint=30 -oac mp3lame -lameopts br=128:cbr:mode=3 -ffourcc divx -o "$1".avi
Tape player is about 4-5 y.o and with TV is working fine.
I will try your script next hours,thanks
 
Old 03-23-2014, 11:58 AM   #4
camerabambai
Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 444

Original Poster
Rep: Reputation: 57
Doesn't work
 
Old 03-23-2014, 12:08 PM   #5
camerabambai
Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 444

Original Poster
Rep: Reputation: 57
https://reteprivata.dyndns-ip.com/video/video.7z

This is the result,if someone can help or suggest something
 
Old 03-23-2014, 12:33 PM   #6
Dafydd
Member
 
Registered: Oct 2008
Posts: 344

Rep: Reputation: 29
Does that file extension exist in the linux world?
 
Old 03-23-2014, 03:45 PM   #7
camerabambai
Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 444

Original Poster
Rep: Reputation: 57
Quote:
Originally Posted by Dafydd View Post
Does that file extension exist in the linux world?
Extension doesn't count
 
Old 03-24-2014, 05:01 PM   #8
Dafydd
Member
 
Registered: Oct 2008
Posts: 344

Rep: Reputation: 29
Extensions count when I go to that link and have to download an archived video and then do not have a program that will open it.
 
Old 03-25-2014, 05:30 AM   #9
camerabambai
Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 444

Original Poster
Rep: Reputation: 57
Quote:
Originally Posted by Dafydd View Post
Extensions count when I go to that link and have to download an archived video and then do not have a program that will open it.
Open it with 7zip,file is compressed 7zip and contains
a video

http://p7zip.sourceforge.net/
 
Old 03-30-2014, 12:27 PM   #10
blip
LQ Newbie
 
Registered: Aug 2013
Posts: 17

Rep: Reputation: Disabled
I don't have any experience with USB capture devices but I've done a few VHS captures with a PCI TV tuner that uses the bttv kernel module. My captures were done losslessly (huffyuv/flac) on a dual-core Athlon 64 X2 to a dedicated two-disk md software RAID 0 array followed by encodes with x264. I used tvtime for previews before recording and "qv4l2" to set the tuner settings, specifically "VCR hack" and "Full Luma Range". Alternatively these can be set using module parameters e.g.
Code:
modprobe -r bttv
modprobe bttv vcr_hack=1 full_luma_range=1
Keep in mind the following command line worked well a couple of years ago. A lot can change in that time so you may have to tweak it.
Code:
sudo nice -n -5 ionice -c 1 su -c 'schedtool -a 0x1 -e aoss avconv -f oss -ac 2 -ar 48000 -i /dev/dsp -f video4linux2 -s 768x480 -standard NTSC -pix_fmt yuv422p -re -channel 1 -i /dev/video0 -vsync 2 -vcodec huffyuv -acodec flac /media/raid500/testcapture.mkv' username
I haven't explored denoising or deghosting.
 
Old 04-17-2014, 07:13 PM   #11
camerabambai
Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 444

Original Poster
Rep: Reputation: 57
I use a new pci bttv card.
With mencoder sound go out of sync,and i have green lines



I use this mencoder line

Code:
ALSAOPT=alsa:amode=1:forcechan=2:audiorate=48000:adevice=plughw.0,0:forceaudio:immediatemode=0:volume=20 

 mencoder -tv driver=v4l2:input=0:normid=5:width=640:height=480:$ALSAOPT:audiorate=48000:fps=25 -oac lavc -ovc lavc -mpegopts format=dvd:tsaf -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:keyint=15:aspect=4/3:vstrict=0:acodec=mp2:abitrate=224 -vf pp=lb/ha/va/dr,hqdn3d,harddup -o output.mpg -noskip -of mpeg tv://

Last edited by camerabambai; 04-17-2014 at 07:23 PM.
 
Old 04-20-2014, 02:43 PM   #12
camerabambai
Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 444

Original Poster
Rep: Reputation: 57
Someone know a good tv card with mpeg2 encoder?
I know the hauppauge pvr-250 but on ebay i found only ntsc version
i need pal
 
  


Reply

Tags
capture, grab, video grabber


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Soul Capture 2.0.0 has now been released audio/video capture LXer Syndicated Linux News 0 04-01-2013 01:01 PM
Exact time of image capture and Unicap library for video capture devices Dstruct0 Programming 3 09-10-2011 07:34 PM
Using Mencoder to Record VHS Through S-Video Woodsman Linux - Software 9 06-09-2011 02:27 PM
Is there a way to convert a VHS video to pictures? Robert.Thompson General 3 01-14-2011 03:13 PM
Good video capture card for Linux? (VHS->digital) Multra Corakus Linux - Hardware 5 12-10-2003 06:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration