openSUSE Forums > Pre-Release/Beta » No audio and video stutters

Go Back   openSUSE Forums > Pre-Release/Beta
Forums FAQ Members List Search Today's Posts Mark Forums Read


Pre-Release/Beta Questions about pre-release versions of openSUSE Linux (software & hardware)

Reply
Page 2 of 2 1 2
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 06-Nov-2009, 11:48
malcolmlewis's Avatar
Global Moderator
 
Join Date: Jun 2008
Location: Podunk
Posts: 4,673
malcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputation
Default Re: No audio and video stutters

Quote:
Originally Posted by jens elmo
Hi,

To capture the video, I first created a new channel.conf with scan
I could not find any channel.conf in my installation so I had to make
it myself.

Then i used tzap:
tzap -f1 -r "FOLKETINGET"

Where FOLKETINGET is the name of one of the HD channels present in
channel.conf

Then on another terminal:
cat /dev/dvb/adapter0/dvr0 > testvideo.mpg
Hi
What about;
Code:
mplayer -dumpstream dvb://
--
Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.37-0.1-default
up 3 days 14:26, 2 users, load average: 0.26, 0.14, 0.09
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18

Reply With Quote
  #12 (permalink)  
Old 06-Nov-2009, 13:01
Puzzled Penguin
 
Join Date: Oct 2009
Posts: 13
jens_elmo hasn't been rated much yet
Default Re: No audio and video stutters

mplayer -dumpstream dvb seems to be broke ??
Or at least it does not work for me

I tried this:
mplayer -dumpstream dvb://"FOLKETINGET" -dumpfile testting_smplayer.mpg

First it complained about channel.conf missing
PHP Code:
Playing dvb://FOLKETINGET.
CANT READ CONFIG FILE /etc/mplayer/channels.conf
DVB CONFIGURATION IS 
EMPTY, exit 
Well, easy enough - just copy my channel.conf from the tzap test
That fixed the first error message

But i still get the error about an empty DVB conf

PHP Code:
Playing dvb://FOLKETINGET.
DVB CONFIGURATION IS EMPTY, exit
Failed to open dvb://FOLKETINGET. 
I have googled this without too much luck
It seems to mean it cannot open the dvb device for some reason.

I may suspect that it goes for the DVB-s frontend0 adapter.
I have a dual card with both dvb-s and dvb-t

This was the case with tzap - had to force it to use frontend1 with an option -f 1

Without this option, I cant see how mplayer is supposed to know which frontend adapter it should use.

regards

jens
Reply With Quote
  #13 (permalink)  
Old 06-Nov-2009, 13:22
malcolmlewis's Avatar
Global Moderator
 
Join Date: Jun 2008
Location: Podunk
Posts: 4,673
malcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputation
Default Re: No audio and video stutters

Quote:
Originally Posted by jens elmo
mplayer -dumpstream dvb seems to be broke ??
Or at least it does not work for me

I tried this:
mplayer -dumpstream dvb://"FOLKETINGET" -dumpfile
testting_smplayer.mpg

First it complained about channel.conf missing

PHP code:
--------------------
Playing dvb://FOLKETINGET.
CAN'T READ CONFIG FILE /etc/mplayer/channels.conf
DVB CONFIGURATION IS EMPTY, exit
--------------------


Well, easy enough - just copy my channel.conf from the tzap test
That fixed the first error message

But i still get the error about an empty DVB conf


PHP code:
--------------------
Playing dvb://FOLKETINGET.
DVB CONFIGURATION IS EMPTY, exit
Failed to open dvb://FOLKETINGET.
--------------------


I have googled this without too much luck
It seems to mean it cannot open the dvb device for some reason.

I may suspect that it goes for the DVB-s frontend0 adapter.
I have a dual card with both dvb-s and dvb-t

This was the case with tzap - had to force it to use frontend1 with an
option -f 1

Without this option, I cant see how mplayer is supposed to know which
frontend adapter it should use.

regards

jens
Hi
Just add cardnumber see the man page for more options, but should just
be;
Code:
mplayer  -dumpstream dvb://1@FOLKETINGET -dumpfile
testing_smplayer.mpg
--
Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.37-0.1-default
up 3 days 16:02, 2 users, load average: 0.12, 0.14, 0.10
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18

Reply With Quote
  #14 (permalink)  
Old 07-Nov-2009, 00:28
Puzzled Penguin
 
