View previous topic :: View next topic |
Author |
Message |
iandoug l33t
Joined: 11 Feb 2005 Posts: 839 Location: Cape Town, South Africa
|
Posted: Sun Mar 22, 2015 4:05 pm Post subject: H264 - MPEG-4 AVC (part 10) |
|
|
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 |
|
|
nlsa8z6zoz7lyih3ap Guru
Joined: 25 Sep 2007 Posts: 388 Location: Canada
|
Posted: Sun Mar 22, 2015 5:06 pm Post subject: |
|
|
have you tried adding the use flag x264? |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
iandoug l33t
Joined: 11 Feb 2005 Posts: 839 Location: Cape Town, South Africa
|
Posted: Mon Mar 23, 2015 8:19 am Post subject: |
|
|
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 |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
haarp Guru
Joined: 31 Oct 2007 Posts: 535
|
Posted: Mon Mar 23, 2015 6:43 pm Post subject: |
|
|
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 |
|
|
iandoug l33t
Joined: 11 Feb 2005 Posts: 839 Location: Cape Town, South Africa
|
Posted: Mon Mar 23, 2015 6:55 pm Post subject: |
|
|
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 |
|
|
haarp Guru
Joined: 31 Oct 2007 Posts: 535
|
Posted: Mon Mar 23, 2015 6:58 pm Post subject: |
|
|
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 |
|
|
iandoug l33t
Joined: 11 Feb 2005 Posts: 839 Location: Cape Town, South Africa
|
Posted: Mon Mar 23, 2015 7:06 pm Post subject: |
|
|
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 |
|
|
haarp Guru
Joined: 31 Oct 2007 Posts: 535
|
Posted: Mon Mar 23, 2015 7:07 pm Post subject: |
|
|
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 |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
iandoug l33t
Joined: 11 Feb 2005 Posts: 839 Location: Cape Town, South Africa
|
|
Back to top |
|
|
|