On Fri, 2011-03-25 at 10:24 -0700, Andrew Nutma wrote:
> My goal is to create a DVD of a church service as painlessly as
> possible.
>
>
> I am running a P4 with debian 6.0,
> Linux version 2.6.26-2-686 (Debian 2.6.26-26lenny1)
> dvdauthor-0.6.1.8 (which claims to have the ivtv patch applied)
>
>
> I have tried patching dvdauthor-0.6.1.1 with the same results, tried
> version 0.7 as well
>
>
> I can create the DVD, but a DVD player plays the audio but no video,
>
>
> xine. vlc, mplayer all work with the raw DVD, and mpeg files, I can
> fix the issue if I pass the video through ffmpeg -target ntsc-dvd,
<wild guess>
Probably becasue all those apps can deal with a corrupted stream, but
the DVD player cannot.
</wild guess>
You might want to check /var/log/messages to see if the ivtv driver is
griping about something that can result in lost data.
> here is the script I am using for testing
>
>
> record.sh
> --------------------------------------------------------------------------------
>
>
>
> #v4l2-ctl --set-input=1
> #v4l2-ctl --set-fmt-video=width=720,height=480 --set-standard=ntsc
> #v4l2-ctl
> --set-ctrl=stream_type=3,audio_layer_ii_bitrate=11,video_bitrate=12000000,video_peak_bitrate=14000000
> #v4l2-ctl --set-ctrl=stream_vbi_format=1
>
>
> v4l2-ctl -i 1
> v4l2-ctl -s ntsc
> v4l2-ctl -c stream_type=3
> v4l2-ctl -c insert_navigation_packets=0
> v4l2-ctl -c stream_vbi_format=0
> v4l2-ctl -c video_aspect=1
> #v4l2-ctl -c video_bitrate=2750000
> v4l2-ctl -c video_bitrate=5000000
> v4l2-ctl -c video_peak_bitrate=7000000
> v4l2-ctl -c video_gop_size=15
> v4l2-ctl -c video_b_frames=2
> v4l2-ctl -c video_gop_closure=1
> v4l2-ctl -c audio_sampling_frequency=1
> v4l2-ctl -c audio_encoding_layer=1
> #v4l2-ctl -c audio_layer_ii_bitrate=11
> v4l2-ctl -c audio_layer_ii_bitrate=10
> v4l2-ctl -c audio_stereo_mode=0
> v4l2-ctl -c audio_emphasis=0
> v4l2-ctl -c audio_crc=0
>
>
>
>
> rm ivtv.mpg
> rm DVD/* -Rf
> sleep 2;
>
>
> cp /dev/video0 ivtv.mpg &
Try
cat /dev/video0 > ivtv.mpg &
instead. I've never used cp for this sort of thing.
> pid=$(ps ax | grep "cp /dev/video0" | grep -v ' grep ' | awk '{print
> $1}')
pid=$(ps ax | awk '/[c]p \/dev\/video0/ {print $1}')
:)
The '[c]p /dev/video0' trick will work with grep too, of course.
> ## This works but requires a faster machine
> #ffmpeg -i /dev/video0 -target ntsc-dvd ivtv.mpg &
> #pid=$(ps ax | grep "ffmpeg -i /dev/video0" | grep -v ' grep ' | awk
> '{print $1}')
>
>
> echo "Creating 60 second video on the pid $pid";
> sleep 360;
> kill -9 $pid;
>
>
> ## this command will fix video with ffmepg
> #ffmpeg -i video0.mpg -target ntsc-dvd ivtv.mpg
> dvdauthor -o DVD -x dvd.xml
> growisofs -Z /dev/sr0 --dvd-video --dvd-compat DVD
You might want to use the ps-analyzer utility in ivtv-utils, or look at
the verbose messages in some of the other applications to see if there
is a problem detected in the PS stream.
I have no experience building DVDs myself.
> ------------------------------------------------------------------------------------------------------
>
>
> dvd.xml
> ------------------------------------------------------------------------------------------------------
> <dvdauthor dest="DVD">
> <vmgm />
> <titleset>
> <titles>
> <video format="ntsc"
> aspect="4:3"
> resolution="720x480"
> widescreen="nopanscan" />
> <audio format="mp2"
> channels="2"
> samplerate="48khz" />
> <pgc>
> <vob file="ivtv.mpg" />
> </pgc>
> </titles>
> </titleset>
> </dvdauthor>
> ----------------------------------------------------------------------------------------------------------------
>
>
> Any suggestions?
>
>
> Thanks Andrew
Regards,
Andy
_______________________________________________
ivtv-users mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-users