Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
H264 - MPEG-4 AVC (part 10)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
iandoug
l33t
l33t


Joined: 11 Feb 2005
Posts: 839
Location: Cape Town, South Africa

PostPosted: Sun Mar 22, 2015 4:05 pm    Post subject: H264 - MPEG-4 AVC (part 10) Reply with quote

Hi

I downloaded a video off YouTube to watch locally. It's mp4, but when I play it via Dragon or VLC, there is video but no sound.

Google shows that many people have a problem with MP4s and no sound.

After searching and fiddling etc I tried a conversion in VLC, and was presented with this:

Code:

Streaming / Transcoding failed:
It seems your Libav/FFmpeg (libavcodec) installation lacks the following encoder:
H264 - MPEG-4 AVC (part 10).
If you don't know how to fix this, ask for support from your distribution.


However eix could not tell me which package I should install to fix this.

I'm on:
VLC: Installed versions: 2.1.5-r1
Dragon: Installed versions: 4.14.3

media-video/h264enc appears to add encoding but I think I want decoding?

Any advice gratefully received :-)

thanks, Ian
_________________
Asus X570-PRO, Ryzen 7 5800X, GeForce GTX 1650, 32 GB RAM | Asus Sabertooth P990, AMD FX-8150, GeForce GTX 560, 16GB Ram
Back to top
View user's profile Send private message
nlsa8z6zoz7lyih3ap
Guru
Guru


Joined: 25 Sep 2007
Posts: 388
Location: Canada

PostPosted: Sun Mar 22, 2015 5:06 pm    Post subject: Reply with quote

have you tried adding the use flag x264?
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sun Mar 22, 2015 5:18 pm    Post subject: Reply with quote

There are three components your media player has to support for successful playback. The container, video and audio. If you have no audio then you miss an audio decoder, it is faad USE flag for AAC.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
iandoug
l33t
l33t


Joined: 11 Feb 2005
Posts: 839
Location: Cape Town, South Africa

PostPosted: Mon Mar 23, 2015 8:19 am    Post subject: Reply with quote

hi Guys

Jaglover wrote:
There are three components your media player has to support for successful playback. The container, video and audio. If you have no audio then you miss an audio decoder, it is faad USE flag for AAC.


I did this:

1. add use flag x264
2. emerge -auvDN world
3. still not working
4. add use flag faad and emerge -auvDN world
5. still not working
6. reboot
7. still not working.

Note that I have played many MP4s in both Dragon and VLC without problems, this is the first time I have had this issue.

I tried playing it over the network via my Western Digital Live TV player, and it refuses to play, so possibly there is something funny with the video in question. It played fine on YouTube, either on this PC or via the YouTube app on the WD box.

The video in question is here, https://www.youtube.com/watch?v=K3ksKkCOgTw
and I downloaded the 1080 version via FlashGot in Firefox.

I DL the 720 version and that works. So I guess there's something funny with the 1080 version...

If I try a conversion in VLC it now does run without complaining but it's a long wait for the conversion to finish... will try that later.

thanks.
_________________
Asus X570-PRO, Ryzen 7 5800X, GeForce GTX 1650, 32 GB RAM | Asus Sabertooth P990, AMD FX-8150, GeForce GTX 560, 16GB Ram
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Mon Mar 23, 2015 4:52 pm    Post subject: Reply with quote

Out of curiosity I downloaded the 1080 mp4 version, sure enough, there is no audio in this file, plain video.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
haarp
Guru
Guru


Joined: 31 Oct 2007
Posts: 535

PostPosted: Mon Mar 23, 2015 6:43 pm    Post subject: Reply with quote

This is correct. There IS no audio in it!

The new DASH architecture used by Youtube splits video and audio into separate files. You can only get at most 720p as a combined file.


btw, x264 is an encoder only. It's very likely not relevant here.
Back to top
View user's profile Send private message
iandoug
l33t
l33t


Joined: 11 Feb 2005
Posts: 839
Location: Cape Town, South Africa

PostPosted: Mon Mar 23, 2015 6:55 pm    Post subject: Reply with quote

haarp wrote:
This is correct. There IS no audio in it!

The new DASH architecture used by Youtube splits video and audio into separate files. You can only get at most 720p as a combined file.



IIRC Flashgot offered me an .mp3 file which I thought was a little odd at the time.

Is the user now supposed to download the video and audio separately and then do some black magic to merge them in sync?

thanks, Ian
_________________
Asus X570-PRO, Ryzen 7 5800X, GeForce GTX 1650, 32 GB RAM | Asus Sabertooth P990, AMD FX-8150, GeForce GTX 560, 16GB Ram
Back to top
View user's profile Send private message
haarp
Guru
Guru


Joined: 31 Oct 2007
Posts: 535

PostPosted: Mon Mar 23, 2015 6:58 pm    Post subject: Reply with quote

That's the only way, unfortunately. It's easy to do with ffmpeg tho:

Code:
ffmpeg -i video.mp4 -i audio.mp4 -vcodec copy -acodec copy combined.mp4
Back to top
View user's profile Send private message
iandoug
l33t
l33t


Joined: 11 Feb 2005
Posts: 839
Location: Cape Town, South Africa

PostPosted: Mon Mar 23, 2015 7:06 pm    Post subject: Reply with quote

haarp wrote:
That's the only way, unfortunately. It's easy to do with ffmpeg tho:

Code:
ffmpeg -i video.mp4 -i audio.mp4 -vcodec copy -acodec copy combined.mp4


Thanks... Gentoo wanted me to pick ffmpeg or avlib and I picked avlib (think it was recommended or somesuch...)

Must make a note of this trick...

thanks, Ian
_________________
Asus X570-PRO, Ryzen 7 5800X, GeForce GTX 1650, 32 GB RAM | Asus Sabertooth P990, AMD FX-8150, GeForce GTX 560, 16GB Ram
Back to top
View user's profile Send private message
haarp
Guru
Guru


Joined: 31 Oct 2007
Posts: 535

PostPosted: Mon Mar 23, 2015 7:07 pm    Post subject: Reply with quote

iandoug wrote:
haarp wrote:
That's the only way, unfortunately. It's easy to do with ffmpeg tho:

Code:
ffmpeg -i video.mp4 -i audio.mp4 -vcodec copy -acodec copy combined.mp4


Thanks... Gentoo wanted me to pick ffmpeg or avlib and I picked avlib (think it was recommended or somesuch...)

Must make a note of this trick...

thanks, Ian


No, better use ffmpeg. libav is the inferior fork.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Mon Mar 23, 2015 7:07 pm    Post subject: Reply with quote

Mkvtoolnix will do it no problem, too. The output will be in MKV container, indeed.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
iandoug
l33t
l33t


Joined: 11 Feb 2005
Posts: 839
Location: Cape Town, South Africa

PostPosted: Mon Mar 23, 2015 7:15 pm    Post subject: Reply with quote

iandoug wrote:


Thanks... Gentoo wanted me to pick ffmpeg or avlib and I picked avlib (think it was recommended or somesuch...)



ah, I wasn't imagining it. Though of course your statement now raises interesting questions and some recompiling :-)

https://aballier.wordpress.com/2013/01/18/ffmpeg-vs-libav-a-distribution-maintainer-point-of-view-almost-two-years-after-the-split/

cheers, Ian
_________________
Asus X570-PRO, Ryzen 7 5800X, GeForce GTX 1650, 32 GB RAM | Asus Sabertooth P990, AMD FX-8150, GeForce GTX 560, 16GB Ram
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum