From: Gert Vervoort <gert.vervoort@hccnet.nl>
To: Dmitri Belimov <d.belimov@gmail.com>
Cc: video4linux-list@redhat.com,
Mauro Carvalho Chehab <mchehab@infradead.org>
Subject: Re: MPEG stream work
Date: Thu, 14 Aug 2008 20:15:25 +0200 [thread overview]
Message-ID: <48A4763D.8030509@hccnet.nl> (raw)
In-Reply-To: <20080814093320.49265ec1@glory.loctelecom.ru>
Dmitri Belimov wrote:
> Hi All
>
>
Hi Dmitri
> Now I have MPEG stream from the saa6752hs MPEG encoder TV card of Beholder M6.
>
> See test video
> http://debian.oshec.org/binary/tmp/mpeg01.dat
>
> This is my script for configure TV card and read data
>
> <script start>
>
> echo "Set Frequency..."
> ./v4l2-ctl --set-freq=623.25 -d /dev/video0
> echo "Set INPUT Id"
> ./v4l2-ctl --set-input=0 -d /dev/video0
> echo "Set Norm"
> ./v4l2-ctl -s=secam-d -d /dev/video0
> echo "Set INPUT Id"
> ./v4l2-ctl --set-input=0 -d /dev/video1
> echo "Set Norm"
> ./v4l2-ctl -s=secam-d -d /dev/video1
> echo "Start MPEG"
> echo "Configure MPEG stream"
> echo "Set Bitrate mode"
> ./v4l2-ctl -c video_bitrate_mode=0 -d /dev/video1
> echo "Set audio sampling frequency"
> ./v4l2-ctl -c audio_sampling_frequency=1 -d /dev/video1
> echo "Set audio encoding"
> ./v4l2-ctl -c audio_encoding_layer=1 -d /dev/video1
> echo "Set audio bitrate"
> ./v4l2-ctl -c audio_layer_ii_bitrate=11 -d /dev/video1
> echo "Set video bitrate"
> ./v4l2-ctl -c video_bitrate=7500000 -d /dev/video1
> ./v4l2-ctl -c video_peak_bitrate=9500000 -d /dev/video1
> echo "Set aspect video"
> ./v4l2-ctl -c video_aspect=1 -d /dev/video1
>
> cat /dev/video1 > test
>
> <script stop>
>
> But I have a trouble. I can't set correct Freq for TV tuner. I send command to tuner
> but data from tuner to MPEG encoder is wrong. The encoder send to host stream with "snow window".
> Anybody can help me??
>
>
When video on the input of the SAA6752 is not valid video (eg a tuner
which is not properly tuned), then usually it will not work properly (at
least it will not contain compressed video in the output stream).
However the "snow window" you see seems to be correct video in eyes of
the SAA6752 (contains correct syncs), see it has encoded it. The TS
stream is valid, I can play it back (with xine and ffplay) and see the
"snow window". The encoder seem to have done a proper job.
Do you also see this "snow window" on the video device of the SAA7143
(eg xawtv -c /dev/video0)?
That should show the same video signal (but scaled), as is send to the
SAA6752.
The tuner (CVBS) signal is send to the SAA7134, which will do the analog
video decoding / analog to digital conversion, the resulting 656 digital
video signal goes both to the scaler/DMA (visible on /dev/video0) and in
parallel it also goes to the ITU656 output to which to SAA6752 is connected.
If your TV-card has a CVBS input, you could try what happens if you
connect an other video source (eg DVD, VCR).
Gert
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
next prev parent reply other threads:[~2008-08-14 18:15 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-13 23:33 MPEG stream work Dmitri Belimov
2008-08-14 18:15 ` Gert Vervoort [this message]
[not found] ` <20080815115954.0be6c5ba@glory.loctelecom.ru>
2008-08-15 2:18 ` hermann pitton
2008-08-15 6:05 ` Hans Verkuil
2008-08-16 0:44 ` hermann pitton
2008-08-16 9:37 ` Hans Verkuil
2008-08-16 23:04 ` hermann pitton
2008-08-16 3:47 ` Dmitri Belimov
2008-08-16 8:30 ` hermann pitton
2008-08-16 9:46 ` Hans Verkuil
2008-08-16 9:24 ` Hans Verkuil
2008-08-14 19:10 ` hermann pitton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48A4763D.8030509@hccnet.nl \
--to=gert.vervoort@hccnet.nl \
--cc=d.belimov@gmail.com \
--cc=mchehab@infradead.org \
--cc=video4linux-list@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox