Re: DVB-C and channels.conf

Andreas Matthias <[email protected]>
Newsgroups gmane.comp.video.mplayer.user.dvb
Message-ID <[email protected]>
Hello Nico,

Nico wrote:

> Oops,
> in libmpdemux/dvbin.c function dbv_get_channels() you should change
> apply this modification:
> 
> 
> -const char *cbl_conf = "%a[^:]:%d:%c:%d:%a[^:]:%a[^:]:%d:%d\n";
> +const char *cbl_conf = "%a[^:]:%d:%a[^:]:%d:%a[^:]:%a[^:]:%d:%d\n";
> 
> please, let me know if it works, so I can apply this patch to my code.

Thanks. Now channels.conf is parsed correctly. Nevertheless streaming
doesn't work yet. Output of mplayer is attached.

Ciao
Andreas

ps: The DVB-C card and the driver are definitely working. I have
no problems with xine and vdr.


[andreas mplayer-cvs]# ./mplayer -v -v dvb://
MPlayer dev-CVS-031007-03:42-3.3.1 (C) 2000-2003 MPlayer Team
 
CPU: Advanced Micro Devices Athlon MP/XP/XP-M Barton 1830 MHz (Family: 6, Stepping: 0)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE
 
Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or directory
Reading config file /home/andreas/.mplayer/config
Reading /home/andreas/.mplayer/codecs.conf: 61 audio & 157 video codecs
CommandLine: '-v' '-v' 'dvb://'
get_path('font/font.desc') -> '/home/andreas/.mplayer/font/font.desc'
font: Reading section: [info]
font: Reading section: [files]
RAW: /home/andreas/.mplayer/font//iso-8859-1-a.raw  4216 x 28, 256 colors
RAW: /home/andreas/.mplayer/font//iso-8859-1-b.raw  4216 x 28, 256 colors
font: Reading section: [characters]
font: Reading section: [files]
RAW: /home/andreas/.mplayer/font//osd-mplayer-a.raw  536 x 32, 256 colors
RAW: /home/andreas/.mplayer/font//osd-mplayer-b.raw  536 x 32, 256 colors
font: Reading section: [characters]
font: resampling alpha by factor 0.750 (192) DONE!
font: resampling alpha by factor 0.750 (192) DONE!
Font /home/andreas/.mplayer/font/font.desc loaded successfully! (206 chars)
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Using Linux hardware RTC timing (1024Hz).
get_path('input.conf') -> '/home/andreas/.mplayer/input.conf'
Parsing input config file /home/andreas/.mplayer/input.conf
Input config file /home/andreas/.mplayer/input.conf parsed: 52 binds
Setting up LIRC support...
mplayer: could not open config file
mplayer: No such file or directory
Failed to read LIRC config file ~/.lircrc.
You will not be able to use your remote control.
get_path('.conf') -> '/home/andreas/.mplayer/.conf'
 
[[[init getch2]]]
 
