LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-29-2017, 07:11 PM   #1
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 2,034

Rep: Reputation: 176Reputation: 176
Great video but no audio on .mp4 files


The video is great but there is absolutely no sound in the .mp4 files I'm downloading. I'm running Xubuntu 16.04LTS and have played them in VLC, Parole, and Videos. All have perfect video but no audio. I've checked that the sound is at 100% and that the mute button isn't clicked.

Any ideas? Thanks.
 
Old 04-29-2017, 07:35 PM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
How are you downloading them? Can you give an example mp4 on the net that you're having problems with?

Are you getting sound out of your machine otherwise?
 
1 members found this post helpful.
Old 04-29-2017, 07:40 PM   #3
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Got handbrake ? you could try re-sampling one of them and change the audio defaults add one and change its out put to a different encoder.
 
1 members found this post helpful.
Old 04-30-2017, 01:22 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
i will venture a guess that they have sound, but it doesn't playback.

do you have sound at all?

how are the videos encoded?

open them with mplayer or mpv, and post the terminal output.

btw, you've been here long enough to know that you should have provided more info in your OP.
 
1 members found this post helpful.
Old 04-30-2017, 09:25 AM   #5
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,111
Blog Entries: 21

Rep: Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474
Default sound chip setting probably. In VLC settings. Or Pulse Audio. Google should take it from there.
 
1 members found this post helpful.
Old 04-30-2017, 11:38 AM   #6
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 2,034

Original Poster
Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by hydrurga View Post
How are you downloading them? Can you give an example mp4 on the net that you're having problems with?

Are you getting sound out of your machine otherwise?
Thanks hydrurga. I got the .mp4 (I'm having problems with all .mp4s though) from Pexels. Here's the link:

https://08-lvl3-pdl.vimeocdn.com/01/...18187fe692276e

And sound works fine on all other files (Youtube, browser-stuff, .wmv files, .mp3 files etc).

Btw Installed the 'unrestricted extras' too. That made no difference.
 
Old 04-30-2017, 11:40 AM   #7
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 2,034

Original Poster
Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by BW-userx View Post
Got handbrake ? you could try re-sampling one of them and change the audio defaults add one and change its out put to a different encoder.
Thanks BW. I do have Handbrake but that sounds like a pretty complicated solution. I'll keep it in mind if nothing simpler turns up.
 
Old 04-30-2017, 11:49 AM   #8
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 2,034

Original Poster
Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by ondoho View Post
i will venture a guess that they have sound, but it doesn't playback.

do you have sound at all?

how are the videos encoded?

open them with mplayer or mpv, and post the terminal output.

btw, you've been here long enough to know that you should have provided more info in your OP.
Thanks ondoho. Yes, have sound. It plays on movies, browser videos, .mp3 files etc.

I don't know how they are encoded. I tried to track that down and got as far as the screenshot, then didn't know which to download.

I don't know how to open them with mplayer or mpv. I checked in the terminal and neither program is installed, but I wouldn't know how to open them there anyway.

Yep, will provide more info. next time.
Attached Thumbnails
Click image for larger version

Name:	Selection_121.png
Views:	58
Size:	136.3 KB
ID:	24891  
 
Old 04-30-2017, 11:56 AM   #9
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 2,034

Original Poster
Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by rokytnji View Post
Default sound chip setting probably. In VLC settings. Or Pulse Audio. Google should take it from there.
Thanks rokytnji. I had issues with PulseAudio using a webcam, so when you mentioned it I checked PulseAudio but couldn't see anything wrong there.

And I checked the audio settings in VLC. Some of the .mp4s have 'stereo/left/right/reverse stereo' settings but changing them makes no difference.

And I don't know what a 'chip setting' is or where to look for it. (Couldn't find anything for 'chip setting' in Google.)
 
Old 04-30-2017, 12:20 PM   #10
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
Use avprobe or ffprobe to verify that the video has audio.

$ avprobe file.mp4

$ ffprobe file.mp4

