Log in

View Full Version : Wierd problem with HD 1080p video and FFMPEG and MP4Box (gpac)


expresspotato
14th June 2010, 18:20
Hi,

This problem is hard to explain and harder to identify where the culprit actually is.

When encoding from a 1080p source for some reason I cannot get the video to stream properly. This is AFTER upgrading both ffmpeg and libx264.

MP4Box version:

0.4.5 (build 33)


FFMPEG version details:

FFmpeg version SVN-r23601, Copyright (c) 2000-2010 the FFmpeg developers
built on Jun 14 2010 06:48:14 with gcc 4.4.3 20100127 (Red Hat 4.4.3-4)
configuration: --enable-gpl --enable-pthreads --enable-libmp3lame --enable-libvorbis --enable-shared --enable-libx264 --enable-libfaac --enable-nonfree --disable-ffplay
libavutil 50.19. 0 / 50.19. 0
libavcodec 52.76. 0 / 52.76. 0
libavformat 52.68. 0 / 52.68. 0
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 1.20. 0 / 1.20. 0
libswscale 0.11. 0 / 0.11. 0
FFmpeg SVN-r23601
libavutil 50.19. 0 / 50.19. 0
libavcodec 52.76. 0 / 52.76. 0
libavformat 52.68. 0 / 52.68. 0
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 1.20. 0 / 1.20. 0


Libx264 (from SVN):

x264 0.98.1643M 0cd5d69
built on Jun 14 2010, gcc: 4.4.3 20100127 (Red Hat 4.4.3-4)


For some reason encoding 1080p produces a stream that cannot be played by Longtail's JWPlayer. If I quit the encoding process prior to completion (then hint) it will play fine. For some reason or another, when the length exceeds oh say 30-50 minutes (or completes the encode, not sure) the video simply does not play. Lengthy SD or 720p video does not seem to suffer from this issue.

It really feels like the video / hinting track are corrupted and the player does not know when to start / stop reading the hinting track.

Really clueless on why this is occurring. Direct links can be provided via PM if needed.

AlekseiV
14th June 2010, 21:14
For some reason or another, when the length exceeds oh say 30-50 minutes (or completes the encode, not sure) the video simply does not play. Lengthy SD or 720p video does not seem to suffer from this issue.Does not play in JWPlayer?
Have you tried hitting play three times?

expresspotato
14th June 2010, 22:40
Does not play in JWPlayer?
Have you tried hitting play three times?

I have tried hitting play and stop a few times, but not three times sequentially. Even tried older versions of JWPlayer to see if it was the recent upgrade to 5.2 from 5.1. 4.5, 4.6 and 4.7 were also tried.

Will try when this encode finishes (58 mins to go). Stopped it at 80% just to be sure and yes it played as usual. Increased the sleep interval between ffmpeg returning to shell MP4Box picking up to hint it, but I shouldn't have to have any delay to begin with.

Oh, forgot to mention the underlying OS (Fedora 12 up to date).

Very odd indeed. Will reply asap.

expresspotato
15th June 2010, 03:58
Yeah the latest encode still has this problem. Anybody know of why?

Edit: Pressing play three consecutive times had no effect.

Edit 2: Seems after 90% (or about 60 mins of encoded video) it does not play. Tested on two different 1080p sources now.

Edit 3: Reducing the output size from 1920x1080 to 1280x720 had no effect.

Edit 4: Both are Mpeg2TS and are being deinterlaced via FFMPEG. Shouldn't be a problem but at this point... Uhh. Time to wait another 4 hours.

expresspotato
3rd July 2010, 05:58
This seems to be still happening. Some videos produced by ffmpeg then hinted by MP4Box are simply unplayable in JWPlayer.