[opensuse] odd video format
hello, 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 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2016-11-14 11:38, jdd wrote:
any idea of what is the source problem??
There is something strange with the sound on the original avi file: it is terribly high on xine, with the volume control all the way down it still plays high. With VLC this doesn't happen. Conversion with handbrake efectively looses the sound. I think this also happened to me with another video some days ago, so it may be a bug in the current packman release. The conversion with ffmpeg with your command line has broken video in xine. With vlc i get correct audio and video. Similarly the conversion to mkv, no parameters. And very slow. cer@Telcontar:~/tmp/jdd> ls -ltr total 70756 -rw-r--r-- 1 cer users 45914076 Nov 14 20:57 Photo_117.avi -rw-r--r-- 1 cer users 2825254 Nov 14 21:04 No Title Found.mp4 -rw-r--r-- 1 cer users 21360859 Nov 14 21:11 Photo_117.mp4 -rw-r--r-- 1 cer users 2345783 Nov 14 21:25 Photo_117.mkv On Handbrake, audio list tab, there are no tracks. cer@Telcontar:~/tmp/jdd> ffmpeg -i Photo_117.avi Photo_117.mkv ffmpeg version 3.0.2 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 4.8 (SUSE Linux) configuration: ... WARNING: library configuration mismatch ... [mjpeg @ 0x1c1dc60] Changing bps to 8 Guessed Channel Layout for Input Stream #0.1 : mono Input #0, avi, from 'Photo_117.avi': Metadata: creation_time : 2009-07-09 04:03:16 Duration: 00:00:56.00, start: 0.000000, bitrate: 6559 kb/s Stream #0:0: Video: mjpeg (MJPG / 0x47504A4D), yuvj422p(pc, bt470bg/unknown/unknown), 640x480, 6467 kb/s, 30 fps, 30 tbr, 30 tbn, 30 tbc Metadata: ImageDescription: 100-0433 Make : FUJIFILM Model : FinePix J110W DateTime : 2009:07:09 04:03:15 JPEGInterchangeFormat: 472 JPEGInterchangeFormatLength: 7111 Copyright : DateTimeOriginal: 2009:07:09 04:03:15 MakerNote : : 70, 85, 74, 73, 70, 73, 76, 77, 12, 0, 0, 0, 16, 0, 0, 0 : 7, 0, 4, 0, 0, 0, 48, 49, 51, 48, 16, 0, 2, 0, 31, 0 : 0, 0, 210, 0, 0, 0, 0, 16, 2, 0, 7, 0, 0, 0, 241, 0 : 0, 0, 1, 16, 3, 0, 1, 0, 0, 0, 3, 0, 0, 0, 2, 16 : 3, 0, 1, 0, 0, 0, 0, 0, 0, 0, 16, 16, 3, 0, 1, 0 : 0, 0, 2, 0, 0, 0, 17, 16, 10, 0, 1, 0, 0, 0, 248, 0 : 0, 0, 32, 16, 3, 0, 1, 0, 0, 0, 0, 0, 0, 0, 33, 16 : 3, 0, 1, 0, 0, 0, 0, 0, 0, 0, 48, 16, 3, 0, 1, 0 : 0, 0, 0, 0, 0, 0, 49, 16, 3, 0, 1, 0, 0, 0, 0, 0 : 0, 0, 0, 17, 3, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 18 : 3, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 19, 3, 0, 1, 0 : 0, 0, 0, 0, 0, 0, 1, 19, 3, 0, 1, 0, 0, 0, 0, 0 : 0, 0, 2, 19, 3, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 : 0, 0, 52, 56, 51, 49, 51, 53, 51, 53, 53, 55, 50, 48, 48, 56 : 48, 57, 50, 52, 66, 48, 55, 53, 56, 71, 76, 53, 50, 55, 55, 52 : 0, 78, 79, 82, 77, 65, 76, 0, 0, 0, 0, 0, 1, 0, 0, 0 title : FUJIFILM AVI STREAM 0100 Stream #0:1: Audio: pcm_u8 ([1][0][0][0] / 0x0001), 11024 Hz, 1 channels, u8, 88 kb/s [swscaler @ 0x1c53500] deprecated pixel format used, make sure you did set range correctly [libvpx-vp9 @ 0x1c39aa0] v1.6.0 [libopus @ 0x1c3b160] No bit rate set. Defaulting to 64000 bps. Output #0, matroska, to 'Photo_117.mkv': Metadata: encoder : Lavf57.25.100 Stream #0:0: Video: vp9 (libvpx-vp9) (VP90 / 0x30395056), yuv422p, 640x480, q=-1--1, 200 kb/s, 30 fps, 1k tbn, 30 tbc Metadata: ImageDescription: 100-0433 Make : FUJIFILM Model : FinePix J110W DateTime : 2009:07:09 04:03:15 JPEGInterchangeFormat: 472 JPEGInterchangeFormatLength: 7111 Copyright : DateTimeOriginal: 2009:07:09 04:03:15 MakerNote : : 70, 85, 74, 73, 70, 73, 76, 77, 12, 0, 0, 0, 16, 0, 0, 0 : 7, 0, 4, 0, 0, 0, 48, 49, 51, 48, 16, 0, 2, 0, 31, 0 : 0, 0, 210, 0, 0, 0, 0, 16, 2, 0, 7, 0, 0, 0, 241, 0 : 0, 0, 1, 16, 3, 0, 1, 0, 0, 0, 3, 0, 0, 0, 2, 16 : 3, 0, 1, 0, 0, 0, 0, 0, 0, 0, 16, 16, 3, 0, 1, 0 : 0, 0, 2, 0, 0, 0, 17, 16, 10, 0, 1, 0, 0, 0, 248, 0 : 0, 0, 32, 16, 3, 0, 1, 0, 0, 0, 0, 0, 0, 0, 33, 16 : 3, 0, 1, 0, 0, 0, 0, 0, 0, 0, 48, 16, 3, 0, 1, 0 : 0, 0, 0, 0, 0, 0, 49, 16, 3, 0, 1, 0, 0, 0, 0, 0 : 0, 0, 0, 17, 3, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 18 : 3, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 19, 3, 0, 1, 0 : 0, 0, 0, 0, 0, 0, 1, 19, 3, 0, 1, 0, 0, 0, 0, 0 : 0, 0, 2, 19, 3, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 : 0, 0, 52, 56, 51, 49, 51, 53, 51, 53, 53, 55, 50, 48, 48, 56 : 48, 57, 50, 52, 66, 48, 55, 53, 56, 71, 76, 53, 50, 55, 55, 52 : 0, 78, 79, 82, 77, 65, 76, 0, 0, 0, 0, 0, 1, 0, 0, 0 title : FUJIFILM AVI STREAM 0100 encoder : Lavc57.24.102 libvpx-vp9 Side data: unknown side data type 10 (24 bytes) Stream #0:1: Audio: opus (libopus) ([255][255][255][255] / 0xFFFFFFFF), 12000 Hz, mono, s16, 64 kb/s Metadata: encoder : Lavc57.24.102 libopus Stream mapping: Stream #0:0 -> #0:0 (mjpeg (native) -> vp9 (libvpx-vp9)) Stream #0:1 -> #0:1 (pcm_u8 (native) -> opus (libopus)) Press [q] to stop, [?] for help frame= 1680 fps=2.0 q=0.0 Lsize= 2291kB time=00:00:56.01 bitrate= 335.0kbits/s speed=0.0665x video:1828kB audio:429kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.480296% [1]+ Done HandBrakeGUI Photo_117.avi cer@Telcontar:~/tmp/jdd> -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
Le 14/11/2016 à 21:32, Carlos E. R. a écrit :
Conversion with handbrake efectively looses the sound. I think this also happened to me with another video some days ago, so it may be a bug in the current packman release.
probably not. I don't had the time to test nightly build, but this forum https://forum.handbrake.fr/viewtopic.php?f=13&t=35303&sid=3d6687aea45f6709c390778f244c5343 seems to say it's a hanbrake bug I - sort of - solve the problem making first a ffmpeg conversion them the hanbrake one I added the script to the bug folder: http://dodin.org/owncloud/index.php/s/DwxNUSQzejjJUHO but it's a bad hack for many reasons jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2016-11-14 22:38, jdd wrote:
Le 14/11/2016 à 21:32, Carlos E. R. a écrit :
Conversion with handbrake efectively looses the sound. I think this also happened to me with another video some days ago, so it may be a bug in the current packman release.
probably not. I don't had the time to test nightly build, but this forum
https://forum.handbrake.fr/viewtopic.php?f=13&t=35303&sid=3d6687aea45f6709c390778f244c5343
seems to say it's a hanbrake bug
Ah. I had problems last week trying to convert from a camera. Similar problem, now that I notice. Did they give any expectancy on solving? Huh, no, the thread you linked doesn't give any hope.
I - sort of - solve the problem making first a ffmpeg conversion them the hanbrake one
I added the script to the bug folder:
http://dodin.org/owncloud/index.php/s/DwxNUSQzejjJUHO
but it's a bad hack for many reasons
Indeed. Maybe a direct conversion using only ffmpeg? -- Cheers/Saludos Carlos E. R. (testing openSUSE Leap 42.2, at Minas-Anor) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
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
Le 16/11/2016 à 04:26, David Haller a écrit :
Anyway: I think the audio-resampling is crucial! Your clip is MJPEG + mono PCM @ 11024Hz...
my need is to get a mp4 able to be read in any browser, and alas this is not trivial, and difficult to test (for example, I have no Apple device)
Ah, yes, and it works too with HandBrake if you resample the audio: Audio -> Advanced -> Sample Rate: 44.1 / Mono
good, thanks, I will try this
Mail me via PM if you want my sample encodes / configs / commandlines (I can't tell what's what with HandBrake ;)
look at the logs: view/activity windows thanks jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 16/11/2016 à 04:26, David Haller a écrit :
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
how do you find audio in handbrake? mine is 0.10.5 (x86_64) and I find no newer hanbrake for Leap 42.1 I have no "advanced audio", only "audio default" and "audio list", and audio list is empty, my handbrake can't read it logs say: Stream #0:1: Audio: pcm_u8 ([1][0][0][0] / 0x0001), 11024 Hz, 1 channels, u8, 88 kb/s(...) [08:06:17] scan: removing audio 0x1 because no bitrate found "ffmpeg -i Photo_117.avi -acodec mp3 -ar 44100 -ac 2 \ -vcodec h264 -q:v 23 Photo_117_x264_mp3_ffmpeg_q23.mp4" don't give VLC readable video at home :-( by the way, kdenlive is able to render the clip properly, I added to the shared folder the "script" kdenlive logs no idea how to really script this, these logs are not understandable by me thanks jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Hello, On Wed, 16 Nov 2016, jdd wrote:
Le 16/11/2016 à 04:26, David Haller a écrit :
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
how do you find audio in handbrake? mine is
0.10.5 (x86_64)
Ah, I used 0.9.9.
and I find no newer hanbrake for Leap 42.1 I have no "advanced audio", only "audio default" and "audio list", and audio list is empty, my handbrake can't read it
logs say:
Stream #0:1: Audio: pcm_u8 ([1][0][0][0] / 0x0001), 11024 Hz, 1 channels, u8, 88 kb/s(...) [08:06:17] scan: removing audio 0x1 because no bitrate found
Same here with 0.10.5 ;(
"ffmpeg -i Photo_117.avi -acodec mp3 -ar 44100 -ac 2 \ -vcodec h264 -q:v 23 Photo_117_x264_mp3_ffmpeg_q23.mp4"
don't give VLC readable video at home :-(
Just tried that again with ffmpeg-2.8.8 and vlc-2.2.4/vlc-2.0.8 and it works nicely. First try was with ffmpeg-2.8.4. Have you tried the mencoder variant? HTH, -dnh -- Well, merry frelling christmas! -- Aeryn Sun, Farscape - 4x13 - Terra Firma -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 18/11/2016 à 16:22, David Haller a écrit :
Just tried that again with ffmpeg-2.8.8 and vlc-2.2.4/vlc-2.0.8 and it works nicely. First try was with ffmpeg-2.8.4.
the ffmpeg I have on Leap 42.1 right now is -> ffmpeg ffmpeg version 3.1.5 Copyright (c) 2000-2016 the FFmpeg developers
Have you tried the mencoder variant?
no, but kdenlive works perfectly and I used it https://forum.handbrake.fr/viewtopic.php?f=13&t=35303 http://dodin.org/owncloud/index.php/s/DwxNUSQzejjJUHO thanks jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (3)
-
Carlos E. R.
-
David Haller
-
jdd