I had an issue like this recently, I needed something for mp3 audio to be installed. mpg321, libmpg123-0, it's been a while.
 
1 members found this post helpful.
Old 04-30-2017, 12:39 PM   #11
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Hey Gregg_Bell ... I believe you need the proper AAC codec which is part of the gst-plugins-bad package. Could you check if that is installed on your system ? In many distros it is not by default.

Cheers,
 
1 members found this post helpful.
Old 04-30-2017, 01:20 PM   #12
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by Gregg Bell View Post
I got the .mp4 (I'm having problems with all .mp4s though) from Pexels. Here's the link:

https://08-lvl3-pdl.vimeocdn.com/01/...18187fe692276e
i'm not getting audio on this either.
not in the browser, and not when playing it with mpv.
and i NEVER have problems witht mp4s.
mediainfo says there is an audio track, and it's it's AAC encoded.
My system is definitely capable of playing that.
therefore i surmise that this video has an audio track which is SILENT.
 
1 members found this post helpful.
Old 04-30-2017, 01:43 PM   #13
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by Gregg Bell View Post
Thanks hydrurga. I got the .mp4 (I'm having problems with all .mp4s though) from Pexels. Here's the link:

https://08-lvl3-pdl.vimeocdn.com/01/...18187fe692276e
Of the sample I tried, none of those Pexels videos have audio (well they do have an AAC audio track but there appears to be nothing on it).

I think that may be how they are supposed to be, being stock video clips.
 
1 members found this post helpful.
Old 04-30-2017, 08:19 PM   #14
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 2,034

Original Poster
Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by Shadow_7 View Post
Use avprobe or ffprobe to verify that the video has audio.

$ avprobe file.mp4

$ ffprobe file.mp4

I had an issue like this recently, I needed something for mp3 audio to be installed. mpg321, libmpg123-0, it's been a while.
Thanks Shadow. I'm not sure I did this right. The .mp4 file is on the Desktop. Anyway here's the avprobe file.mp4 results:
Code:
gregory@gregory-OptiPlex-GX520:~/Desktop$ avprobe file.mp4
ffprobe version 2.8.11-0ubuntu0.16.04.1 Copyright (c) 2007-2017 the FFmpeg developers
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
  configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv
  WARNING: library configuration mismatch
  avcodec     configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv --enable-version3 --disable-doc --disable-programs --disable-avdevice --disable-avfilter --disable-avformat --disable-avresample --disable-postproc --disable-swscale --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libvo_aacenc --enable-libvo_amrwbenc
  libavutil      54. 31.100 / 54. 31.100
  libavcodec     56. 60.100 / 56. 60.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 40.101 /  5. 40.101
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100
file.mp4: No such file or directory
 
Old 04-30-2017, 08:30 PM   #15
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 2,034

Original Poster
Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by Rickkkk View Post
Hey Gregg_Bell ... I believe you need the proper AAC codec which is part of the gst-plugins-bad package. Could you check if that is installed on your system ? In many distros it is not by default.

Cheers,
Thanks Rick. I checked Synaptic. I don't have it but it's there. I was a little hesitant installing something called "bad" though. (LOL) I read the description in Synaptic and part of it went: 'GStreamer Bad Plug-ins is a set of plug-ins that aren't up to par compared to the rest.' Are you sure I'm not going to screw anything up by installing it?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
.mp4 files made in VLC PLAYER were working great in Windows Media Player but now no audio Gregg Bell Linux - Newbie 6 01-03-2017 07:19 PM
mp4 files - video but no audio Cammigirl Linux - Software 9 05-25-2016 01:42 AM
[SOLVED] Recorded stream in mp4 - Audio and video are out of sync glupa4e Slackware 2 10-03-2015 01:47 PM
Audio not coming for mp4 video in Mandriva 2008 (free) SMukhuti Linux - Desktop 14 06-03-2008 01:32 PM
MP4 with Xine.. I have video but no audio darkone66669 Linux - Software 1 03-04-2008 05:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration