View Full Version : 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
Ghitulescu
18th May 2011, 07:59
My google gave me in 5 seconds the following thread -> http://www.pclinuxos.com/forum/index.php?topic=75805.0
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.
Ghitulescu
18th May 2011, 09:14
replace /dev/video0 with /dev/video32 (32bpp) or ..24 (24bpp).
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...
cord-factor
19th May 2011, 17:52
mplayer -dumpstream
?
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.