Hi Folks,
I've got a command that works for "Many" videos (pre-recorded, haven't done any live transcoding). This is using a recent VLC nightly build, btw.
/Applications/VLC.app/Contents/MacOS/VLC -vvv -I dummy "/Users/[..snip..]/Movies/History of House.mp4" --sout="#transcode{width=160,canvas-height=120,vcodec=h264,samplerate=44100,vb=64,fps=15,acodec=mp3,ab=64}:standard{access=file,mux=ts,dst='-'}" | segmenter .... etc.
So here's what I've found...
I'm using the open source "segmenter" based on ffmpeg (same one that this is based on:
http://www.ioncannon.net/programming/45 ... segmenter/ )
I've got this working fine actually, except that the last segment appears to be corrupted so the video doesn't finish playing. This is something that might be able to be fixed by the segmenter itself, but is probably due to a difference in the mpegts stream from VLC vs. ffmpeg, because...
this command (using ffmpeg on the same video) DOES work, all the way to the end
/opt/local/bin/ffmpeg -i "/Users/[..snip..]/Movies/History of House.mp4" -acodec libmp3lame -vcodec libx264 -f mpegts -ab 64kb -b 128kb -s 320x192 - | segmenter ...
Btw, I've used identical width/height for both and there is no difference, I just had this one ready to paste...
So the creator of the ffmpeg dependent segmenter had a patch to the mpegts muxer that was accepted into ffmpeg to fix a bug that caused it not to work right. I know vlc uses ffmpeg, but I'm not sure if it's always the latest from head and I'm not sure if the mpegts muxer in vlc is actually ffmpeg's or VLC's own. I'd really like to get it working on ALL videos that VLC can play, and I'd also like to figure out what's going wrong with the last segment not converting right.