Lonefish
Posts: 7
Joined: Wed Dec 16, 2015 4:12 pm

Stuttering playback of .mp4 files in the first 10 seconds.

Tue Dec 22, 2015 8:37 am

I have Raspbian Jessie with the Adafruit Video Looper installed. It uses a special implementation of OMXPlayer that helps with shorter looptimes. So I can't say I'm using the latest OMXPlayer. (Thought 40-something commits behind master) Also using a class 10 card.

The issue I have is that with a certain MP4 file, whenever I start playing it, it stutters in the first 10 seconds, and then plays fine for the next 4 minutes (the full length of the file), then loops and at the start it stutters again. Since this is used as a Mediaplayer for displays on expo's, it's not really pretty.

The weird part is, the original video, which is a lot bigger, plays fine. Both are .mp4 files

Zhe numbers:
Stuttering video:
1920*1080
Bitrate: 2669kbps
Frames: 25fps

Works fine:
1920*1080
Bitrate: 19492kbps
Frames: 29fps
Is there any way that I can check on what's the bottleneck or why it does what it does? The issue is 'solved' in this case by using another video, but it should be as versatile as possible, or I should at least have to know what causes it.. Since the bitrate is clearly not the issue here..

I tried with outputting the stats while playing, but I don't even understand half of it..

The idea of the videolooper is to play the files from a USB-stick, but tried both. From the stick, from the sd, with the videolooper starting on boot, omxplayer from commandline,...

GPU Split is 512/512, but behaves the same as in the default case

User avatar
RaTTuS
Posts: 10563
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Stuttering playback of .mp4 files in the first 10 second

Tue Dec 22, 2015 8:46 am

is it really an MP4 ? encoded as h264 ?
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

Lonefish
Posts: 7
Joined: Wed Dec 16, 2015 4:12 pm

Re: Stuttering playback of .mp4 files in the first 10 second

Tue Dec 22, 2015 8:57 am

Code: Select all

  Metadata:
    major_brand     : mp42
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    creation_time   : 2015-12-08 14:55:47
    encoder         : HandBrake 0.10.2 2015061100
  Duration: 00:04:34.20, start: 0.000000, bitrate: 2674 kb/s
    Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 2668 kb/s, 25 fps, 25 tbr, 90k tbn, 180k tbc (default)
    Metadata:
      creation_time   : 2015-12-08 14:55:47
      handler_name    : VideoHandler
    Stream #0:1(nld): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 2 kb/s (default)
    Metadata:
      creation_time   : 2015-12-08 14:55:47
      handler_name    : Stereo

This is my output for --info on omxplayer, so yes, I think it is an MP4? Otherwise it wouldn't play, no?

VLC codec output:

Code: Select all

Stream 0
Codec: H264 - MPEG-4 AVC (part 10) (avc1)
Coded format: Planar 4:2:0 YUV

Lonefish
Posts: 7
Joined: Wed Dec 16, 2015 4:12 pm

Re: Stuttering playback of .mp4 files in the first 10 second

Mon Jan 04, 2016 7:44 am

Nobody with any clues?

KoPim
Posts: 2
Joined: Sun Feb 14, 2016 8:54 am

Re: Stuttering playback of .mp4 files in the first 10 second

Sun Feb 14, 2016 9:04 am

Is your data carrier a USB drive, formatted in NTFS?
If so, your issue could be similar to the issue I had (strong audio distortion only in the first few seconds, whereas the video part played ok).
After that, I formatted my USB drive in Ext4. Issue was gone.
Transferring files from my Windows PC to the drive is still possible, using my home network.

Return to “Graphics, sound and multimedia”