Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: john11 on January 24, 2016, 03:27:10 AM

Title: h264-mpeg4 avc (part 10) (avc1)
Post by: john11 on January 24, 2016, 03:27:10 AM
Hi And thanks for reading this post.

I am having problems with vlc media player and stuttering video playback on all videos which use the H264 mpeg4 avc (part10) (avc1) codec, this is a request to have this codec inserted into vlc.

The video playback is fine in windows 7 using the same hardware, but with vlc in tiny core the video playback stutters badly with the message : vlc does not recognise the audio video codec.

Many thanks. John.
Title: Re: h264-mpeg4 avc (part 10) (avc1)
Post by: Juanito on January 24, 2016, 04:27:19 AM
Did you try to find the codecs supported by vlc/vlc2 as suggested in your other thread (vlc > tools > media codecs)?

Did you send a pm to the extension maintainer (also suggested in your other thread)?

Did you try mplayer or totem as alternatives (also suggested in your other thread)?
Title: Re: h264-mpeg4 avc (part 10) (avc1)
Post by: coreplayer2 on January 24, 2016, 03:34:52 PM
Hi John

VLC2 supports H264 mpeg4 AVC 10 codec in a Matroska container.    I've included here in this screenshot the plugins window:  vlc2 > tools > plugins and extensions,
also shown is the codec information page.of a video playing using vlc2 clearly indicates the video is encoded using H264 mpeg4 AVC 10 codec
(https://db.tt/uGLMSmTH)
I think we're barking up the wrong tree here..

Quote
i get a message " vlc does not recognize the audio or video format "
Is this issue resolved using vlc2, if not then perhaps look at the Audio codec required, though I doubt this being an issue because the a52 codec is also listed as an installed vlc2 plugin

Earlier you had described the issue as "the playback is stuttering badly" this is likely a video driver issue

need more info, to start with which tc version and architecture, which video driver and Xvesa or Xorg  ??
From a terminal post the output of
version
getBuild
uname -a

like this
Code: [Select]
tc@box:~$ version
7.0beta3
tc@box:~$ getBuild
x86
tc@box:~$ uname -a
Linux box 4.2.9-tinycore #1999 SMP Mon Jan 18 19:42:12 UTC 2016 i686 GNU/Linux
tc@box:~$


totem is a great player also, did you try?
Title: Re: h264-mpeg4 avc (part 10) (avc1)
Post by: coreplayer2 on January 24, 2016, 07:27:22 PM
Also would help with a listing of currently installed extensions

Code: [Select]
ls -1 /usr/local/tce.installeduse with code tags for easier reading please
Title: Re: h264-mpeg4 avc (part 10) (avc1)
Post by: john11 on January 26, 2016, 02:02:25 AM
Hi. Thanks for the replies.

I am using vlc2, forgot to mention.

Version: 6.4.1
getBuild: x86
Uname: Linux box 3.16.6-tinycore#777 smp thu oct 16 09:42:42 utc 2014 1686 gnu/linux

For  ls -1 /usr/local/tce.installed   i get a list of 22 different options such as
-c list by columns
-x list by lines
-d list directory enteries

Not sure what to do but I have attached my boot file which may help. I only installed vlc2 and alsa.

I did try totem and mplayer but they do not have a front end, the family do not know how to use it, they prefer simpler vlc where you just click on a file and it starts.

Many thanks.
Title: Re: h264-mpeg4 avc (part 10) (avc1)
Post by: Juanito on January 26, 2016, 02:19:44 AM
That should be "ls -l /usr/local/tce.installed" i.e. an "l" and not a "1".

Note that you can achieve the same thing (a list of loaded extensions) with "tce-status -i".

How did you download vlc2 and alsa? The reason I ask is that if you used the apps gui or "tce-load -iw", then the extensions which vlc2 and alsa depend on will automatically be downloaded and loaded with them.

Note also that extension dependencies are recursive so there is a lot of needless repetition in your onboot.lst - this will not, however, stop anything from working.
Title: Re: h264-mpeg4 avc (part 10) (avc1)
Post by: coreplayer2 on January 26, 2016, 02:48:54 AM
regarding the onboot.lst, there is nothing there which will prevent vlc2 from working

However expanding on the dependencies as Juanito commented
 
these are not required for your purposes (unless you need the locale for local language support).
Code: [Select]
vlc2-locale.tcz
vlc2-dev.tcz
vlc2-doc.tcz
alsa-dev.tcz

However you should add only (in place of the above)
Code: [Select]
vlc2.tcz
alsa.tcz

Either alsa.tcz or alsa-config.tcz  whichever gives you sound starting with alsa.tcz is probably best

How do you manage without a File Manager??  I guess that's why you need a fromt-end to mplayer however totem has a gui

When that's all cleaned up look at the audio codec requirements?  and the devices set for output

Also check and maybe try another video output, (though I doubt you have many choices)
Tools > Preferences > audio and Video output

The reason I asked about mplayer was to clarify there wasn't an underlying file system or video driver issue causing the stuttering, that said did the video play well in mplayer?

:)

