View Single Post
  #6 (permalink)  
Old 25-Jun-2009, 10:50
oldcpu's Avatar
oldcpu oldcpu is online now
Global Moderator
 
Join Date: Mar 2008
Location: Europe
Posts: 10,743
oldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of light
Default Re: process multiple files from one command line??

Quote:
Originally Posted by microchip8 View Post
xvidenc/h264enc/divxenc can do directory batch encodings (choose as input type "dir") and since you're already an xvidenc & h264enc user, I recommend you try it. In batch mode, it will encode all files from the directory you give it with the settings you choose applied to all files
My Canon HF S10 camcorder is brand new, and at its top resolution/bit rate, it produces 1920x1080 @ 25MB/sec. I acquired the camcorder only a couple of weeks before my leaving on vacation, and I had a couple of business trips also during those two weeks prior to leaving on vacation. This meant I was not able to test its output files with much software.

I did try the raw .mts files with the h264enc and xvidenc scripts, and for some reason they can not handle the format for encoding. Possibly a Packman packaged mplayer/mencoder limitation? I can only "play" the files with mplayer if I specify the frame rate. ie I can get both audio and video with:
Code:
mplayer 00017.mts -fps 25
but
Code:
mplayer 00017.mts
does not play any video (only audio plays if fps is not specified).

Some of the h264enc errors look like this .... (using: "h264enc -2p -p uhq" ) after the first pass:
Code:
Flushing video frames.
Writing index...
Writing header...
ODML: vprp aspect is 16:9.

Video stream:      nan kbit/s  (-2147483648 B/s)  size: 0 bytes  0.000 secs  215 frames

Audio stream:  139.609 kbit/s  (17451 B/s)  size: 8935 bytes  0.512 secs
x264 [info]: final ratefactor: 14.09
... and after the second pass:
Code:
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================

Skipping frame!
VDec: vo config request - 1920 x 1080 (preferred colorspace: Planar YV12)
VDec: using Planar I420 as output csp (no 1)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
SwScaler: reducing / aligning filtersize 31 -> 16
SwScaler: reducing / aligning filtersize 31 -> 16
SwScaler: reducing / aligning filtersize 31 -> 14
SwScaler: reducing / aligning filtersize 31 -> 14
[swscaler @ 0x886caa0]Bicubic spline scaler, from yuv420p to yuv420p using MMX2
[swscaler @ 0x886caa0]using n-tap MMX scaler for horizontal luminance scaling
[swscaler @ 0x886caa0]using n-tap MMX scaler for horizontal chrominance scaling
[swscaler @ 0x886caa0]using n-tap MMX scaler for vertical scaling (YV12 like)
[swscaler @ 0x886caa0]1920x1080 -> 1280x720
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64
x264 [error]: empty stats file
x264_encoder_open failed.
FATAL: Cannot initialize video driver.

Exiting...
-> MEncoder has exited with a non-zero value!
-> Exiting in function: mencoder_exit()
h264enc DOES work with files of lower resolution/bit rate.

My apologies for not mentioning this to you earlier, .... But with my upcoming vacation, business trips, and all sorts of things to do on the home/family front, I did not want to "impose" on you by bring it up as I was not clear on my available time to support iterative testing.

Fortunately the packman packaged ffmpeg CAN handle the format.

I probably need to post a sample raw .mts file (from my Camcorder) on the web, for you to download and check out (in case you are curious). It would be neat if your scripts could handle the raw Canon HF S10 video format, but again, I do not want to impose ...
Reply With Quote