Hello, On Mon, 14 Nov 2016, jdd wrote:
I have to convert to html5 (mp4) a lot of videos from various cameras. I use a script and handbrake [..] http://dodin.info/wiki/pmwiki.php?n=Doc.UsingHtml5
but the result is the same using the handbrake gui and default setups.
* the original video is the "avi" file. * the m4v file is from handbrake * the mp4 file is from ffmpeg
ffmpeg -i Photo_117.avi -aspect 16:9 -b:v 6000k Photo_117.mp4
result, for some files (not all, far from it):
* with VLC or mplayer, the m4v file have an image but no sound * with VLC, the mp4 file have sound but no image!! with mplayer this file plays fine
but my goal is to have files playing in any html5 browser. I usually have no such problem
http://dodin.info/piwigo/picture.php?/115371-20160710_rocamadour/category/61...
the example files:
http://dodin.org/owncloud/index.php/s/DwxNUSQzejjJUHO
any idea of what is the source problem??
thanks jdd
$ mencoder \ -oac mp3lame -lameopts aq=2:vbr=4 -af resample=44100:0:0 \ -ovc x264 -x264encopts crf=23:trellis=1:nr=750:threads=1 \ -o Photo_117_x264_mp3.avi Photo_117.avi $ ffmpeg -i Photo_117_x264_mp3.avi \ -acodec copy -vcodec copy \ Photo_117_x264_mp3.mp4 I guess you could do it directly with ffmpeg, but I don't the audio-resampling is crucial! Ah, I guess I've done it: ffmpeg -i Photo_117.avi -acodec mp3 -ar 44100 -ac 2 \ -vcodec h264 -q:v 23 Photo_117_x264_mp3_ffmpeg_q23.mp4 This gives me video-decoding trouble (even remuxed into a mkv, which often helps) with an older mplayer though, while the above (with the older mencoder) does not. My oldish seamonkey does play it fine though, with the some colour errors. Anyway: I think the audio-resampling is crucial! Your clip is MJPEG + mono PCM @ 11024Hz... Ah, yes, and it works too with HandBrake if you resample the audio: Audio -> Advanced -> Sample Rate: 44.1 / Mono Mail me via PM if you want my sample encodes / configs / commandlines (I can't tell what's what with HandBrake ;) HTH, -dnh -- "Awooga! Awooga! Someone put my clothes back on!" -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org