I just wound up needing to use 25 fps for one of may random shows that I like from Britian. I guess since this might come up for a few others, when I get around to creating something a little more concret, I will release both frame rate conversions for both NTSC, and PAL. I would like for someone to answer/notice carpespasm's question about the video and the audio line. Although, I think he might need to have to create a new discussion about it, before other people will notice.
BillW- 10-06-2005
i don't if it could apply or not, but i've seen videos that have had a discolored or distorted band on the bottom of the video caused by the audio. might that be what your green band at the bottom of widescreen videos be? since the camcorder was never meant to play in widescreen, isn't it possiblethat it's not quite showing the whole height of the video to hide this green band in regular 4x3 videos?
I don't think it's caused by the audio - I think you come closer with your second guess.
The green bands typically show up (here and with some other decoders) when a video doesn't have a height or width that's a multiple of 16, which is part of the MPEG4 spec. My guess is that in one of the stages the camcorder is scaling down videos according to the X value, and assuming that the video is 4:3. The result is a height that no longer is a multiple of 16, which causes the green band in a later stage.
docwebhead- 10-06-2005
dvd converter script Here's my hacked up version, for DVD episode encoding.
@echo off
echo Mencoder CVS camcorder re-encoding script
echo --------------------------------------------
echo This utility will aid you with encoding your
echo (non-copy-protected) DVDs for your CVS Camcorder.
echo --------------------------------------------
echo a - Single pass encoding (Default)
echo b - 2pass Multi pass encoding
echo c - 3pass Multi pass encoding
echo -----------------------------
set /p ch=Please select one now:
if /I "%ch%"=="a" goto a
if /I "%ch%"=="b" goto b
if /I "%ch%"=="c" goto c
:a
echo ---------------------
echo Single pass encoding.
echo ---------------------
set /p ch=DVD Program Number:
mencoder dvd://%ch% -ffourcc XVID -ovc lavc -oac lavc -lavcopts vcodec=mpeg4:vqmin=3:vmax_b_frames=4:vlelim=-4:vcelim=9:aspect=4/3:keyint=10:acodec=mp2:abitrate=64:vpass=1:turbo -af volnorm -lameopts vol=9:mode=3 -vf scale=256:192 -ofps 15 -o PICT000%ch%.AVI
echo Encode Complete, output is named PICT000%ch%.AVI
DEL divx2pass.log /s
pause
exit
:b
echo -------------------------
echo 2pass Multi pass encoding.
echo -------------------------
set /p ch=DVD Program Number:
mencoder dvd://%ch% -ffourcc XVID -ovc lavc -oac lavc -lavcopts vcodec=mpeg4:vqmin=3:vmax_b_frames=4:vlelim=-4:vcelim=9:aspect=4/3:keyint=10:acodec=mp2:abitrate=64:vpass=1:turbo -af volnorm -lameopts vol=9:mode=3 -vf scale=256:192 -ofps 15 -o 2.AVI
echo First Pass Complete.
mencoder 2.AVI -ffourcc XVID -ovc lavc -oac lavc -lavcopts vcodec=mpeg4:vqmin=3:vmax_b_frames=4:vlelim=-4:vcelim=9:aspect=4/3:keyint=10:acodec=mp2:abitrate=64:vpass=2 -af volnorm -lameopts vol=9:mode=3 -vf scale=256:192 -ofps 15 -o PICT000%ch%.AVI
echo Second Pass Complete
echo Encode complete, output is named PICT000%ch%.AVI
DEL 2.AVI /s
DEL divx2pass.log /s
pause
exit
:c
echo -------------------------
echo 3pass Multi pass encoding.
echo -------------------------
set /p ch=DVD Program Number:
mencoder dvd://%ch% -ffourcc XVID -ovc lavc -oac lavc -lavcopts vcodec=mpeg4:vqmin=3:vmax_b_frames=4:vlelim=-4:vcelim=9:aspect=4/3:keyint=10:acodec=mp2:abitrate=64:vpass=1:turbo -af volnorm -lameopts vol=9:mode=3 -vf scale=256:192 -ofps 15 -o 2.AVI
echo First Pass Complete.
mencoder 2.AVI -ffourcc XVID -ovc lavc -oac lavc -lavcopts vcodec=mpeg4:vqmin=3:vmax_b_frames=4:vlelim=-4:vcelim=9:aspect=4/3:keyint=10:acodec=mp2:abitrate=64:vpass=2 -af volnorm -lameopts vol=9:mode=3 -vf scale=256:192 -ofps 15 -o 3.AVI
echo Second Pass Complete
mencoder 3.AVI -ffourcc XVID -ovc lavc -oac lavc -lavcopts vcodec=mpeg4:vqmin=3:vmax_b_frames=4:vlelim=-4:vcelim=9:aspect=4/3:keyint=10:acodec=mp2:abitrate=64:vpass=3 -af volnorm -lameopts vol=9:mode=3 -vf scale=256:192 -ofps 15 -o PICT000%ch%.AVI
echo Encode complete, output is named PICT000%ch%.AVI
set /p ch=Remove temp files? (y/n):
if /I "%ch%"=="y" goto cleanup
echo Temp files 2.AVI, 3.AVI, and divx2pass.log retained for your inspection.
pause
exit
:cleanup
DEL 2.AVI
DEL 3.AVI
DEL divx2pass.log
pause
exit
I added some minor stuff, thanks all for the clear examples.
Also, please note that guessing the program number is something of a black art. Good luck.
Now to do a bash version!
cTT bLaKeMAn- 10-06-2005
You should try and make it more user friendly and make it so it will convert .avi files and .wmv files. Other than that, "friggin sweet!"
startreker- 10-07-2005
What I am trying to work out right now is to turn all videos to dvd first and than convert down. Yes I know this will put a little bit of a space lose on your computer, temporarly but going from dvd down to the .avi video is the only GOOD way to do it, and I hate having to go to nerovision express to do it. If anyone can find some effective code on how to convert to dvd please tell me. That way you have it now docwebhead, I don't think it will convert to dvd, it just assumes that the input is dvd, but I might be reading it wrong. Also it is cool that you went down on the scale, I plan on releasing different scaled models, but if you take the fps down too low, like 15 it usually gets jerky and the audio tends to get off after about 4 to 5 mins. Its all good though. I like your prompt at the end, but I am sort of doubting anyone will want to keep the temp. files often enough to make it where you have to click y and enter to keep it. I will keep that in for the most part but just change it up slightly, so all the person has to do is hit enter if they want to delete the temporary files, or if they really want them, they can press the n key and enter which will let them continue, making it as effortless on re-encoding as it was before, the other way meant I had to keep typing y every time I wanted the stupid temp files deleted. Awesome idea though, another little way to let people have control over what they want.
@echo off
echo --------------------------------------------
echo CVS Camcorder Video Converter
echo Ver. 0.3
echo --------------------------------------------
echo A - 3pass Multi pass encoding (Default)
echo B - 2pass Multi pass encoding
echo C - Single pass encoding
echo -----------------------------
echo Don't forget to put your source video path in quotes
echo -----------------------------------------------------
set /p ch=Please select one now:
if /I "%ch%"=="a" goto a
if /I "%ch%"=="b" goto b
if /I "%ch%"=="c" goto c
:a
echo -------------------------
echo 3pass Multi pass encoding.
echo -------------------------
set /p ch=Filename:
mencoder %ch% -ffourcc XVID -ovc lavc -oac lavc -lavcopts
vcodec=mpeg4:vqmin=10:vmax_b_frames=4:vlelim=-4:vcelim=9:aspect=4/3:sc_threshold=-1000000:keyint=20:acodec=mp2:abitrate=48:vp
ass=1:turbo -vf scale=320:240 -ofps 30000/1001 -o 2.AVI
echo First Pass Complete.
mencoder 2.AVI -ffourcc XVID -ovc lavc -oac lavc -lavcopts
vcodec=mpeg4:vqmin=10:vmax_b_frames=4:vlelim=-4:vcelim=9:aspect=4/3:sc_threshold=-1000000:keyint=20:acodec=mp2:abitrate=48:vp
ass=2 -vf scale=320:240 -ofps 30000/1001 -o 3.AVI
echo Second Pass Complete
mencoder 3.AVI -ffourcc XVID -ovc lavc -oac lavc -lavcopts
vcodec=mpeg4:vqmin=10:vmax_b_frames=4:vlelim=-4:vcelim=9:aspect=4/3:sc_threshold=-1000000:keyint=20:acodec=mp2:abitrate=48:vp
ass=3 -vf scale=320:240 -ofps 30000/1001 -o PICT0001.AVI
echo Encode complete, output is named PICT0001.AVI
goto cleanup
:b
echo -------------------------
echo 2pass Multi pass encoding.
echo -------------------------
set /p ch=Filename:
mencoder %ch% -ffourcc XVID -ovc lavc -oac lavc -lavcopts
vcodec=mpeg4:vqmin=10:vmax_b_frames=4:vlelim=-4:vcelim=9:aspect=4/3:sc_threshold=-1000000:keyint=20:acodec=mp2:abitrate=48:vp
ass=1:turbo -vf scale=320:240 -ofps 30000/1001 -o 2.AVI
echo First Pass Complete.
mencoder 2.AVI -ffourcc XVID -ovc lavc -oac lavc -lavcopts
vcodec=mpeg4:vqmin=10:vmax_b_frames=4:vlelim=-4:vcelim=9:aspect=4/3:sc_threshold=-1000000:keyint=20:acodec=mp2:abitrate=48:vp
ass=2 -vf scale=320:240 -ofps 30000/1001 -o PICT0001.AVI
echo Second Pass Complete
echo Encode complete, output is named PICT0001.AVI
goto cleanup
:c
echo ---------------------
echo Single pass encoding.
echo ---------------------
set /p ch=Filename:
mencoder %ch% -ffourcc XVID -ovc lavc -oac lavc -lavcopts
vcodec=mpeg4:vqmin=10:vmax_b_frames=4:vlelim=-4:vcelim=9:aspect=4/3:sc_threshold=-1000000:keyint=20:acodec=mp2:abitrate=48:vp
ass=1:turbo -vf scale=320:240 -ofps 30000/1001 -o PICT0001.AVI
echo Encode Complete, output is named PICT0001.AVI
goto cleanup
:cleanup
set /p ch=Keep temp files? (y/n):
if /I "%ch%"=="n" goto finished
DEL 2.AVI
DEL 3.AVI
DEL divx2pass.log
exit
:finshed
echo Temp files 2.AVI, 3.AVI, and divx2pass.log retained for your inspection.
pause
exit
hDy- 02-09-2006
wow! I didn't think my batch script Idea would have so many alterations, good work guys! I'm impressed by the things you've all come up with, keep up the good work.
-hDy
thoralf- 07-24-2006
just dug this up ...
for backup purposes, i'd choose x264 as the video encoder, and ogg vorbis audio-wise. but why transcode the video at all? converting lossy compression to lossy compression definitely looses detail :-)
then again, one could do some filtering on the video. http://www.avisynth.org could come in handy for this ... opening an avs script in virtualdub also gives a nice gui for encondig.
carpespasm- 07-24-2006
well, the camcorder only plays well with certain xvid encoded videos, so how does h264 and the other formats come into play?
enigma-- 07-24-2006
for Linux:
#!/bin/bash
## cvsvidencoder
## Created by Jeff Crowell, April 30, 2006.
## Released under the GPL; a fork of ipodvidenc and the windows batch script for cvs video encoding.
echo " "
echo " "
echo "CVS Video Encoder for"
echo " "
echo " @ "
echo " ###### @@# "
echo " ## # "
echo " ## @@@ ### #### ### ### ##### ###### "
echo " ## @ @# ### ## ## ## ### ## "
echo " ## @ @# ## ## ## ## ### "
echo " ## @@# ## ## ## ## ### "
echo " ## # @@# ## ## ## ## ## ## "
echo " ## ## @@# # ## ## ### ### ## ## "
echo " ############ ### #### #### #### ### ##### ###### "
echo " "
echo "Released by Jeff Crowell (enigma-), under the GPL"
echo " "
echo " "
echo "Where is the original file (Drag 'n Drop into terminal/konsole might not work)"
read input
echo "PICT0001.avi will be located in $PWD. Is this acceptable? [y/n]"
read output_file_loc_permis
if [ $output_file_loc_permis = 'n' ] || [ $output_file_loc_permis = 'N' ]
then
echo "Where would you like to store PICT0001.avi"
read output_dir
else
output_dir=$PWD
fi
mencoder $input -ffourcc XVID -ovc lavc -oac lavc -lavcopts vcodec=mpeg4:vqmin=10:vmax_b_frames=4:vlelim=-4:vcelim=9:autoaspect:sc_threshold=-1000000:keyint=20:acodec=mp2:abitrate=48:vpass=1:turbo -vf scale=256:192 -o "${output_dir}/PICT0001.avi"
echo "Encoding Complete."
thoralf- 07-25-2006
well, the camcorder only plays well with certain xvid encoded videos, so how does h264 and the other formats come into play?
good question :-)
i got the impression that people were using this script to backup their videos from the camera, and not to produce vids to be watched on the camera - well, nevermind :-)
with kind regards,
thoralf.
carpespasm- 07-25-2006
yes, actually, this particular thread was started by a friend of mine who's into movies and tv a lot, and he know's what's what generally about digital video, so when i told him there was a mostly done way to encode movies for the camcorder, he churned out a more finished version of it, i added a headphone jack to his camcorder, and he now uses it as a portable media player
KiddKill- 07-25-2006
Is this hosted anywhere else, the first link is dead.
Dang, everything seems to be doing a dissapearing act lately. First the Yahoo! group goes down, "Family OPS" gets nuked by RapidShare, and now CVS Encoder has been gone for who-knows-how-long. :evil:
http://snotwad.dyndns.org:8000/puredigital/CVS_Encoder_Ver._0.2.zip
Don't forget all those old pictures with a big red X in a white box now...
GotAnMP3- 09-09-2006
Well, pictures are a dime a dozen, but I couldn't let CVS Encoder fall by the wayside. With its volume and previous/next video controls, the Target M225 actually makes a decent media player once the playback ZBMs have been blanked. And considering you can get it for under a hundred bucks if you shop around, it's probably the least expensive full-resolution flash memory media player with TV-out. 8)
Forumer™ is Voted #1 Free Forum Hosting provider
Build your own community today with the largest message board hosting company.