With help from other suggested solutions, I compared an older system that I have that was working well. The working system is one that started out as Ubuntu 14.04 and was upgraded to 16.04 and ultimately to 18.04, while the system that would not play movie audio without skipping (2-3 seconds on 2-3 seconds off – over and over) was a clean install of Ubuntu 18.04.
Having the two systems to compare and contrast was a great troubleshooting aid and when I compared the results of the command “mplayer -identify -frames 0 {name-of-m4-file.mp4}” the thing that jumped out at me was a reference to libavcodec shown below:
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 57.107.100 (external)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
I searched and found the following information and this is what corrected my problem:
How To Install libavcodec-dev
Package on Ubuntu Detailed Instructions:
- Run update command to update package repositories and get latest package information.
sudo apt-get update -y
- Run the install command with -y flag to quickly install the packages and dependencies.
sudo apt-get install -y libavcodec-dev
- Check the system logs to confirm that there are no related errors.
This corrected my skipping audio problems temporarily but the real solution for me was found at https://ubuntuforums.org/showthread.php?t=766860&p=4816308#post4816308