Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Buadhai

macrumors 65816
Original poster
Jan 15, 2018
1,043
402
Korat, Thailand
Here's the file: https://www.mgnewman.com/fileh264.mp4

If you just play this on Safari, it starts out and sticks on a frame that's actually near the end of the file. If you click on the video timeline, it may start playing normally. Quicktime player has the same problem as do Chrome and Firefox.

However, VLC can play it just fine; either as a local file or as a URL.

The video was built on a Raspberry Pi using Gstreamer. I have posted the Gstreamer code below as well as what Media Info has to say about the file. I'm sure I made a mistake somewhere, but I've tried many combinations and can't figure out what I've done:

Code:
gst-launch-1.0 multifilesrc location="$mfslocation" caps="image/jpeg,framerate=10/1" !\
jpegdec ! omxh264enc ! video/x-h264,stream-format=byte-stream,profile=high !\ 
h264parse  ! mp4mux  ! filesink location="$testlocation"

Where mfslocation is: image_%03d.jpg, and
testlocation is: fileh264.mp4

Media Info:

Code:
General
Complete name                            : /Users/mnewman/Desktop/fileh264.mp4
Format                                   : MPEG-4
Format profile                           : Base Media / Version 2
Codec ID                                 : mp42 (mp42/mp41/isom/iso2)
File size                                : 1.26 MiB
Duration                                 : 13s 800ms
Overall bit rate                         : 764 Kbps
Encoded date                             : UTC 2019-10-08 06:27:15
Tagged date                              : UTC 2019-10-08 06:27:15

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4
Format settings                          : CABAC / 1 Ref Frames
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 1 frame
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 13s 800ms
Bit rate                                 : 763 Kbps
Maximum bit rate                         : 3 284 Kbps
Width                                    : 640 pixels
Height                                   : 480 pixels
Display aspect ratio                     : 4:3
Frame rate mode                          : Constant
Frame rate                               : 10.000 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.248
Stream size                              : 1.25 MiB (100%)
Language                                 : English
Encoded date                             : UTC 2019-10-08 06:27:15
Tagged date                              : UTC 2019-10-08 06:27:15
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.