LinHES Forums
http://forum.linhes.org/

HOWTO automatically encode recordings to XviD
http://forum.linhes.org/viewtopic.php?f=11&t=10678
Page 1 of 5

Author:  spalVl [ Fri Jun 30, 2006 10:50 pm ]
Post subject:  HOWTO automatically encode recordings to XviD

Here is a WIKI howto with needed config file on configuring KnoppMyth to automatically encode recordings to XviD format using a modifed myth2ipod script.

http://www.knoppmythwiki.org/index.php? ... iDEncoding

Author:  s1148625 [ Sat Jul 01, 2006 4:56 pm ]
Post subject: 

Seems to work fine, but takes an unbelievably long time to encode... I'm currently encoding a 42 minute recording... I started at a little after noon, and now it's almost 7:00 pm and still encoding. It doesn't seem as though my hardware should struggle this much with XviD, even two-pass conversion.

Author:  spalVl [ Sun Jul 02, 2006 6:04 am ]
Post subject: 

Try changing the encoding options in myth2xvid (line 19) to below.

Code:
my $nuvoptions ="--mode=XviD --nice=19 --cutlist --nodenoise --deinterlace --crop --multipass";

(updated WIKI to reflect --nodenoise option)

I don't have the origianl machine I used to create the guide available, I used so many options I may have documented the wrong one. Changing the mentioned denoise reduced the time for a 1 min recording from 35 minutes down to 11 on my PIII 500,

Author:  esurfer [ Sun Jul 02, 2006 12:22 pm ]
Post subject: 

My encoded file will not play on windows. I get audio but no video. I am using Media Player Classic. It complains that there is not a needed codec or filter. Does anyone know how to fix this?


MPC output:

Media Type 0:
--------------------------
Video: XVID 624x464 29.97fps 959Kbps

AM_MEDIA_TYPE:
majortype: MEDIATYPE_Video {73646976-0000-0010-8000-00AA00389B71}
subtype: Unknown GUID Name {64697678-0000-0010-8000-00AA00389B71}
formattype: FORMAT_VideoInfo {05589F80-C356-11CE-BF01-00AA0055595A}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 1572864
cbFormat: 88

VIDEOINFOHEADER:
rcSource: (0,0)-(0,0)
rcTarget: (0,0)-(0,0)
dwBitRate: 959939
dwBitErrorRate: 0
AvgTimePerFrame: 333667

BITMAPINFOHEADER:
biSize: 40
biWidth: 624
biHeight: 464
biPlanes: 1
biBitCount: 24
biCompression: xvid
biSizeImage: 868608
biXPelsPerMeter: 0
biYPelsPerMeter: 0
biYPelsPerMeter: 0
biClrUsed: 0
biClrImportant: 0

