[Mplayer-dvb] Record frome dvb stream

Nico nsabbi at tiscali.it
Sun Nov 30 17:26:20 CET 2003



tarass at club-internet.fr wrote:

> Le 11/30/2003 04:38 PM, Nico a joliment écrit :
>
>> a misnomer for the current driver API: V. 3
>
>
> Sorry, what is a misnomer ? I have a lack in vocabulary ;-)

a wrong name

>
>>
>> so how does it work when you load dvb-core properly?
>> Is the problem still present?
>
>
> Yes, exactely the same.
>
> but :
>
> mencode -of mpeg -o file.mpg -ovc copy -oac copy /dev/.../dvr0 -endpos 
> 00:00:20
>
> works fine with cvs version, as with pre2 version I hadn't the sound.
> cpu charge is 10% maximum

it's another way of recording, but it depends on "szap  -r" to work.
the cpu load is low because that encoding is not much more than a copy 
in mpeg-ps format
of the dvb content.

>
> During the encoding I have error messages : 


please, include the command line on top

>
>
> MEncoder dev-CVS-031130-11:22-3.2.2 (C) 2000-2003 MPlayer Team
>
> CPU: Advanced Micro Devices Athlon 4 /Athlon MP/XP Palomino 1467 MHz 
> (Family: 6, Stepping: 2)
> Detected cache-line size is 64 bytes
> CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
> Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE
>
> Reading /home/nico/.mplayer/codecs.conf: Can't open 
> '/home/nico/.mplayer/codecs.conf': Aucun fichier ou répertoire de ce type
> Reading /usr/local/etc/mplayer/codecs.conf: Can't open 
> '/usr/local/etc/mplayer/codecs.conf': Aucun fichier ou répertoire de 
> ce type
> Using built-in default codecs.conf.
> File not found: 'frameno.avi'
> Failed to open frameno.avi
> Reading config file /home/nico/.mplayer/mencoder: Aucun fichier ou 
> répertoire de ce type
> success: format: 0  data: 0x0 - 0x0
> TS file format detected.
> DEMUX OPEN, AUDIO_ID: -1, VIDEO_ID: -1, SUBTITLE_ID: -1,
> PROBING UP TO 2000000, PROG: 0
> VIDEO MPEG2(pid=160)...AUDIO MP2(pid=80) NO SUBS (yet)!  PROGRAM N. 0
> Opened TS demuxer, audio: 50(pid 80), video: 10000002(pid 160)...POS=2080
> VIDEO:  MPEG2  720x576  (aspect 2)  25,000 fps  5460,0 kbps (682,5 
> kbyte/s)
> [V] filefmt:29  fourcc:0x10000002  size:720x576  fps:25,00  ftime:=0,0400
> ========================================================================== 
>
> Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
> MP3lib: init layer2&3 finished, tables done
> AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 24000->192000 (192,0 kbit)
> Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
> ========================================================================== 
>
> Limiting audio preload to 0.4s
> Increasing audio density to 4
> videocodec: framecopy (720x576 24bpp fourcc=10000002)
> audiocodec: framecopy (format=50 chans=2 rate=48000 bits=16 bps=24000 
> sample=1)
> Writing AVI header...
> Pos:   0,0s      1f ( 0%)   0fps Trem:   0min   0mb  A-V:0,000 [0:0] 
> Pos:   0,1s      2f ( 0%)   0fps Trem:   0min   0mb  A-V:-0,004 [0:0] 
> Pos:   0,1s      3f ( 0%)   0fps Trem:   0min   0mb  A-V:-0,008 [0:0] 
> Pos:   0,2s      4f ( 0%)   0fps Trem:   0min   0mb  A-V:-0,012 [0:0] 
> Pos:   0,2s      5f ( 0%)   0fps Trem:   0min   0mb  A-V:-0,016 [0:0] 
> Pos:   0,2s      6f ( 0%)   0fps Trem:   0min   0mb  A-V:-0,020 [0:0] 
> Pos:   0,3s      7f ( 0%)   0fps Trem:   0min   0mb  A-V:-0,024 [0:0] 
> Pos:   0,3s      8f ( 0%)   0fps Trem:   0min   0mb  A-V:-0,028 [0:0] 
> Pos:   0,4s      9f ( 0%)   0fps Trem:   0min   0mb  A-V:-0,032 [0:0] 
> Pos:   0,4s     10f ( 0%)   0fps Trem:   0min   0mb  A-V:-0,036 [0:0] 
> Pos:   0,4s     11f ( 0%)   0fps Trem:   0min   0mb  A-V:-0,040 [0:0] 
> Pos:   0,5s     12f ( 0%)   0fps Trem:   0min   0mb  A-V:-0,044 [0:0] 
> Pos:   0,5s     13f ( 0%)   0fps Trem:   0min   0mb  A-V:-0,048 [0:0] 
> Pos:   0,6s     14f ( 0%)   0fps Trem:   0min   0mb  A-V:-0,052 [0:0] 
> Pos:   0,6s     15f ( 0%)   0fps Trem:   0min   0mb  A-V:-0,056 [0:0] 
> Pos:   0,6s     16f ( 0%)   0fps Trem:   0min   0mb  A-V:-0,060 
> [0:192] Pos:   0,7s     17f ( 0%)   0fps Trem:   0min   0mb  
> A-V:-0,064 [0:192] Pos:   0,7s     18f ( 0%)   0fps Trem:   0min   
> 0mb  A-V:-0,068 [0:192] Pos:   0,8s     19f ( 0%)   0fps Trem:   
> 0min   0mb  A-V:-0,072 [0:192] Pos:   0,8s     20f ( 0%)   0fps 
> Trem:   0min   0mb  A-V:-0,076 [0:192] Pos:   0,8s     21f ( 0%)   
> 0fps Trem:   0min   0mb  A-V:-0,080 [0:192] Pos:   0,9s     22f ( 
> 0%)   0fps Trem:   0min   0mb  A-V:-0,084 [0:192]
> 1 duplicate frame(s)!
> Unknown block type, possibly non-MPEG stream!
> Pos:   1,0s     23f ( 0%)  17fps Trem:   0min   0mb  A-V:-0,048 
> [0:192] Pos:   1,0s     24f ( 0%)  18fps Trem:   0min   0mb  
> A-V:-0,052 [0:192] Pos:   1,0s     25f ( 0%)  19fps Trem:   0min   
> 0mb  A-V:-0,056 [3369:192] Pos:   1,1s     26f ( 0%)  20fps Trem:   
> 0min   0mb A-V:-0,060 [3292:192] Pos:   1,1s     27f ( 0%)  20fps 
> Trem:   0min 0mb  A-V:-0,064 [3222:192] Pos:   1,2s     28f ( 0%)  
> 18fps Trem:   0min   0mb  A-V:-0,068 [3229:192] Pos:   1,2s     29f ( 
> 0%)  19fps Trem: 0min   0mb  A-V:-0,072 [3165:192] Pos:   1,2s     30f 
> ( 0%)  20fps Trem:   0min   0mb  A-V:-0,076 [3102:192] Pos:   1,3s     
> 31f ( 0%)  20fps Trem:   0min   0mb  A-V:-0,080 [3123:192] Pos:   
> 1,3s     32f ( 0%) 21fps Trem:   0min   0mb  A-V:-0,084 [3067:192]
> 1 duplicate frame(s)!
> Unknown block type, possibly non-MPEG stream!
> Pos:   1,4s     33f ( 0%)  22fps Trem:   0min   0mb  A-V:-0,048 
> [2940:192] Pos:   1,4s     34f ( 0%)  19fps Trem:   0min   0mb 
> A-V:-0,052 [2970:192] Pos:   1,5s     35f ( 0%)  20fps Trem:   0min 
> 0mb  A-V:-0,056 [2960:192] Pos:   1,5s     36f ( 0%)  21fps Trem:   
> 0min   0mb  A-V:-0,060 [2971:192] Pos:   1,6s     37f ( 0%)  21fps 
> Trem: 0min   0mb  A-V:-0,064 [3157:192] Pos:   1,6s     38f ( 0%)  
> 22fps Trem:   0min   0mb  A-V:-0,068 [3120:192] Pos:   1,6s     39f ( 
> 0%)  19fps Trem:   0min   0mb  A-V:-0,072 [3084:192] Pos:   1,7s     
> 40f ( 0%) 20fps Trem:   0min   0mb  A-V:-0,076 [3103:192] Pos:   
> 1,7s     41f ( 0%)  20fps Trem:   0min   0mb  A-V:-0,080 [3069:192] 
> Pos:   1,8s     42f ( 0%)  21fps Trem:   0min   0mb  A-V:-0,084 
> [3039:192]
> 1 duplicate frame(s)!
> Unknown block type, possibly non-MPEG stream!
> Pos:   1,8s     43f ( 0%)  21fps Trem:   0min   0mb  A-V:-0,048 
> [2984:192] Pos:   1,9s     44f ( 0%)  22fps Trem:   0min   0mb 
> A-V:-0,052 [2968:192] Pos:   1,9s     45f ( 0%)  20fps Trem:   0min 
> 0mb  A-V:-0,056 [2979:192] Pos:   2,0s     46f ( 0%)  20fps Trem:   
> 0min   0mb  A-V:-0,060 [2992:192] Pos:   2,0s     47f ( 0%)  21fps 
> Trem: 0min   0mb  A-V:-0,064 [2993:192] Pos:   2,0s     48f ( 0%)  
> 21fps Trem:   0min   0mb  A-V:-0,068 [3002:192] Pos:   2,1s     49f ( 
> 0%)  21fps Trem:   0min   0mb  A-V:-0,072 [3204:192] Pos:   2,1s     
> 50f ( 0%) 22fps Trem:   0min   0mb  A-V:-0,076 [3175:192] Pos:   
> 2,2s     51f ( 0%)  20fps Trem:   0min   0mb  A-V:-0,080 [3143:192] 
> Pos:   2,2s     52f ( 0%)  21fps Trem:   0min   0mb  A-V:-0,084 
> [3140:192]
> 1 duplicate frame(s)!
> Unknown block type, possibly non-MPEG stream!
> Pos:   2,3s     53f ( 0%)  21fps Trem:   0min   0mb  A-V:-0,048 
> [3050:192] Pos:   2,3s     54f ( 0%)  22fps Trem:   0min   0mb 
> A-V:-0,052 [3020:192] Pos:   2,4s     55f ( 0%)  22fps Trem:   0min 
> 0mb  A-V:-0,056 [3028:192] Pos:   2,4s     56f ( 0%)  21fps Trem:   
> 0min   0mb  A-V:-0,060 [2997:192] Pos:   2,4s     57f ( 0%)  21fps 
> Trem: 0min   0mb  A-V:-0,064 [2968:192] Pos:   2,5s     58f ( 0%)  
> 21fps Trem:   0min   0mb  A-V:-0,068 [2978:192] Pos:   2,5s     59f ( 
> 0%)  22fps Trem:   0min   0mb  A-V:-0,072 [2956:192] Pos:   2,6s     
> 60f ( 0%) 22fps Trem:   0min   0mb  A-V:-0,076 [2957:192] Pos:   
> 2,6s     61f ( 0%)  23fps Trem:   0min   0mb  A-V:-0,080 [3066:192] 
> Pos:   2,6s     62f ( 0%)  20fps Trem:   0min   0mb  A-V:-0,084 
> [3041:192]
> 1 duplicate frame(s)!
> Unknown block type, possibly non-MPEG stream!
> Pos:   2,7s     63f ( 0%)  21fps Trem:   0min   0mb  A-V:-0,048 
> [2968:192] Pos:   2,8s     64f ( 0%)  21fps Trem:   0min   0mb 
> A-V:-0,052 [2976:192] Pos:   2,8s     65f ( 0%)  21fps Trem:   0min 
> 0mb  A-V:-0,056 [2948:192] Pos:   2,8s     66f ( 0%)  22fps Trem:   
> 0min   0mb  A-V:-0,060 [2925:192] Pos:   2,9s     67f ( 0%)  22fps 
> Trem: 0min   0mb  A-V:-0,064 [2936:192] Pos:   2,9s     68f ( 0%)  
> 21fps Trem:   0min   0mb  A-V:-0,068 [2920:192] Pos:   3,0s     69f ( 
> 0%)  21fps Trem:   0min   0mb  A-V:-0,072 [2925:192] Pos:   3,0s     
> 70f ( 0%) 21fps Trem:   0min   0mb  A-V:-0,076 [2927:192] Pos:   
> 3,0s     71f ( 0%)  22fps Trem:   0min   0mb  A-V:-0,080 [2930:192] 
> Pos:   3,1s     72f ( 0%)  22fps Trem:   0min   0mb  A-V:-0,084 
> [2931:192]
> 1 duplicate frame(s)!
> Unknown block type, possibly non-MPEG stream!
> Pos:   3,2s     73f ( 0%)  22fps Trem:   0min   0mb  A-V:-0,048 
> [3004:192] Pos:   3,2s     74f ( 0%)  21fps Trem:   0min   0mb 
> A-V:-0,052 [2985:192] Pos:   3,2s     75f ( 0%)  22fps Trem:   0min 
> 0mb  A-V:-0,056 [2969:192] Pos:   3,3s     76f ( 0%)  22fps Trem:   
> 0min   0mb  A-V:-0,060 [2982:192] Pos:   3,3s     77f ( 0%)  22fps 
> Trem: 0min   0mb  A-V:-0,064 [2968:192] Pos:   3,4s     78f ( 0%)  
> 23fps Trem:   0min   0mb  A-V:-0,068 [2954:192] Pos:   3,4s     79f ( 
> 0%)  21fps Trem:   0min   0mb  A-V:-0,072 [2965:192] Pos:   3,4s     
> 80f ( 0%) 21fps Trem:   0min   0mb  A-V:-0,076 [2951:192] Pos:   
> 3,5s     81f ( 0%)  21fps Trem:   0min   0mb  A-V:-0,080 [2938:192] 
> Pos:   3,5s     82f ( 0%)  21fps Trem:   0min   0mb  A-V:-0,084 
> [2947:192]
> 1 duplicate frame(s)!
> Unknown block type, possibly non-MPEG stream!
> Pos:   3,6s     83f ( 0%)  22fps Trem:   0min   0mb  A-V:-0,048 
> [2910:192] Pos:   3,6s     84f ( 0%)  21fps Trem:   0min   0mb 
> A-V:-0,052 [2919:192] Pos:   3,7s     85f ( 0%)  21fps Trem:   0min 
> 0mb  A-V:-0,056 [3037:192] Pos:   3,7s     86f ( 0%)  21fps Trem:   
> 0min   0mb  A-V:-0,060 [3021:192] Pos:   3,8s     87f ( 0%)  22fps 
> Trem: 0min   0mb  A-V:-0,064 [3006:192] Pos:   3,8s     88f ( 0%)  
> 22fps Trem:   0min   0mb  A-V:-0,068 [3009:192] Pos:   3,8s     89f ( 
> 0%)  22fps Trem:   0min   0mb  A-V:-0,072 [2992:192] Pos:   3,9s     
> 90f ( 0%) 22fps Trem:   0min   0mb  A-V:-0,076 [2977:192] Pos:   
> 3,9s     91f ( 0%)  22fps Trem:   0min   0mb  A-V:-0,080 [2979:192] 
> Pos:   4,0s     92f ( 0%)  22fps Trem:   0min   0mb  A-V:-0,084 
> [2962:192]
> 1 duplicate frame(s)!
> Unknown block type, possibly non-MPEG stream!
> Pos:   4,0s     93f ( 0%)  22fps Trem:   0min   0mb  A-V:-0,048 
> [2915:192] Pos:   4,1s     94f ( 0%)  22fps Trem:   0min   0mb 
> A-V:-0,052 [2918:192] Pos:   4,1s     95f ( 0%)  22fps Trem:   0min 
> 0mb  A-V:-0,056 [2905:192] Pos:   4,2s     96f ( 0%)  21fps Trem:   
> 0min   0mb  A-V:-0,060 [2902:192] Pos:   4,2s     97f ( 0%)  22fps 
> Trem: 0min   0mb  A-V:-0,064 [2973:192] Pos:   4,2s     98f ( 0%)  
> 22fps Trem:   0min   0mb  A-V:-0,068 [2957:192] Pos:   4,3s     99f ( 
> 0%)  22fps Trem:   0min   0mb  A-V:-0,072 [2943:192] Pos:   4,3s    
> 100f ( 0%) 22fps Trem:   0min   0mb  A-V:-0,076 [2949:192] Pos:   
> 4,4s    101f ( 0%)  22fps Trem:   0min   0mb  A-V:-0,080 [2935:192] 
> Pos:   4,4s    102f ( 0%)  21fps Trem:   0min   0mb  A-V:-0,083 
> [2922:192]
> 1 duplicate frame(s)!
> Unknown block type, possibly non-MPEG stream!
> Pos:   4,5s    103f ( 0%)  22fps Trem:   0min   0mb  A-V:-0,045 
> [2938:192] Pos:   4,5s    104f ( 0%)  22fps Trem:   0min   0mb 
> A-V:-0,047 [2918:192] Pos:   4,6s    105f ( 0%)  22fps Trem:   0min 
> 0mb  A-V:-0,049 [2923:192] Pos:   4,6s    106f ( 0%)  22fps Trem:   
> 0min   0mb  A-V:-0,051 [2922:192] Pos:   4,6s    107f ( 0%)  21fps 
> Trem: 0min   0mb  A-V:-0,055 [2925:192] Pos:   4,7s    108f ( 0%)  
> 22fps Trem:   0min   0mb  A-V:-0,059 [2931:192] Pos:   4,7s    109f ( 
> 0%)  22fps Trem:   0min   0mb  A-V:-0,063 [3022:192] Pos:   4,8s    
> 110f ( 0%) 22fps Trem:   0min   0mb  A-V:-0,067 [3007:192] Pos:   
> 4,8s    111f ( 0%)  22fps Trem:   0min   0mb  A-V:-0,071 [2988:192] 
> Pos:   4,8s    112f ( 0%)  22fps Trem:   0min   0mb  A-V:-0,075 
> [2997:192] Pos:   4,9s 113f ( 0%)  23fps Trem:   0min   0mb  
> A-V:-0,079 [2981:192] Pos:   4,9s    114f ( 0%)  22fps Trem:   0min   
> 0mb  A-V:-0,083 [2968:192]
> 1 duplicate frame(s)!
> Unknown block type, possibly non-MPEG stream!
> Pos:   5,0s    115f ( 0%)  22fps Trem:   0min   0mb  A-V:-0,047 
> [2948:192] Pos:   5,0s    116f ( 0%)  22fps Trem:   0min   0mb 
> A-V:-0,051 [2932:192] Pos:   5,1s    117f ( 0%)  22fps Trem:   0min 
> 0mb  A-V:-0,055 [2930:192] Pos:   5,1s    118f ( 0%)  22fps Trem:   
> 0min   0mb  A-V:-0,059 [2937:192] Pos:   5,2s    119f ( 0%)  21fps 
> Trem: 0min   0mb  A-V:-0,056 [2937:192] Pos:   5,2s    120f ( 0%)  
> 22fps Trem:   0min   0mb  A-V:-0,053 [2945:192] Pos:   5,2s    121f ( 
> 0%)  22fps Trem:   0min   0mb  A-V:-0,051 [3030:192] Pos:   5,3s    
> 122f ( 0%) 22fps Trem:   0min   0mb  A-V:-0,049 [3016:192] Pos:   
> 5,3s    123f ( 0%)  22fps Trem:   0min   0mb  A-V:-0,047 [2999:192] 
> Pos:   5,4s    124f ( 0%)  22fps Trem:   0min   0mb  A-V:-0,045 
> [3002:192] Pos:   5,4s 125f ( 0%)  22fps Trem:   0min   0mb  
> A-V:-0,049 [2987:192] Pos:   5,4s    126f ( 0%)  22fps Trem:   0min   
> 0mb  A-V:-0,053 [2973:192]
> Writing AVI index...
> Fixing AVI header...
>
> Video stream: 2973,797 kbit/s  (371724 bps)  size: 2022182 bytes  
> 5,440 secs  126 frames
>
> Audio stream:  192,000 kbit/s  (24000 bps)  size: 144000 bytes  6,000 
> secs
>
> Here I encode a short time, but for a longuer one, the errors become 
> less frequentely.

the mpeg muxer is quite new, and needs improvements, but works acceptably.
If you want a more compliant mpeg stream you should install libdvb from 
www.metzlerbros.de
and run
dvb-mplex -t DVD -o dest.mpg orig.mpg

>
>
> When I play the output file, there is a sound-video delay about -0.25. 

it's only an initial asynchrony, it will vanish after few seconds. If 
you want to remove it
add -v 0.25 to dvb-mplex

>
> Cheers. Nicolas.
>
I still don't understand why encoding directly from dvb:// doesn't work 
for you.
can you please run

mencoder -v -o file.avi -oac copy -ovc xvid -vf scale=512:384  dvb://   
 >& log.txt

^C after a couple of minutes
and send to may email address log.txt?

Thanks,
    Nico



More information about the MPlayer-dvb mailing list