|
|
Subject: Re: yuvfps and sound - msg#00318
List: video.mjpeg.user
On Mon, 24 Mar 2003, Edouard Chalaron wrote:
> Hi
> Got a fabulous NTSC video from USA and would like to make it a PAL DV file.
> Acquisition is Ok, no worries, thanks to Canopus. Although I am not sure if I
> have to use AVI1 or 2 to use it with lav2yuv.
lav2yuv needs type 2 AVI. I prefer to use
>
> The frame rate : should I use yuvfps 25000:1000 or 25:1 (it has to go back
> onto video)
I do this as:
smil2wav -a video.wav video_ntsc.dv
smil2yuv video_ntsc.dv | yuvfps -r 25:1 | yuvscaler -O SIZE_720x576 | \
y4mtopgm | encodedv -i pgm -a wav - video.wav > video_pal.dv
yuvfps resamples the framerate by simply dropping/duplicating frames, so
the resulting video may show some jerkiness and interlacing artifacts at
high motion scenes (deinterlacing may help..). Also there is the issue of
chroma subsampling difference between NTSC and PAL DV. Having said that I
have done such pal->ntsc and ntsc->pal conversion a couple of times with
acceptable results.
y4mtopgm in the pipeline above is a simple utility I wrote to convert
a yuv4mpeg stream into a pgm stream that is accepted by encodedv. If you
want I can send it you.
> I guess the sound will have to be resampled, I know we people came around
> this question already but can not find it in my archives.
>
> Thanks a lot for your help
> Edouard
Selva
-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
Was this page helpful?
Thread at a glance:
Previous Message by Date:
click to view message preview
Re: Filter out TV-Logos ?
Hallo
> Has anybody tried to filter out the annoying TV-Logos (zdf, pro7 in
> Germany or maybe CNBC or the like) ? Is there an easy way or do I have
> to work this out myself ?
If you set a active size, and you have a 16:9 or 2.21:1 it will very
likely disappear.
Filtering or setting a certain area of the image to a color is currently
not possible.
If you only want to set a area to a certain color this should be no big
problem. Take a look at the code of yuvscaler and yuvdenoise, that
programm have the active size option. And can give you hints how it
could work.
auf hoffentlich bald,
Berni the Chaos of Woodquarter
Email: shadowlord@xxxxxxxxx bernhard.praschinger@xxxxxxxxxxxx
www: http://www.lysator.liu.se/~gz/bernhard
-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
Next Message by Date:
click to view message preview
[Solved]: driver-zoran-0.9.3 - DC10+ & SB pci128 OOPS
I found the problem, the card was just making crackle and pops
when I tried to record with another (home made) program, so I moved
the card to a different PCI slot.
That solved the problem.
- Ríkharður
On Tue, Mar 25, 2003 at 10:26:31AM +0100, Ríkharður Egilsson wrote:
> What a card, the DC10+ I'm realy impressed with the image quality,
> By the way, what is the difference between the DC10 and the DC10+ ?
>
> My hardware:
> Motherboard: Abit BP6 (Dual Celeron 366MHz@366MHz)
> DC10+ video capture card.
> Sound Blaster pci128
> All the Hard disks are connected to the HighPoint
> UDMA controller.
>
> Recording video only (i.e. no sound) works without any problem.
> I can also use lavplay to play the recording back to the TV in
> broadcast quality. (*Super*)
>
> >>"No sound" Recording :
> >>>>>>>>>>>>>>>>>>>>>>>
> [root@CandyBox root]# lavrec -fa -is -a0 -d2 -q30 -t 5 -v1 Snap.avi
> INFO: [lavrec] Recording parameters:
> INFO: [lavrec] Output format: AVI
> INFO: [lavrec] Input Source: Composite SECAM
>
> INFO: [lavrec] Decimation: 2
> INFO: [lavrec] Quality: 30
> INFO: [lavrec] Recording time: 5 sec
> INFO: [lavrec]
> INFO: [lavrec] MJPEG buffer size: 256 KB
> INFO: [lavrec] # of MJPEG buffers: 64
> INFO: [lavrec] Audio disabled
> INFO: [lavrec] Auto detecting input and norm ...
> INFO: [lavrec] Image size will be 384x288, 1 field(s) per buffer
> INFO: [lavrec] Got 32 buffers of size 256 KB
> INFO: [lavrec] Opening output file Snap.avi
> INFO: [lavrec] Recording time reached, stoppingtd1=0.000 td2=0.000
>
> Recording time : 0.00.05:00
> Lost frames : 000
> A/V sync ins/del: 000/000
> Audio errors : 000
>
>
> >>> syslog:
> >>>>>>>>>>>
> Mar 24 18:51:07 CandyBox kernel: i2c: initialized
> Mar 24 18:51:07 CandyBox kernel: Linux video capture interface: v1.00
> Mar 24 18:51:07 CandyBox kernel: Zoran ZR36060 + ZR36057/67 MJPEG board
> driver version 0.7
> Mar 24 18:51:07 CandyBox kernel: MJPEG[0]: Zoran ZR36067 (rev 2) irq: 19,
> memory: 0xee000000
> Mar 24 18:51:07 CandyBox kernel: MJPEG[0]: subsystem vendor=0x1031 id=0x7efe
> Mar 24 18:51:07 CandyBox kernel: MJPEG[0]: Initializing i2c bus...
> Mar 24 18:51:07 CandyBox kernel: MJPEG[0]: Card not supported
> Mar 24 18:51:07 CandyBox kernel: No known MJPEG cards found.
> Mar 24 18:51:07 CandyBox kernel: Linux video codec intermediate layer: v0.2
> Mar 24 18:51:07 CandyBox kernel: i2c-core.o: i2c core module
> Mar 24 18:51:07 CandyBox kernel: i2c-algo-bit.o: i2c bit algorithm module
> Mar 24 18:51:07 CandyBox kernel: Zoran MJPEG board driver version 0.9.3
> Mar 24 18:51:07 CandyBox kernel: MJPEG[0]: Zoran ZR36067 (rev 2) irq: 19,
> memory: 0xee000000
> Mar 24 18:51:07 CandyBox kernel: MJPEG[0]: subsystem vendor=0x1031 id=0x7efe
> Mar 24 18:51:07 CandyBox kernel: i2c-core.o: driver saa7110 registered.
> Mar 24 18:51:07 CandyBox kernel: i2c-core.o: driver adv717x registered.
> Mar 24 18:51:07 CandyBox kernel: i2c-core.o: client [saa7110[0]] registered
> to adapter [DC10plus[0]](pos. 0).
> Mar 24 18:51:07 CandyBox kernel: i2c-core.o: client [adv7176[0]] registered
> to adapter [DC10plus[0]](pos. 1).
> Mar 24 18:51:07 CandyBox kernel: i2c-core.o: adapter DC10plus[0] registered
> as adapter 0.
> Mar 24 18:51:07 CandyBox kernel: ZORAN: 1 card(s) found
> Mar 24 18:51:07 CandyBox kernel: DC10plus[0]: zr36057_init() - initializing
> card[0], zr=d9487ac0
> Mar 24 18:51:08 CandyBox kernel: DC10plus[0]: zoran_open(lavrec, pid=[716]),
> users(-)=0
> Mar 24 18:51:14 CandyBox kernel: DC10plus[0]: zoran_close(lavrec, pid=[716])
>
>
> But when I try to record with sound, the recording process
> hangs between 0.6 and 6 seconds (I have never managed to
> record 10 seconds with sound).
>
> >>>>>>> Demo recording With Sound (1 second).
>
> [root@CandyBox root]# lavrec -fa -is -d2 -q30 -t 1 -v1 Snap.avi
> INFO: [lavrec] Recording parameters:
> INFO: [lavrec] Output format: AVI
> INFO: [lavrec] Input Source: Composite SECAM
>
> INFO: [lavrec] Decimation: 2
> INFO: [lavrec] Quality: 30
> INFO: [lavrec] Recording time: 1 sec
> INFO: [lavrec]
> INFO: [lavrec] MJPEG buffer size: 256 KB
> INFO: [lavrec] # of MJPEG buffers: 64
> INFO: [lavrec] Audio parameters:
> INFO: [lavrec] Audio sample size: 16 bit
> INFO: [lavrec] Audio sampling rate: 44100 Hz
> INFO: [lavrec] Audio is MONO
> INFO: [lavrec] Audio input recording level: Use mixer setting
> INFO: [lavrec] Level of correction for Audio/Video synchronization:
> INFO: [lavrec] Lost frame compensation and frame drop/insert
> INFO: [lavrec] Using mmap(2) system call for capture
> INFO: [lavrec] Auto detecting input and norm ...
> INFO: [lavrec] Image size will be 384x288, 1 field(s) per buffer
> INFO: [lavrec] Got 32 buffers of size 256 KB
> INFO: [lavrec] Getting audio ...
> INFO: [lavrec] Opening output file Snap.avi
> INFO: [lavrec] Recording time reached, stoppingtd1=0.040 td2=-0.009
>
> Recording time : 0.00.01:00
> Lost frames : 000
> A/V sync ins/del: 000/000
> Audio errors : 000
>
> >>> And in syslog:
>
> Mar 24 18:54:01 CandyBox kernel: es1370: version v0.37 time 11:20:38 Mar 22
> 2003
> Mar 24 18:54:01 CandyBox kernel: es1370: found adapter at io 0xc800 irq 19
> Mar 24 18:54:01 CandyBox kernel: es1370: features: joystick off, line in, mic
> impedance 0
> Mar 24 18:54:02 CandyBox modprobe: modprobe: Can't locate module
> sound-service-0-3
> Mar 24 18:54:02 CandyBox kernel: DC10plus[0]: zoran_open(lavrec, pid=[734]),
> users(-)=0
> Mar 24 18:54:03 CandyBox kernel: DC10plus[0]: zoran_close(lavrec, pid=[734])
>
>
>
> When I record with 'X' running, the maching just hangs.
> I tried to record on the console, and I got a OOPS saying
> something like
> "unable to handle paging request at ADDRXXX"
> process: swapper
>
> I'l retry it tonight and write down the message.
>
>
> Is anyone using a similar setup ?? (Dual PCI && Sound Blaster pci128 ??)
>
>
> - Ríkharður
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by:
> The Definitive IT and Networking Event. Be There!
> NetWorld+Interop Las Vegas 2003 -- Register today!
> http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
> _______________________________________________
> Mjpeg-users mailing list
> Mjpeg-users@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/mjpeg-users
-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
Previous Message by Thread:
click to view message preview
yuvfps and sound
Hi
Got a fabulous NTSC video from USA and would like to make it a PAL DV file.
Acquisition is Ok, no worries, thanks to Canopus. Although I am not sure if I
have to use AVI1 or 2 to use it with lav2yuv.
The frame rate : should I use yuvfps 25000:1000 or 25:1 (it has to go back
onto video)
I guess the sound will have to be resampled, I know we people came around
this question already but can not find it in my archives.
Thanks a lot for your help
Edouard
-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open!
Get cracking and register here for some mind boggling fun and
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
Next Message by Thread:
click to view message preview
Re: yuvfps and sound
Hi!
> From: Edouard Chalaron <e.chalaron@xxxxxxxxxxxxxxx>
> Got a fabulous NTSC video from USA and would like to make it a PAL DV file.
> Acquisition is Ok, no worries, thanks to Canopus. Although I am not sure if I
> have to use AVI1 or 2 to use it with lav2yuv.
Ah, another Canopus convert ;)
Why not use raw DV? I use 'dvgrab' with "--format raw" and then
use 'smil2yuv' to get the yuv4mpeg2 and audio. Something like this:
'smil2yuv -a audio.wav raw.dv | ... | mpeg2enc ...'
> The frame rate : should I use yuvfps 25000:1000 or 25:1 (it has to go back
> onto video)
No need to worry about that because smil2yuv generates the correct rate
information in the yuv4mpeg2 header automatically.
> I guess the sound will have to be resampled, I know we people came around
> this question already but can not find it in my archives.
mp2enc will downsample the audio from 48 to 44.1K but that may not
be necessary. If you're making a DVD then 48K audio is the correct
format. If you're making a SVCD then 48 might still work - my players
all accept the higher rate even for VCD/SVCD discs.
Cheers,
Steven Schultz
-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open!
Get cracking and register here for some mind boggling fun and
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
|
|