Title: Re: h264-mpeg4 avc (part 10) (avc1)
Post by: john11 on January 27, 2016, 12:41:14 AM
Hi. Thanks for the replies, much appreciated.

I did install everything under vlc2 and alsa as i am desperate to get it working and cannot not think of anything else, thought perhaps i had missed something.

I did download alsa and vlc2 using the appbrowser which is in wbar, is this wrong, should i have used command line. Is there any reason why the necessary extensions may have not been downloaded, perhaps download error.

I have been trying all the different audio and video output options in vlc, but does not make a difference. Could it be a clash between tinycore and the video or audio card.

With the stuttering video sometimes i get the message: vlc does not recognise the audio video codec, but sometimes it stutters without the message

Since no one else is having this problem vlc and alsa are probably fine and it may well be a driver issue, can this be addressed in any way.

Many thanks.
Title: Re: h264-mpeg4 avc (part 10) (avc1)
Post by: Juanito on January 27, 2016, 01:49:34 AM
Are you using Xvesa, Xfbdev or Xorg-7.7 for video (if you're unsure, you can open a terminal window and enter "ps aux | grep X")?

If you're using Xorg-7.7, are you using it with one of the xf86-video-* extensions?

What video hardware does your machine have (you can use the "lspci" command from the pci-utils extension to find out)?

Title: Re: h264-mpeg4 avc (part 10) (avc1)
Post by: john11 on January 29, 2016, 01:48:10 AM
Hi. Thanks for the reply.

Not sure what i am using, but here are the results of the command ps aux | grep X

3991 root   xvesa -br -screen 1024x768x32 -shadow -2button -mouse /dev/input/ mice,5 -no listen tcp -i
4027  root  /sbin/udhcpc -b -i ethd -x hostname box -p /var/run/udhcpc.etho.pid
4054  tc ps aux
4055  tc grep x

Hope that makes sense.

Concerning the hardware, i don't have pci utils extensions installed, but i will download it and post the results.
I did want to ask a supplementary question about hardware, i have a gigabyte motherboard that unfortunatly does not have gpt partioning support in the bios, some of my hard drives are not being detected.
I want to purchase a new board and wondered if you could recommend any makes or models which work particularly well with tiny core, good driver support, fewer bugs.
I am trying to maximise the audio and video capabilities of vlc media player and want a board which will allow that. i googled and found that gaming boards are manufactured with better capacitors, regulators etc, higher quality components, and generally have better specs
should i be trying for a gaming board, will that yield the best a/v performance or are motherboards unimportant in that respect.

Thank you.

Title: Re: h264-mpeg4 avc (part 10) (avc1)
Post by: Juanito on January 29, 2016, 02:27:31 AM
OK, so you're using Xvesa, which might be the reason for your choppy video.

Once you've used "lspci" to determine what hardware you have, you might get better results from using Xorg-7.7 together with the appropriate video driver for your hardware.
Title: Re: h264-mpeg4 avc (part 10) (avc1)
Post by: curaga on January 29, 2016, 04:49:39 AM
Motherboards don't really matter for av performance. Your graphics card and cpu matter, and their drivers of course.
Title: Re: h264-mpeg4 avc (part 10) (avc1)
Post by: john11 on February 01, 2016, 01:22:21 AM
Hi. Thanks for the replies.

Curaga   Thanks for the advice. Paid £140 for a motherboard and it has lasted me a week, was hoping someone could steer me towards a good board. 

Juanito   Have installed pci utilities, it does not show up anywhere, how do i run it.

Thank you
Title: Re: h264-mpeg4 avc (part 10) (avc1)
Post by: coreplayer2 on February 01, 2016, 01:38:52 AM
hi John11

to check which hardware you have,  open a terminal and type  lspci -vv  or simply just  lspci   without the options.   You will be presented with a list of your hardware
Title: Re: h264-mpeg4 avc (part 10) (avc1)
Post by: john11 on February 04, 2016, 01:25:24 AM
regarding the onboot.lst, there is nothing there which will prevent vlc2 from working

However expanding on the dependencies as Juanito commented
 
these are not required for your purposes (unless you need the locale for local language support).
Code: [Select]
vlc2-locale.tcz
vlc2-dev.tcz
vlc2-doc.tcz
alsa-dev.tcz

However you should add only (in place of the above)
Code: [Select]
vlc2.tcz
alsa.tcz

Either alsa.tcz or alsa-config.tcz  whichever gives you sound starting with alsa.tcz is probably best



:)

Thanks for the replies.

Why is it not necessary to install vlc-dev  and vlc-doc, alsa-dev, etc   don't these have extra scripts and features to increase the functionality of alsa and vlc.

