Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > General > Linux, Mac OS X, & Co
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 17th May 2011, 20:15   #1  |  Link
mesc
Registered User
 
Join Date: May 2011
Posts: 3
Raw video/audio from PVR-150 to digitize VHS (Linux)

The PVR-150 offers the devices:
/dev/video24 – The raw audio capture device (Read-only)
/dev/video32 – The raw video capture device (Read-only)

How can I grab from this two channels? Which is the correct ffmpeg command?

Thanks mesc
mesc is offline   Reply With Quote
Old 18th May 2011, 07:59   #2  |  Link
Ghitulescu
Registered User
 
Ghitulescu's Avatar
 
Join Date: Mar 2009
Location: Germany
Posts: 5,769
My google gave me in 5 seconds the following thread -> http://www.pclinuxos.com/forum/index.php?topic=75805.0
__________________
Born in the USB (not USA)
Ghitulescu is offline   Reply With Quote
Old 18th May 2011, 08:28   #3  |  Link
mesc
Registered User
 
Join Date: May 2011
Posts: 3
This was not my question.
The link you posted describes how to digitize /dev/video0 and not with:
/dev/video24
/dev/video32

I know how to do it with /dev/video0 but this is the mpeg-coded signal from the PVR-150. For further editing I would like to have the raw material.
mesc is offline   Reply With Quote
Old 18th May 2011, 09:14   #4  |  Link
Ghitulescu
Registered User
 
Ghitulescu's Avatar
 
Join Date: Mar 2009
Location: Germany
Posts: 5,769
replace /dev/video0 with /dev/video32 (32bpp) or ..24 (24bpp).
__________________
Born in the USB (not USA)
Ghitulescu is offline   Reply With Quote
Old 19th May 2011, 15:59   #5  |  Link
mesc
Registered User
 
Join Date: May 2011
Posts: 3
I'm getting closer:
1. v4l2-ctl -v width=720,height=480
2. mplayer -rawvideo format=hm12:h=480:w=720:fps=29.97 -nocache -demuxer 26 /dev/video32 -audiofile /dev/video24 -audio-demuxer rawaudio
With following message:
#########################################################################################
MPlayer 1.0rc4-4.4.5 (C) 2000-2010 MPlayer Team

Playing /dev/video32.
rawvideo file format detected.
rawaudio file format detected.
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
[VO_TDFXFB] Can't open /dev/fb0: No such file or directory.
[VO_3DFX] Unable to open /dev/3dfx.
[vdpau] Error when calling vdp_device_create_x11: 1
==========================================================================
Opening video decoder: [hmblck] Hauppauge Macroblock/NV12/NV21 Decoder
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 720x480 => 720x480 Planar YV12
Selected video codec: [rawhm12] vfm: hmblck (RAW HM12)
==========================================================================
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 1411.2 kbit/100.00% (ratio: 176400->176400)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
waitpid(): No child processes
AO: [pulse] Init failed: Internal error
Failed to initialize audio driver 'pulse'
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
A: 3.2 V: 2.7 A-V: 0.494 ct: 0.000 83/ 83 3% 2% 3.6% 50 0

************************************************
**** Your system is too SLOW to play this! ****
************************************************

Possible reasons, problems, workarounds:
- Most common: broken/buggy _audio_ driver
- Try -ao sdl or use the OSS emulation of ALSA.
- Experiment with different values for -autosync, 30 is a good start.
- Slow video output
- Try a different -vo driver (-vo help for a list) or try -framedrop!
- Slow CPU
- Don't try to play a big DVD/DivX on a slow CPU! Try some of the lavdopts,
e.g. -vfm ffmpeg -lavdopts lowres=1:fast:skiploopfilter=all.
- Broken file
- Try various combinations of -nobps -ni -forceidx -mc 0.
- Slow media (NFS/SMB mounts, DVD, VCD etc)
- Try -cache 8192.
- Are you using -cache to play a non-interleaved AVI file?
- Try -nocache.
Read DOCS/HTML/en/video.html for tuning/speedup tips.
If none of this helps you, read DOCS/HTML/en/bugreports.html.

A: 3.5 V: 2.9 A-V: 0.533 ct: 0.000 89/ 89 3% 2% 3.4% 55 0
Exiting... (Quit)
#########################################################################################


But it works! With time delay between audio and video but it works! But now how to record from here?


And how would the command be for ffmpeg?

ffmpeg -t 00:00:10 -i /dev/video32 -i /dev/video24 test.raw
ffmpeg -t 00:00:10 -f rawvideo -i /dev/video32 -i /dev/video24 -sameq test.raw
both doesn't work...
mesc is offline   Reply With Quote
Old 19th May 2011, 17:52   #6  |  Link
cord-factor
Registered User
 
Join Date: Jan 2008
Location: Kharkov, UA
Posts: 105
mplayer -dumpstream
?
__________________
Gentoo linux
cord-factor is offline   Reply With Quote
Reply


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

Forum Jump


All times are GMT +1. The time now is 05:27.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.