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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-22-2014, 04:05 PM
|
#1
|
Member
Registered: Mar 2010
Distribution: Slackware
Posts: 444
Rep:
|
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
|
|
|
03-22-2014, 09:05 PM
|
#2
|
Member
Registered: Oct 2008
Posts: 344
Rep:
|
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
|
|
|
03-23-2014, 11:21 AM
|
#3
|
Member
Registered: Mar 2010
Distribution: Slackware
Posts: 444
Original Poster
Rep:
|
Quote:
Originally Posted by Dafydd
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
|
|
|
03-23-2014, 11:58 AM
|
#4
|
Member
Registered: Mar 2010
Distribution: Slackware
Posts: 444
Original Poster
Rep:
|
Doesn't work
|
|
|
03-23-2014, 12:33 PM
|
#6
|
Member
Registered: Oct 2008
Posts: 344
Rep:
|
Does that file extension exist in the linux world?
|
|
|
03-23-2014, 03:45 PM
|
#7
|
Member
Registered: Mar 2010
Distribution: Slackware
Posts: 444
Original Poster
Rep:
|
Quote:
Originally Posted by Dafydd
Does that file extension exist in the linux world?
|
Extension doesn't count
|
|
|
03-24-2014, 05:01 PM
|
#8
|
Member
Registered: Oct 2008
Posts: 344
Rep:
|
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.
|
|
|
03-25-2014, 05:30 AM
|
#9
|
Member
Registered: Mar 2010
Distribution: Slackware
Posts: 444
Original Poster
Rep:
|
Quote:
Originally Posted by Dafydd
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/
|
|
|
03-30-2014, 12:27 PM
|
#10
|
LQ Newbie
Registered: Aug 2013
Posts: 17
Rep:
|
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.
|
|
|
04-17-2014, 07:13 PM
|
#11
|
Member
Registered: Mar 2010
Distribution: Slackware
Posts: 444
Original Poster
Rep:
|
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.
|
|
|
04-20-2014, 02:43 PM
|
#12
|
Member
Registered: Mar 2010
Distribution: Slackware
Posts: 444
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 02:17 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|