Join Date: Oct 2009
Posts: 13
jens_elmo hasn't been rated much yet
Default Re: No audio and video stutters

Hi

I fully agree that I should try to record the video with something else, in order to exclude a problem with tzap.
So i will work on this.

However, I never got mplayer to work with the correct frontend device - even with the command that you specified.

I believe the parameter 1@ indicates card 1 as you say, and as it is stated in the manual
As it did not work, I translated this to be the physical PCI card rather than the logical input device.

This morning I tried to verify this briefly by looking into mplayer with "strings"

PHP Code:
jens@HTPC:~> strings /usr/bin/mplayer grep frontend
/dev/dvb/adapter%d/frontend0 
You can see that there is a parameter for the adapter number
(physical card I believe)
But the frontend device i locked to fronteend0

PHP Code:
I need frontend1 
If I get some spare time over the weekend, I will try to load the tarball fro malyer and comopile it with "frontend1!"

Just need to figure out where I should edit the source files to change it
Reply With Quote
  #15 (permalink)  
Old 08-Nov-2009, 06:11
Puzzled Penguin
 
Join Date: Oct 2009
Posts: 13
jens_elmo hasn't been rated much yet
Default Re: No audio and video stutters

Hi

Made some progress this morning
Thx to Malcolmlewis hints to try mplayer

Started by removing mplayer and x264 alltogether

Then I have downloaded the latest x256 codec and mplayer
Then compiled mplayer from scratch with the new x264

The new mplayer auto detected the right adapter and frontend
(hmm.. maybe someone should update the repositories...)

Still the same probs though

The output from mplayer led me to the mplayer forum where some Eugine mentioned that the PMT PID should be added in the channels.conf

channels.conf change:
PHP Code:
The audio PID for FOLKETINGET was 2271
I added the PMT PID 2250 so that the audio PID is now  2271
+2250 
mplayer dvb://FOLKETINGET has now audio

Still no video in mplayer

So I have video in kaffeine and audio in mplayer
The trick is now to have both video and audio in the same application

For reference here is the output from mplayer

jens@HTPC:~> mplayer dvb://FOLKETINGET
MPlayer SVN-r29832-snapshot-4.4 (C) 2000-2009 MPlayer Team

Playing dvb://FOLKETINGET.
dvb_tune Freq: 714000000
TS file format detected.
VIDEO H264(pid=2261) AUDIO AAC(pid=2271) NO SUBS (yet)! PROGRAM N. 2025
FPS seems to be: 25.000000
================================================== ========================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
================================================== ========================
================================================== ========================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)

Unsupported LATM configuration: 5 programs/ 1 subframes, 5 layers, allstreams: 0

Unsupported LATM configuration: 5 programs/ 1 subframes, 5 layers, allstreams: 0
FAAD: compressed input bitrate missing, assuming 128kbit/s!
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio))
================================================== ========================
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...

Unsupported LATM configuration: 5 programs/ 1 subframes, 5 layers, allstreams: 0

Unsupported LATM configuration: 5 programs/ 1 subframes, 5 layers, allstreams: 0
[h264 @ 0xca4dc0]mmco: unref short failure
[h264 @ 0xca4dc0]mmco: unref short failure
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
[swscaler @ 0xd86680]using unscaled yuv420p -> rgb565 special converter
VO: [fbdev] 704x576 => 1024x576 BGR 16-bit
[h264 @ 0xca4dc0]B picture before any references, skipping?,?% 0 0
[h264 @ 0xca4dc0]decode_slice_header error
[h264 @ 0xca4dc0]no frame!
Error while decoding frame!
[h264 @ 0xca4dc0]B picture before any references, skipping?,?% 1 0
Reply With Quote
  #16 (permalink)  
Old 08-Nov-2009, 06:18
oldcpu's Avatar
Global Moderator
 
Join Date: Mar 2008
Location: Europe
Posts: 10,698
oldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of light
Default Re: No audio and video stutters

Quote:
Originally Posted by jens_elmo View Post
So I have video in kaffeine and audio in mplayer. The trick is now to have both video and audio in the same application
What video engine do you have selected in kaffeine? gstreamer? xine?

Its not often kaffeine can play video where MPlayer can not. You may need to custom compile MPlayer to get the video playback that you desire, in which case user microchip is very good at that (or at least he may understand what the limitation is there with video playback), and if you decide to go that route, you could see if he can help.
Reply With Quote
Reply
Page 2 of 2 1 2

Bookmarks


Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2