LinuxQuestions.org
Visit Jeremy's Blog.
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 09-29-2016, 12:25 PM   #1
gael33
Member
 
Registered: Feb 2009
Location: Scotland
Distribution: Linux Mint 20.1 Cinnamon 64 bit
Posts: 341

Rep: Reputation: 22
Youtube video plays with no audio?


I downloaded a music video from Youtube to load onto my NAS but the .mkv isn't supported. I reformatted the video using handbrake to mpeg4, the video plays but with no sound. I even tried WinFF with the same result, video plays but with no sound. Has anyone got any ideas on how to get both video and sound to play?

cheers

gael
 
Old 09-29-2016, 12:57 PM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (current), FreeBSD, Win10, It varies
Posts: 9,952

Rep: Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148
Quote:
Originally Posted by gael33 View Post
I downloaded a music video from Youtube to load onto my NAS but the .mkv isn't supported. I reformatted the video using handbrake to mpeg4, the video plays but with no sound. I even tried WinFF with the same result, video plays but with no sound. Has anyone got any ideas on how to get both video and sound to play?

cheers

gael
did you look to see what audio that movie had when you resamled it with handbreak? did you look up into the menu bar in your vlc app and click audio then click audoi track to see if it even had a sound track attached to it yet?

it too could be just a bad file result in downloading it too ....
 
Old 09-29-2016, 01:07 PM   #3
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: AntiX 19
Posts: 6,287
Blog Entries: 21

Rep: Reputation: 3142Reputation: 3142Reputation: 3142Reputation: 3142Reputation: 3142Reputation: 3142Reputation: 3142Reputation: 3142Reputation: 3142Reputation: 3142Reputation: 3142
Running a media file in terminal with a terminal media player like mplayer is good for seeing error messages on why no audio is playing. I even do lousy screen recording this way where audio is picked up on my mic from my TV <sounds terrible since I am a novice>

https://www.youtube.com/watch?v=mdY-Gkh0-eo

I made the quick 30 second video for a gtk 2 , synaptic, question/answer in a post on another forum.
 
Old 09-29-2016, 02:28 PM   #4
gael33
Member
 
Registered: Feb 2009
Location: Scotland
Distribution: Linux Mint 20.1 Cinnamon 64 bit
Posts: 341

Original Poster
Rep: Reputation: 22
Quote:
Originally Posted by BW-userx View Post
did you look to see what audio that movie had when you resamled it with handbreak? did you look up into the menu bar in your vlc app and click audio then click audoi track to see if it even had a sound track attached to it yet?

it too could be just a bad file result in downloading it too ....
I did as you suggested and checked for an audio file in VLC. Yes, it plays .mkv on my computer but when I reformat to mpeg4 or any other format I appear to lose the sound ... I don't understand why! As I wrote earlier, my NAS won't play the file that was directly downloaded from Youtube ... reformatting it loses the sound but the video plays just fine.
I'm open to any ideas
 
Old 09-29-2016, 02:34 PM   #5
gael33
Member
 
Registered: Feb 2009
Location: Scotland
Distribution: Linux Mint 20.1 Cinnamon 64 bit
Posts: 341

Original Poster
Rep: Reputation: 22
Quote:
Originally Posted by rokytnji View Post
Running a media file in terminal with a terminal media player like mplayer is good for seeing error messages on why no audio is playing. I even do lousy screen recording this way where audio is picked up on my mic from my TV <sounds terrible since I am a novice>

https://www.youtube.com/watch?v=mdY-Gkh0-eo

I made the quick 30 second video for a gtk 2 , synaptic, question/answer in a post on another forum.
I don't think there is anything wrong with the sound, it's just that it is in .mkv format is incompatible with my NAS. I need to reformat the video/audio so that it plays with sound. Other video's (mpeg4) that I have downloaded have worked perfectly well. I need to acquire a program that will reformat keeping video and sound intact. Here's hoping
 
Old 09-29-2016, 03:13 PM   #6
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (current), FreeBSD, Win10, It varies
Posts: 9,952

Rep: Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148
Quote:
Originally Posted by gael33 View Post
I did as you suggested and checked for an audio file in VLC. Yes, it plays .mkv on my computer but when I reformat to mpeg4 or any other format I appear to lose the sound ... I don't understand why! As I wrote earlier, my NAS won't play the file that was directly downloaded from Youtube ... reformatting it loses the sound but the video plays just fine.
I'm open to any ideas
I've never actually came across this problem, i mainly use mplayer and vlc for videos. Handbreak to reformate / resmapling ... I know in the audio defaults is where you can adjust and add a different type of codec for audio, have you tried making a copy of your moivie first, then run that copy through Handbreak changing the audio settings or adding pass through audio types so that hopefully vlc will catch one of the formats to get sound, or even trying to down load that movie again to see maybe it is just a bad copy, being that the person that recourded it screwed up the sound to it, I've had a few of them like that too. where it sticks in the player skipping frames or out of sync so I just run it through handbreak to try and fix it.
 
Old 09-29-2016, 06:20 PM   #7
gael33
Member
 
Registered: Feb 2009
Location: Scotland
Distribution: Linux Mint 20.1 Cinnamon 64 bit
Posts: 341

Original Poster
Rep: Reputation: 22
Is it possible that there is something in the video / audio coding that has been altered to stop people from reformatting the music to play on anything other than the PC? I have other music video's that I have reformatted to play outwith the PC and they play without problems. Have the makers of these video's recoded the video's to stop people reformatting them? I don't know the answer, does anyone know the answer?
 
Old 09-29-2016, 08:39 PM   #8
Sefyir
Member
 
Registered: Mar 2015
Distribution: Linux Mint
Posts: 628