I got a list of the hardware, the video hardware is  " vga compatible controller: advanced micro devices, inc. [amd/ati] thames [radeon hd7550m/7570m/7650m] "

Many thanks.

 
Title: Re: h264-mpeg4 avc (part 10) (avc1)
Post by: Rich on February 04, 2016, 01:36:58 AM
Hi john11
Quote
Why is it not necessary to install vlc-dev  and vlc-doc, alsa-dev, etc   don't these have extra scripts and features to increase the functionality of alsa and vlc.
The  dev  files are only required if you are compiling something that depends on the libraries included in that extension.
The  doc  files typically only include  man  files.
Title: Re: h264-mpeg4 avc (part 10) (avc1)
Post by: Juanito on February 04, 2016, 01:56:26 AM
I got a list of the hardware, the video hardware is  " vga compatible controller: advanced micro devices, inc. [amd/ati] thames [radeon hd7550m/7570m/7650m] "

..so instead of using Xvesa, you could use either:

Xorg-7.7 and xf86-video-ati
Xorg-7.7-3d

..and see if that improves your video playback.
Title: Re: h264-mpeg4 avc (part 10) (avc1)
Post by: john11 on February 05, 2016, 01:31:04 AM

Hi. Thanks for the reply.

Installed x org 7.7 3d, but still stuttering video no change. Vlc reports unknown audio and video codec.

ps aux | grep x reports:

4505 root /usr/local/lib/xorg/Xorg -no listen tcp
4560 root /sbin/udhcpc -b -i etho -x hostname box -p/var/run/udhcpc.etho.pid

Many thanks.
Title: Re: h264-mpeg4 avc (part 10) (avc1)
Post by: Juanito on February 05, 2016, 01:38:03 AM
Can you provide a link to a video file that stutters for you so others can try?
Title: Re: h264-mpeg4 avc (part 10) (avc1)
Post by: john11 on February 07, 2016, 01:22:43 AM
Hi Thanks for the reply.

It's videos on my local hard drive that are stuttering, not anything web based.

Is there anywhere i can put up a short clip so others can try it out.

Many thanks.
Title: Re: h264-mpeg4 avc (part 10) (avc1)
Post by: john11 on February 10, 2016, 01:11:31 AM

Thanks so much for the replies.

Just got back from the vlc forums in which i raised this codec issue. Had  to wait a few days for a reply but here it is:

" If you use ALSA; this is a known bug in VLC 2.2.x.

  It's an hardware-related VLC bug. Use PulseAudio or upgrade VLC to version 3.0 to fix it. "

Just my opinion, it may be that vlc is clashing with some of the alsa extensions as some people have reported using vlc with alsa and no problems.
Since i installed everything, the mixer, eq, i probably have got the problematic extension.

Should i swap over to pulse audio, or should i try the alsa extensions one at a time to filter out the problem.

Many thanks.
Title: Re: h264-mpeg4 avc (part 10) (avc1)
Post by: Juanito on February 10, 2016, 01:24:18 AM
There's only one alsa extension?

Note that my sound hardware illogically sets hdmi as the default, which means I need to load Xorg-7.7 or sound will not work  - is it possible that you have the same issue?

You could use pulseaudio, but that means more bloat, starting the dbus daemon, etc, etc.
Title: Re: h264-mpeg4 avc (part 10) (avc1)
Post by: john11 on February 10, 2016, 03:35:40 AM


Hi. Thanks for the reply.

Does vlc2 work fine for you with the h264-mpeg4 avc files, is it alsa.tcz that you have installed.

I have alsaconfig, alsamixer, alsamodules, alsa.tcz

If i install alsa.tcz by itself i do not get sound, i have to use the mixer to manually select pcm then the sound works, or i select headphones if using a headset.

When i opened the mixer for the first time some of the faders were muted, which probably explains why some sound channels were not working.

Many thanks.
Title: Re: h264-mpeg4 avc (part 10) (avc1)
Post by: Juanito on February 10, 2016, 03:46:44 AM
I believe both vlc and vlc2 will play h264-mpeg4 files for me, but if you could provide a link to a file that stutters for you, I can double-check.

I was speaking of the alsa extension and it's recursive deps - I don't use alsa-config.

It's normal that some channels are muted the first time alsa is used - you can use alsamixer to adjust the settings, issue the command "sudo alsactl store" and add /usr/local/etc/alsa/asound.state to your backup to avoid this in future.
Title: Re: h264-mpeg4 avc (part 10) (avc1)
Post by: Juanito on February 10, 2016, 04:13:14 AM
I found a video (star_wars_7_the_force_awakens-teaser2.zip) with the following format:

video codec: h264 - mpeg4 avc (part 10) (avc1)
resolution: 1920x800

audio codec: mpeg aac audio (mp4a)
sample rate: 44100Hz

..and it played without stuttering with vlc and Xorg-7.7/xf86-video-intel