I am running a debian 7.5 machine with ffmpeg-2.2 installed after these instructions
Problem
I am trying to display mp4 video inside my browser. The source file is in the AVI container format. I can successfully convert it to mp4, and the target file is readable (video + sound) using the totem player. So I thought everything would be OK, showing the next page
HTML5 webpage
<!DOCTYPE html><html>
<head>
<title>Webcam</title>
</head>
<body>
<video width="640" height="480" controls>
<source src="/path/to/output.mp4" type="video/mp4">
<h3>Your browser does not support the video tag</h3>
</video>
</body></html>
Input probe
$ ffprobe -show_streams input.avi
Duration: 00:08:22.90, start: 0.000000, bitrate: 1943 kb/s
Stream #0:0: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16p, 64 kb/s
Stream #0:1: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 720x540 [SAR 1:1 DAR 4:3], 1870 kb/s, 29.97 fps, 25 tbr, 29.97 tbn, 25 tbc
Convert
$ ffmpeg -y -fflags + genpts -i input.avi -acodec copy -vcodec copy ouput.mp4
HTML browser
Opening the above html file is played, but the video is not displayed.
When I use other .mp4 files, the video is displayed successfully, so I'm sure I ran into a conversion problem.
: ffmpeg, .
?
.