2009-02-03, 09:27 AM
I used to use mencoder to encode my videos using a custom batch file run from GB-PVR using the command below in the config.XML file:-
I have the latest binary of FFMPEG installed and use the batch file encodeFromGBPVR.bat to encode each file separately. It also uses a nifty VBScript file to get the width and height etc of the video and choose the resolution it needs to be at automatically (because the Pixel Aspect Ratio setting embedded into MPEG files doesn't transfer well into AVI files).
This works brilliantly on about half the files but fails on others. I'm not sure if this is just because the MPEG files are damaged or because I've done something strange in my batch file. I would be really grateful if someone could have a look at the files I've attached and give me some advice. I really thought I'd cracked the niggles I had with the GB-PVR encoding with this! I've tried using the libxvid vcodec option as well as mpeg4 with no improvements.
I use AVIDEMUX to reindex the file as that's the software I use to cut out adverts etc afterwards and it doesn't like the indexes that FFMPEG/Mencoder create. This can't be part of the problem though as the AVI files that are created are screwed up before being read by AVIDEMUX. GSpot cannot read the AVI headers on the files.
When I run FFMPEG -i on the output AVI file I get:-
I'm sure there are some people who would find the batch and VBScript files useful too. If anyone wants to use them or steal bits of code please do.
Any comments at all would be gratefully received!
Thanks
Andy
PS I know the video I'm encoding is sad. It's for my gfriend!
Code:
<Conversion name="Xvid_New" exe="encodeFromGBPVR.bat" cmd="{SOURCE_FILE}" targetExtension=".avi" />
This works brilliantly on about half the files but fails on others. I'm not sure if this is just because the MPEG files are damaged or because I've done something strange in my batch file. I would be really grateful if someone could have a look at the files I've attached and give me some advice. I really thought I'd cracked the niggles I had with the GB-PVR encoding with this! I've tried using the libxvid vcodec option as well as mpeg4 with no improvements.
I use AVIDEMUX to reindex the file as that's the software I use to cut out adverts etc afterwards and it doesn't like the indexes that FFMPEG/Mencoder create. This can't be part of the problem though as the AVI files that are created are screwed up before being read by AVIDEMUX. GSpot cannot read the AVI headers on the files.
When I run FFMPEG -i on the output AVI file I get:-
Code:
FFmpeg version SVN-r16596-Sherpya, Copyright (c) 2000-2009 Fabrice Bellard, et al.
libavutil 49.12. 0 / 49.12. 0
libavcodec 52.10. 0 / 52.10. 0
libavformat 52.23. 1 / 52.23. 1
libavdevice 52. 1. 0 / 52. 1. 0
libavfilter 0. 2. 0 / 0. 2. 0
libswscale 0. 6. 1 / 0. 6. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Jan 14 2009 07:24:48, gcc: 4.2.5 20080919 (prerelease) [Sherpya]
Input #0, avi, from 'G:\GB-PVR\_Recordings\Claire Sweeneys Big Fat Diet\Claire S
weeneys Big Fat Diet_20090106_21002200_New.avi':
Duration: 00:00:00.00, start: 0.000000, bitrate: -2147483 kb/s
Stream #0.0: Video: mpeg4, yuv420p, 1024x576 [PAR 1:1 DAR 16:9], 25.00 tb(r)
Stream #0.1: Audio: mp3, 48000 Hz, stereo, s16, 128 kb/s
At least one output file must be specified
I'm sure there are some people who would find the batch and VBScript files useful too. If anyone wants to use them or steal bits of code please do.
Any comments at all would be gratefully received!
Thanks
Andy
PS I know the video I'm encoding is sad. It's for my gfriend!