Rep: Reputation: 313Reputation: 313Reputation: 313Reputation: 313
Quote:
Originally Posted by gael33 View Post
Is it possible that there is something in the video / audio coding that has been altered to stop people from reformatting the music to play on anything other than the PC? I have other music video's that I have reformatted to play outwith the PC and they play without problems. Have the makers of these video's recoded the video's to stop people reformatting them? I don't know the answer, does anyone know the answer?
Feel free to post the link to the video, otherwise all we can do is speculate.

You can use ffprobe (part of ffmpeg tools) to investigate a media file as well.

Last edited by Sefyir; 09-29-2016 at 08:42 PM.
 
Old 09-30-2016, 06:54 AM   #9
gael33
Member
 
Registered: Feb 2009
Location: Scotland
Distribution: Linux Mint 20.1 Cinnamon 64 bit
Posts: 341

Original Poster
Rep: Reputation: 22
Quote:
Originally Posted by Sefyir View Post
Feel free to post the link to the video, otherwise all we can do is speculate.

You can use ffprobe (part of ffmpeg tools) to investigate a media file as well.
https://www.youtube.com/watch?v=BsBM7lp68g0
 
Old 09-30-2016, 07:38 AM   #10
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (current), FreeBSD, Win10, It varies
Posts: 9,952

Rep: Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148
Quote:
Originally Posted by gael33 View Post
I got it played it on both VLC and MPlayer without problems had sound and video on both. what downloader are you using? ME, firefox with plug in -> "easy youtube video downloader"
 
Old 09-30-2016, 09:00 AM   #11
gael33
Member
 
Registered: Feb 2009
Location: Scotland
Distribution: Linux Mint 20.1 Cinnamon 64 bit
Posts: 341

Original Poster
Rep: Reputation: 22
Quote:
Originally Posted by BW-userx View Post
I got it played it on both VLC and MPlayer without problems had sound and video on both. what downloader are you using? ME, firefox with plug in -> "easy youtube video downloader"
I download using 'youtube-dl'. As I say, it plays okay on the computer (vlc, gnome Mplayer)the problem is when I reformat to mpeg4 through 'handbrake' or 'WinFF' ... the video plays okay, but with no sound ... any help with settings would help!

gael
 
Old 09-30-2016, 09:02 AM   #12
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (current), FreeBSD, Win10, It varies
Posts: 9,952

Rep: Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148
Quote:
Originally Posted by gael33 View Post
I download using 'youtube-dl'. As I say, it plays okay on the computer (vlc, gnome Mplayer)the problem is when I reformat to mpeg4 through 'handbrake' or 'WinFF' ... the video plays okay, but with no sound ... any help with settings would help!

gael
well now I got a re-download it again then run it through handbrake . . default settings first .. hold on...

sorry this took so long I was checking out the video lol

this is the correct video yes? I left it at the default audio settings you can see them in this image. it worked fine for me so I am not really sure what up with your set up. you can change modify the audio setting you know. just put yourself into experimentalinal mode
Attached Thumbnails
Click image for larger version

Name:	Screenshot_HANDBRAKE-02---2016-09-30_08-04-43.jpg
Views:	9
Size:	171.5 KB
ID:	23129  

Last edited by BW-userx; 09-30-2016 at 09:11 AM.
 
Old 09-30-2016, 09:07 PM   #13
metadata
LQ Newbie
 
Registered: Sep 2016
Posts: 25

Rep: Reputation: Disabled
Quote:
Originally Posted by gael33 View Post
I download using 'youtube-dl'. As I say, it plays okay on the computer (vlc, gnome Mplayer)the problem is when I reformat to mpeg4 through 'handbrake' or 'WinFF' ... the video plays okay, but with no sound ... any help with settings would help!

gael
I just downloaded the video from the link you supplied so I can see for myself. Using

Code:
youtube-dl -f 22/18 "https://www.youtube.com/watch?v=BsBM7lp68g0" -o "%(title)s.mp4"
Then,

Code:
ffmpeg -i Sia\ -\ Cheap\ Thrills\ ft.\ Sean\ Paul\ \(Sehck\ Remix\).mp4
The video codec is h264 and the audio codec is aac.

You can try changing the audio codec to mp3 like so:

Code:
ffmpeg -i "Sia - Cheap Thrills ft. Sean Paul (Sehck Remix).mp4" -c:v copy -c:a libmp3lame "Sia - Cheap Thrills ft. Sean Paul (Sehck Remix).avi"
good luck

Last edited by metadata; 09-30-2016 at 09:08 PM.
 
Old 09-30-2016, 09:18 PM   #14
metadata
LQ Newbie
 
Registered: Sep 2016
Posts: 25

Rep: Reputation: Disabled
I forgot you are using handbrake. You can do this to convert the audio in the video to mp3

Code:
HandBrakeCLI -i "Sia - Cheap Thrills ft. Sean Paul (Sehck Remix).mp4" -q 1 -E mp3 -o "Sia - Cheap Thrills ft. Sean Paul (Sehck Remix).mkv"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Audio but no video on youtube Fixit7 General 6 04-07-2016 11:24 AM
No audio in Flash using Lightspark in Firefox/Chromium, video plays fine linuxbawks Linux - Software 9 05-12-2013 03:13 PM
WMV file plays video but no audio in Lucid johnbartley Linux - Software 2 06-05-2010 09:46 PM
Using ffmpeg and DVDstyler...Audio plays but video stuck on menu Lorienthin Linux - Software 7 06-07-2009 05:31 PM
Out of synch video and audio on Youtube.com? Corndaddy Linux - Newbie 1 08-16-2006 07:54 AM

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

All times are GMT -5. The time now is 05:13 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