pbFormat:
0000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0020: c3 a5 0e 00 00 00 00 00 63 17 05 00 00 00 00 00 å......c.......
0030: 28 00 00 00 70 02 00 00 d0 01 00 00 01 00 18 00 (...p...Ð.......
0040: 78 76 69 64 00 41 0d 00 00 00 00 00 00 00 00 00 xvid.A..........
0050: 00 00 00 00 00 00 00 00 ........

Author:  spalVl [ Sun Jul 02, 2006 12:34 pm ]
Post subject: 

Quote:
My encoded file will not play on windows.


You have the XviD codec installed?

http://www.koepi.org/XviD-1.1.0-30122005.exe

Or something like the "K-Lite Codec Pack" will let you play most formats including XviD.

Author:  esurfer [ Sun Jul 02, 2006 1:56 pm ]
Post subject: 

Yes, I installed the latest Xvid codec. Are you able to play the file in Windows?

Author:  s1148625 [ Sun Jul 02, 2006 2:03 pm ]
Post subject: 

I'm experiencing the same issue as esurfer. XviD is installed, other XviD files play without issue, but encoded shows play audio without video. I've tried Media Player Classic and Windows Media Player.

Author:  spalVl [ Sun Jul 02, 2006 2:08 pm ]
Post subject: 

esurfer wrote:
Yes, I installed the latest Xvid codec. Are you able to play the file in Windows?

Yes, Using Media Player Classic with K-Lite pack day to day. Tested WMP too and worked.

Here is a gspot export of some of the video info

Code:
FILE_NAME                      DeInterlaced NODenoise Crop.avi
FILE_NAME_WITH_PATH            DeInterlaced NODenoise Crop.avi
FILE_SIZE                      7,389,090
CONT_BASETYPE                  AVI(.AVI)
CONT_SUBTYPE                   AVI v1.0,
CONT_INTERLEAVE_TIME           33
CONT_INTERLEAVE_PRELOAD       
CONT_INTERLEAVE_ALIGN          Aligned
CONT_TOTAL_BITRATE             0
CONT_BYTES_MISSING             0
CONT_AUDIO_STREAM_COUNT        1
VIDEO_CODEC_TYPE               xvid
VIDEO_CODEC_NAME               XviD
VIDEO_CODEC_STATUS             Codec(s) are Installed
VIDEO_DURATION                 00:00:56
VIDEO_FRAME_COUNT              1676
VIDEO_QF                       0.106
VIDEO_SIZE_X                   624
VIDEO_SIZE_Y                   464
VIDEO_DISPLAY_SIZE_X           
VIDEO_DISPLAY_SIZE_Y           
VIDEO_ASPECT_DECIMAL           
VIDEO_ASPECT_FRAC             
VIDEO_PICS_PER_SEC             29.971
VIDEO_FRAMES_PER_SEC           29.971
VIDEO_FIELDS_PER_SEC           
VIDEO_BITRATE                  917
VIDEO_MPEG4                    MPEG-4
VIDEO_MPEG4_BVOP               
VIDEO_MPEG4_NVOP               
VIDEO_MPEG4_QPEL               
VIDEO_MPEG4_GMC               
VIDEO_H264                     
VIDEO_SAR                     
VIDEO_DAR                      1.345
VIDEO_MPEG2                   
VIDEO_MPEG2_I_L               
VIDEO_MPEG2_PROG               
VIDEO_MPEG2_TFF               
VIDEO_MPEG2_BFF               


Author:  esurfer [ Sun Jul 02, 2006 4:22 pm ]
Post subject: 

I downloaded and installed the Full K-Lite Codec Pack. That fixed my problem. The audio levels are really low though. How do I transcode so that the audio levels are higher?

Thanks for you contribution!

esurfer

Author:  spalVl [ Mon Jul 03, 2006 8:08 am ]
Post subject: 

esurfer wrote:
I downloaded and installed the Full K-Lite Codec Pack. That fixed my problem. The audio levels are really low though. How do I transcode so that the audio levels are higher?


Hmm, Glad you got it playing but just the core XviD codecs should work if is encoded in XviD. I am going to have to play with some Windows boxes to see if can figure that out.

Not sure on the audio levels, from what I researched ffmpeg encoding volume is set by source recording. What tuner card are you recording from?

Author:  esurfer [ Tue Jul 04, 2006 12:53 pm ]
Post subject: 

I'm using a PVR 350

Author:  cjd1 [ Wed Jul 05, 2006 7:25 am ]
Post subject: 

I too had problems playing recordings in WMP. A better fix was to install VLC (www.videolan.org). It is much more customizable than WMP, especially in using keys for various functions.

Author:  mythtester [ Sat Jul 08, 2006 2:35 am ]
Post subject: 

Great guide.
Thanks.
I corrected a couple of typos on the wiki that were referencing the old ipod information.
Hope it's okay.
________
SATIVA STRAINS

Author:  spalVl [ Sat Jul 08, 2006 5:58 am ]
Post subject: 

I have recreated the problem with no video only audio as discussed on this thread using an XP PC with just XviD codecs installed.
Other XviD encoded vidoes that were created using the DVD import function play fine.
It appears something is getting written using an additional codec using myth2xvid, I tried chaning interlace/denoise/resolution/crop setting with no effect. Next step is to mess with trying the transcode options rather than using default ffmpeg.

Author:  spalVl [ Sat Jul 08, 2006 2:36 pm ]
Post subject: 

Quote:
I'm experiencing the same issue as esurfer. XviD is installed, other XviD files play without issue, but encoded shows play audio without video. I've tried Media Player Classic and Windows Media Player.


Ok, Got this issue figured out. Apparently something in ffmpeg when using nuvexport is creating a video with non standard XviD codec.

I changed the nuvexport command line to
Code:
 my $nuvoptions ="--transcode --mode=XviD --nice=19 --cutlist --nodenoise --nodeinterlace --crop --multipass";


The resulting video is now playable on a Windows PC with only XviD codecs installed. From what I read the transcode option tells nuvexport to use transcode engine over the default of ffmpeg.

2 Good resources on Nuvexport, encoding time, and size quality differences in formats.

http://www.inaudible.co.uk/nuvexport/in ... tNuvexport
http://www.linuxjournal.com/article/8524

The time for me is increased using --transcode to 10 min versus 7 min using ffmpeg on a PIII 700 for 1min clip.

Considering if I should change the howto around to utilize –transcode option.

If using transcode can eliminated steps 1-9 to update ffmpeg, resulting video is playable using standard XviD codec, but is slower to encode. (1 above link mentions hack for dual core chips that could speed up) Currently will average 5 hours for 30min video on my PIII 700.

If continue to use ffmpeg resulting video requires “extra” codecs or VLC player but is faster to encode. Currently will average 3.5 hours for 30min video on my PIII 700.

I also changed the –nodeinterlace line, according to above resources doesn’t overly help on SD recording.

Page 1 of 5 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/