Playing dvb://
TUNER TYPE SEEMS TO BE DVB-C
OPEN_DVB: prog=, card=1, type=3, vid=0, aid=0, file=channels.conf
get_path('channels.conf') -> '/home/andreas/.mplayer/channels.conf'
CONFIG_READ FILE: /home/andreas/.mplayer/channels.conf, type: 3
code taken from dvbstream for mplayer v0.4pre1 - (C) Dave Chapman 2001
Released under the GPL.
Latest version available from http://www.linuxstb.org/
PROG: ProSieben, CARD: 1, VID: 0, AID: 0, TYPE: , FILE: channels.conf
PROGRAM NUMBER 0: name=ProSieben, vid=255, aid=256, freq=330000000, srate=6900000, pol=DVB_SET_CHANNEL: channel 0
DVB_SET_CHANNEL: new channel name=ProSieben
DIFFERENT TUNING THAN THE PREVIOUS:   -> 0|330000000|2|6900000|0|3
dvb_tune Freq: 330000000
TUNE_IT, fd_frontend 9, fd_sec 0
freq 330000000, srate 0, pol Using DVB card "VES1820 based DVB-C frontend"
tuning DVB-C to 330000000, srate=0
polling....
Getting frontend event
FE_STATUS: FE_TIMEDOUT
Not able to lock to the signal on the given frequency
SET PES FILTER ON PID 255 to fd 6, RESULT: 0, ERRNO: 2
SET PES FILTER ON PID 256 to fd 7, RESULT: 0, ERRNO: 2
SUCCESSFUL EXIT from dvb_streaming_start
STREAM: [dvbin] dvb://
STREAM: Description: Dvb Input
STREAM: Author: Nico
STREAM: Comment: based on the code from ??? (probably Arpi)
s->pos=0  newpos=0  new_bufpos=0  buflen=0
dvb_streaming_read(2048)
dvb_streaming_read, attempt N. 5 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 4 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 3 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 2 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 1 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, return 0 bytes
s->pos=0  newpos=0  new_bufpos=0  buflen=0
Checking for YUV4MPEG2
dvb_streaming_read(2048)
dvb_streaming_read, attempt N. 5 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 4 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 3 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 2 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 1 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, return 0 bytes
DEMUXER: freeing demuxer at 0x834e610
s->pos=0  newpos=0  new_bufpos=0  buflen=0
dvb_streaming_read(2048)
dvb_streaming_read, attempt N. 5 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 4 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 3 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 2 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 1 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, return 0 bytes
ASF_check: not ASF guid!
DEMUXER: freeing demuxer at 0x834e610
s->pos=0  newpos=0  new_bufpos=0  buflen=0
Checking for NuppelVideo
dvb_streaming_read(2048)
dvb_streaming_read, attempt N. 5 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 4 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 3 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 2 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 1 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, return 0 bytes
DEMUXER: freeing demuxer at 0x834e610
s->pos=0  newpos=0  new_bufpos=0  buflen=0
Checking for REAL
dvb_streaming_read(2048)
dvb_streaming_read, attempt N. 5 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 4 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 3 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 2 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 1 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, return 0 bytes
DEMUXER: freeing demuxer at 0x834e610
s->pos=0  newpos=0  new_bufpos=0  buflen=0
Checking for SMJPEG
dvb_streaming_read(2048)
dvb_streaming_read, attempt N. 5 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 4 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 3 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 2 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 1 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, return 0 bytes
DEMUXER: freeing demuxer at 0x834e610
s->pos=0  newpos=0  new_bufpos=0  buflen=0
dvb_streaming_read(2048)
dvb_streaming_read, attempt N. 5 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 4 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 3 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 2 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 1 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, return 0 bytes
DEMUXER: freeing demuxer at 0x834ee78
Searching demuxer type for filename dvb:// ext: (null)
s->pos=0  newpos=0  new_bufpos=0  buflen=0
Checking for MOV
dvb_streaming_read(2048)
dvb_streaming_read, attempt N. 5 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 4 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 3 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 2 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 1 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, return 0 bytes
DEMUXER: freeing demuxer at 0x834ee78
s->pos=0  newpos=0  new_bufpos=0  buflen=0
Checking for VIVO
dvb_streaming_read(2048)
dvb_streaming_read, attempt N. 5 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 4 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 3 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 2 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 1 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, return 0 bytes
DEMUXER: freeing demuxer at 0x834ee78
s->pos=0  newpos=0  new_bufpos=0  buflen=0
s->pos=0  newpos=0  new_bufpos=4  buflen=0
dvb_streaming_read(2048)
dvb_streaming_read, attempt N. 5 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 4 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 3 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 2 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 1 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, return 0 bytes
DEMUXER: freeing demuxer at 0x834ee78
s->pos=0  newpos=0  new_bufpos=0  buflen=0
dvb_streaming_read(2048)
dvb_streaming_read, attempt N. 5 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 4 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 3 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 2 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 1 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, return 0 bytes
DEMUXER: freeing demuxer at 0x834ee78
s->pos=0  newpos=0  new_bufpos=0  buflen=0
dvb_streaming_read(2048)
dvb_streaming_read, attempt N. 5 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 4 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 3 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 2 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 1 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, return 0 bytes
DEMUXER: freeing demuxer at 0x834ee78
s->pos=0  newpos=0  new_bufpos=0  buflen=0
dvb_streaming_read(2048)
dvb_streaming_read, attempt N. 5 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 4 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 3 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 2 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 1 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, return 0 bytes
DEMUXER: freeing demuxer at 0x834ee78
s->pos=0  newpos=0  new_bufpos=0  buflen=0
dvb_streaming_read(2048)
dvb_streaming_read, attempt N. 5 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 4 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 3 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 2 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 1 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, return 0 bytes
DEMUXER: freeing demuxer at 0x834ee78
s->pos=0  newpos=0  new_bufpos=0  buflen=0
dvb_streaming_read(2048)
dvb_streaming_read, attempt N. 5 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 4 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 3 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 2 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 1 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, return 0 bytes
DEMUXER: freeing demuxer at 0x834ee78
s->pos=0  newpos=0  new_bufpos=0  buflen=0
Checking for PVA
dvb_streaming_read(2048)
dvb_streaming_read, attempt N. 5 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 4 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 3 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 2 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 1 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, return 0 bytes
Failed: PVA
DEMUXER: freeing demuxer at 0x834ee78
s->pos=0  newpos=0  new_bufpos=0  buflen=0
Checking for MPEG-TS...
dvb_streaming_read(2048)
dvb_streaming_read, attempt N. 5 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 4 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 3 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 2 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 1 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, return 0 bytes
THIS DOESN'T LOOK LIKE AN MPEG-TS FILE!
TRIED UP TO POSITION 0, FOUND 0, packet_size= -256
s->pos=0  newpos=0  new_bufpos=0  buflen=0
DEMUXER: freeing demuxer at 0x834ee78
s->pos=0  newpos=0  new_bufpos=0  buflen=0
dvb_streaming_read(2048)
dvb_streaming_read, attempt N. 5 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 4 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 3 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 2 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 1 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, return 0 bytes
s->pos=0  newpos=0  new_bufpos=0  buflen=0
MPEG Stream reached EOF
ds_fill_buffer: EOF reached (stream: video)
MPEG packet stats: p100: 0  p101: 0 p1B6: 0 p12x: 0 sli: 0 a: 0 b: 0 c: 0 idr: 0 sps: 0 pps: 0 PES: 0  MP3: 0
Not MPEG System Stream format... (maybe Transport Stream?)
DEMUXER: freeing demuxer at 0x834ee78
s->pos=0  newpos=0  new_bufpos=0  buflen=0
dvb_streaming_read(2048)
dvb_streaming_read, attempt N. 5 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 4 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 3 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 2 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 1 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, return 0 bytes
head_check failed
DEMUXER: freeing demuxer at 0x834ee78
s->pos=0  newpos=0  new_bufpos=0  buflen=0
ty:Parsing a chunk
s->pos=0  newpos=0  new_bufpos=0  buflen=0
dvb_streaming_read(2048)
dvb_streaming_read, attempt N. 5 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 4 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 3 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 2 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, attempt N. 1 failed with errno 11 when reading 2048 bytes
dvb_streaming_read, return 0 bytes
s->pos=0  newpos=0  new_bufpos=0  buflen=0
ty:ty header size 0
ty:file end_pos   0
 
ty:wanted current offset 0
ds_fill_buffer: EOF reached (stream: video)
DEMUXER: freeing demuxer at 0x834ee78
 
 
*** uninit(0x48)
 
[[[uninit getch2]]]
Config poped level=2
Config poped level=1
 
*** uninit(0x80)
vo: x11 uninit called but X11 not inited..
 
Exiting... (End of file)
max framesize was 0 bytes
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.