Hello
I can't play by mplayer-plugin the h264-video .ts file with standard definition. But with command mplayer -vo mpegpes -ao mpegpes -nolirc -msglevel all=5 /data/mplayer/video/1muz.ts everything is ok
arvdr://data/mplayer/Mult# /usr/bin/mplayer -vo mpegpes -ao mpegpes -nolirc -msglevel all=5 /data/mplayer/video/1muz.ts
MPlayer 1.0pre8-3.3.5 (C) 2000-2006 MPlayer Team CPU: AMD Sempron(tm) Processor 2800+ (Family: 15, Model: 44, Stepping: 2) CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1 Compiled with runtime CPU detection. Playing /data/mplayer/video/1muz.ts. TS file format detected. DEMUX OPEN, AUDIO_ID: -1, VIDEO_ID: -1, SUBTITLE_ID: -2, PROBING UP TO 2000000, PROG: 0 VIDEO H264(pid=538)...AUDIO MPA(pid=725) NO SUBS (yet)! PROGRAM N. 18 Opened TS demuxer, audio: 50(pid 725), video: 10000005(pid 538)...POS=752, PROBE=2000000 FPS seems to be: 25.000000 ========================================================================== Opening audio decoder: [mp3lib] MPEG layer-2, layer-3 AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000) Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3) ========================================================================== Opening /dev/dvb/adapter0/video0+audio0 ========================================================================== Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264) ========================================================================== AO: [mpegpes] 48000Hz 2ch s16le (2 bytes per sample) Starting playback... VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12) Could not find matching colorspace - retrying with -vf scale... Opening video filter: [scale] Opening video filter: [lavc] VDec: using Planar YV12 as output csp (no 0) Movie-Aspect is 1.36:1 - prescaling to correct movie aspect. [mpeg1video @ 0x86b8c00]removing common factors from framerate VO: [mpegpes] 720x576 => 786x576 Mpeg PES A:92660.3 V:92661.6 A-V: -1.371 ct: -0.196 50/ 50 34% 45% 0.4% 0 0
Hereafter there's unsuccessful log with mplayer-plugin
Jul 12 00:30:01 arvdr logger: *** Starting mplayer.sh Version 0.8.7 Jul 12 00:30:01 arvdr logger: *** DEBUG: Variable CFGFIL has value "/usr/bin/mplayer.sh.conf" Jul 12 00:30:01 arvdr logger: *** DEBUG: Variable USEAC3 has value "false" Jul 12 00:30:01 arvdr logger: *** DEBUG: Variable AC3AOUT has value "-ac hwac3" Jul 12 00:30:01 arvdr logger: *** DEBUG: Variable TV_ASPECT has value "4/3" Jul 12 00:30:01 arvdr logger: *** DEBUG: Variable PAL has value "true" Jul 12 00:30:01 arvdr logger: *** DEBUG: Variable NTSC has value "true" Jul 12 00:30:01 arvdr logger: *** DEBUG: Variable USE_SPEED has value "false" Jul 12 00:30:01 arvdr logger: *** DEBUG: Variable DETC_FILTER has value "detc=dr=2:am=1" Jul 12 00:30:01 arvdr logger: *** DEBUG: Variable MPLAYER has value "/usr/bin/mplayer" Jul 12 00:30:01 arvdr logger: *** DEBUG: Variable VOP has value "lavc=5000" Jul 12 00:30:01 arvdr logger: *** DEBUG: Variable VO has value "mpegpes:card=1" Jul 12 00:30:01 arvdr logger: *** DEBUG: Variable AO has value "mpegpes:card=1" Jul 12 00:30:01 arvdr logger: *** DEBUG: Variable CACHE has value "15777" Jul 12 00:30:01 arvdr logger: *** DEBUG: Variable CACHESTR has value "-cache 15777" Jul 12 00:30:01 arvdr logger: *** DEBUG: Variable FRAMEDROP has value "false" Jul 12 00:30:01 arvdr logger: *** DEBUG: Variable FDSTR has value "" Jul 12 00:30:01 arvdr logger: *** DEBUG: Variable LIRCRC has value "/video/.lircrc" Jul 12 00:30:01 arvdr logger: *** DEBUG: Variable LIRCSTR has value "-lircconf /video/.lircrc" Jul 12 00:30:01 arvdr logger: *** DEBUG: Variable SUBTITLE has value " -subpos 80 -sub-bg-color 0 -sub-bg-alpha 30" Jul 12 00:30:01 arvdr logger: *** DEBUG: Variable REMOTE has value "-slave -nolirc" Jul 12 00:30:01 arvdr logger: *** DEBUG: Variable USERDEF has value "" Jul 12 00:30:01 arvdr logger: *** DEBUG: Variable XResPAL has value "352 480 528 544 704 720" Jul 12 00:30:01 arvdr logger: *** DEBUG: Variable XResNTSC has value "352 480 512 544 640 704 720" Jul 12 00:30:01 arvdr logger: *** DEBUG: Variable SLOW_CPU has value "false" Jul 12 00:30:01 arvdr logger: *** DEBUG: *** Option DVDFiles not set correctly! You will not be able to play VCD/DVD "" Jul 12 00:30:01 arvdr logger: *** DEBUG: Variable DVDFiles has value "" Jul 12 00:30:01 arvdr logger: *** DEBUG: *** Option DVD not set correctly! You will not be able to play VCD/DVD "" Jul 12 00:30:01 arvdr logger: *** DEBUG: Variable DVD has value "" Jul 12 00:30:01 arvdr logger: *** DEBUG: Variable DVDLANG has value "en" Jul 12 00:30:01 arvdr logger: *** DEBUG: Variable DVDOPTIONS has value "" Jul 12 00:30:01 arvdr logger: *** DEBUG: Variable VCDOPTIONS has value "" Jul 12 00:30:01 arvdr logger: *** DEBUG: Variable MPEG_DIRECT has value "true" Jul 12 00:30:01 arvdr logger: *** DEBUG: Variable SUFFIX has value "z.ts" Jul 12 00:30:01 arvdr logger: *** DEBUG: Variable MPLAYER_V1 has value "true" Jul 12 00:30:01 arvdr logger: *** DEBUG: Calling getvidxy function to analyze source video stream ... Jul 12 00:30:01 arvdr lircd-0.8.0[7419]: accepted new client on /dev/lircd Jul 12 00:30:01 arvdr lircd-0.8.0[7419]: removed client Jul 12 00:30:01 arvdr logger: *** DEBUG: MPLAYER_RETURN: "0" Jul 12 00:30:01 arvdr logger: *** DEBUG: parsed output for ORIG_X: "0" Jul 12 00:30:02 arvdr logger: *** DEBUG: parsed output for ORIG_Y: "0" Jul 12 00:30:02 arvdr logger: *** DEBUG: parsed output for ORIG_FPS: "25.000" Jul 12 00:30:02 arvdr logger: *** DEBUG: parsed output for ORIG_ASPECT: "0.0000" Jul 12 00:30:02 arvdr logger: *** DEBUG: parsed output for VIDEO_FORMAT: "0x10000005" Jul 12 00:30:02 arvdr logger: *** DEBUG: parsed output for AUDIO_CODEC: "mp3" Jul 12 00:30:02 arvdr logger: *** INFO: Source Video has Resolution of 0 x 0 ... Jul 12 00:30:02 arvdr logger: *** FATAL: something went wrong analyzing the video; check your mplayer version ... Jul 12 00:30:05 arvdr vdr: [7564] mplayer: player thread ended (pid=7564)
I don't understand why there's this messages
Jul 12 00:30:01 arvdr logger: *** DEBUG: parsed output for ORIG_X: "0" Jul 12 00:30:02 arvdr logger: *** DEBUG: parsed output for ORIG_Y: "0"
could you anybody help to me ?
Igor
Igor goga777@bk.ru wrote:
This seems like a limitation of mplayer. The mplayer.sh script tries to get some information about the clip through calling mplayer with "mplayer -identify". In every case I've seen so far mplayer prints the resolution (and other info) about the clip. This output is parsed by the mplayer script. In your case - for some unknown reason - mplayer doesn't output a valid resolution of the clip. Hence the script fails...
You should try to run 'mplayer -identify -frames 0 /your/h264-video.ts' and look for ID_VIDEO_WIDTH and ID_VIDEO_HEIGHT. If you can't find this output or if it is 0, try it once again with '-frames 10'. If this still doesn't show the desired output, please take it to the mplayer developers at mplayerhq.hu. But if '-frames 10' (or any other value) gives you a reasonable output, please report it back to me.
Cheers, Juri
yes, you are right - I will report to mplayer's developpers because
ID_FILENAME=/data/mplayer/video/1muz.ts ID_DEMUXER=mpegts ID_VIDEO_FORMAT=0x10000005 ID_VIDEO_BITRATE=0
ID_VIDEO_WIDTH=0 ID_VIDEO_HEIGHT=0
ID_VIDEO_FPS=25.000 ID_VIDEO_ASPECT=0.0000 ID_AUDIO_FORMAT=80 ID_AUDIO_BITRATE=0 ID_AUDIO_RATE=0 ID_AUDIO_NCH=0 ID_LENGTH=0.00
arvdr:~# /usr/bin/mplayer_svn -vo mpegpes -ao mpegpes -nolirc -identify -frames 10 -msglevel all=6 /data/mplayer/video/1muz.ts
MPlayer dev-SVN-r23741-4.1.2 (C) 2000-2007 MPlayer Team CPU: AMD Sempron(tm) Processor 2800+ (Family: 15, Model: 44, Stepping: 2) CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1 Compiled with runtime CPU detection. get_path('codecs.conf') -> '/root/.mplayer/codecs.conf' Reading /root/.mplayer/codecs.conf: Can't open '/root/.mplayer/codecs.conf': No such file or directory Reading /usr/local/etc/mplayer/codecs.conf: Can't open '/usr/local/etc/mplayer/codecs.conf': No such file or directory Using built-in default codecs.conf. Configuration: --enable-runtime-cpudetection --enable-largefiles --enable-menu --enable-dvb CommandLine: '-vo' 'mpegpes' '-ao' 'mpegpes' '-nolirc' '-identify' '-frames' '10' '-msglevel' 'all=6' '/data/mplayer/video/1muz.ts' init_freetype get_path('font/font.desc') -> '/root/.mplayer/font/font.desc' font: can't open file: /root/.mplayer/font/font.desc font: can't open file: /usr/local/share/mplayer/font/font.desc Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay get_path('fonts') -> '/root/.mplayer/fonts' Using nanosleep() timing get_path('input.conf') -> '/root/.mplayer/input.conf' Can't open input config file /root/.mplayer/input.conf: No such file or directory Can't open input config file /usr/local/etc/mplayer/input.conf: No such file or directory Falling back on default (hardcoded) input config get_path('1muz.ts.conf') -> '/root/.mplayer/1muz.ts.conf'
Playing /data/mplayer/video/1muz.ts. get_path('sub/') -> '/root/.mplayer/sub/' [file] File size is 5831008 bytes STREAM: [file] /data/mplayer/video/1muz.ts STREAM: Description: File STREAM: Author: Albeu STREAM: Comment: based on the code from ??? (probably Arpi) Checking for YUV4MPEG2 ASF_check: not ASF guid! Checking for NuppelVideo Checking for REAL Checking for SMJPEG Searching demuxer type for filename /data/mplayer/video/1muz.ts ext: .ts LAVF_check: MPEG2 transport stream format Checking for Nullsoft Streaming Video Checking for MOV Checking for VIVO header block 1 size: 64 AVS: avs_check_file - attempting to open file /data/mplayer/video/1muz.ts AVS: File is too big, aborting... Checking for PVA Checking for MPEG-TS... TRIED UP TO POSITION 0, FOUND 47, packet_size= 188, SEEMS A TS? 1 GOOD CC: 31, BAD CC: 0 TS file format detected. DEMUX OPEN, AUDIO_ID: -1, VIDEO_ID: -1, SUBTITLE_ID: -2, Checking for MPEG-TS... TRIED UP TO POSITION 0, FOUND 47, packet_size= 188, SEEMS A TS? 1 GOOD CC: 31, BAD CC: 0 PROBING UP TO 0, PROG: 0 COLLECT_SECTION, start: 64, size: 184, collected: 0 SKIP: 0+1, TID: 0, TLEN: 13, COLLECTED: 184 PARSE_PAT: section_len: 13, section 0/0 PROG: 18 (1-th of 1), PMT: 278 COLLECT_SECTION, start: 64, size: 184, collected: 0 SKIP: 0+1, TID: 2, TLEN: 46, COLLECTED: 184 FILL_PMT(prog=18), PMT_len: 184, IS_START: 64, TS_PID: 278, SIZE=184, M=0, ES_CNT=0, IDX=0, PMT_PTR=0x8b29ab0 ...descr id: 0x11, len=1 ...descr id: 0x28, len=4 ...descr id: 0x2a, len=7 PARSE_PMT(18 INDEX 0), STREAM: 0, FOUND pid=0x21a (538), type=0x10000005, ES_DESCR_LENGTH: 18, bytes left: 10 PARSE_PMT(18 INDEX 1), STREAM: 1, FOUND pid=0x2d5 (725), type=0x50, ES_DESCR_LENGTH: 0, bytes left: 5 PARSE_PMT(18 INDEX 2), STREAM: 2, FOUND pid=0x256 (598), type=0xffffffff, ES_DESCR_LENGTH: 0, bytes left: 0 ---------------------------- ID_VIDEO_ID=538 ID_VIDEO_ID=538 ID_VIDEO_ID=538 ID_VIDEO_ID=538
ID_AUDIO_ID=725 COLLECT_SECTION, start: 64, size: 184, collected: 184 SKIP: 0+1, TID: 0, TLEN: 13, COLLECTED: 184 PARSE_PAT: section_len: 13, section 0/0 PROG: 18 (1-th of 1), PMT: 278 COLLECT_SECTION, start: 64, size: 184, collected: 184 SKIP: 0+1, TID: 2, TLEN: 46, COLLECTED: 184 FILL_PMT(prog=18), PMT_len: 184, IS_START: 64, TS_PID: 278, SIZE=184, M=0, ES_CNT=3, IDX=0, PMT_PTR=0x8b29ab0 ...descr id: 0x11, len=1 ...descr id: 0x28, len=4 ...descr id: 0x2a, len=7 PARSE_PMT(18 INDEX 0), STREAM: 0, FOUND pid=0x21a (538), type=0x10000005, ES_DESCR_LENGTH: 18, bytes left: 10 PARSE_PMT(18 INDEX 1), STREAM: 1, FOUND pid=0x2d5 (725), type=0x50, ES_DESCR_LENGTH: 0, bytes left: 5 PARSE_PMT(18 INDEX 2), STREAM: 2, FOUND pid=0x256 (598), type=0xffffffff, ES_DESCR_LENGTH: 0, bytes left: 0 ---------------------------- ID_VIDEO_ID=538 ID_VIDEO_ID=538 ID_VIDEO_ID=538 .............................. .............................. ID_VIDEO_ID=538 ID_VIDEO_ID=538 ID_VIDEO_ID=538 VIDEO H264(pid=538) AUDIO MPA(pid=725) NO SUBS (yet)! PROGRAM N. 18 ==> Found video stream: 0 ID_VIDEO_ID=538
ADDED VIDEO PID 538, type: 10000005 stream n. 0 ==> Found audio stream: 0 ID_AUDIO_ID=725
ADDED AUDIO PID 725, type: 50 stream n. 0 Opened TS demuxer, audio: 50(pid 0), video: 10000005(pid 0)...POS=13912, PROBE=0 Searching for sequence parameter set... COLLECT_SECTION, start: 64, size: 184, collected: 0 SKIP: 0+1, TID: 0, TLEN: 13, COLLECTED: 184 PARSE_PAT: section_len: 13, section 0/0 PROG: 18 (1-th of 1), PMT: 278 COLLECT_SECTION, start: 64, size: 184, collected: 0 SKIP: 0+1, TID: 2, TLEN: 46, COLLECTED: 184 FILL_PMT(prog=18), PMT_len: 184, IS_START: 64, TS_PID: 278, SIZE=184, M=0, ES_CNT=3, IDX=0, PMT_PTR=0x8b29ab0 ...descr id: 0x11, len=1 ...descr id: 0x28, len=4 ...descr id: 0x2a, len=7 PARSE_PMT(18 INDEX 0), STREAM: 0, FOUND pid=0x21a (538), type=0x10000005, ES_DESCR_LENGTH: 18, bytes left: 10 PARSE_PMT(18 INDEX 1), STREAM: 1, FOUND pid=0x2d5 (725), type=0x50, ES_DESCR_LENGTH: 0, bytes left: 5 PARSE_PMT(18 INDEX 2), STREAM: 2, FOUND pid=0x256 (598), type=0xffffffff, ES_DESCR_LENGTH: 0, bytes left: 0 ---------------------------- OK! Searching for picture parameter set... H264: 0x168 OK! Searching for Slice... OK! FPS seems to be: 25.000000 [V] filefmt:29 fourcc:0x10000005 size:0x0 fps:25.00 ftime:=0.0400 get_path('sub/') -> '/root/.mplayer/sub/' ID_FILENAME=/data/mplayer/video/1muz.ts ID_DEMUXER=mpegts ID_VIDEO_FORMAT=0x10000005 ID_VIDEO_BITRATE=0 ID_VIDEO_WIDTH=0 ID_VIDEO_HEIGHT=0 ID_VIDEO_FPS=25.000 ID_VIDEO_ASPECT=0.0000 ID_AUDIO_FORMAT=80 ID_AUDIO_BITRATE=0 ID_AUDIO_RATE=0 ID_AUDIO_NCH=0 ID_LENGTH=0.00 Opening /dev/dvb/adapter0/video0+audio0 ========================================================================== Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family INFO: libavcodec init OK! Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264) ========================================================================== ID_VIDEO_CODEC=ffh264 ========================================================================== Opening audio decoder: [mp3lib] MPEG layer-2, layer-3 dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer. mp3lib: using 3DNow!Ex optimized decore! MP3lib: init layer2&3 finished, tables done MPEG 1.0, Layer II, 48000 Hz 128 kbit Stereo, BPF: 384 Channels: 2, copyright: Yes, original: Yes, CRC: Yes, emphasis: 0 AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000) ID_AUDIO_BITRATE=128000 ID_AUDIO_RATE=48000 ID_AUDIO_NCH=2 Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3) ========================================================================== Building audio filter chain for 48000Hz/2ch/s16le -> 0Hz/0ch/??... [libaf] Adding filter dummy [dummy] Was reinitialized: 48000Hz/2ch/s16le [dummy] Was reinitialized: 48000Hz/2ch/s16le Opening /dev/dvb/adapter0/audio0 AO: [mpegpes] 48000Hz 2ch s16le (2 bytes per sample) AO: Description: DVB audio output AO: Author: A'rpi Building audio filter chain for 48000Hz/2ch/s16le -> 48000Hz/2ch/s16le... [dummy] Was reinitialized: 48000Hz/2ch/s16le [dummy] Was reinitialized: 48000Hz/2ch/s16le ID_AUDIO_CODEC=mp3 Starting playback... [h264 @ 0x8968a00]Unknown NAL code: 20 [ffmpeg] aspect_ratio: 1.363636 VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12) Trying filter chain: vo Could not find matching colorspace - retrying with -vf scale... Opening video filter: [scale] SwScale params: -1 x -1 (-1=no scaling) Trying filter chain: scale vo Opening video filter: [lavc] Trying filter chain: lavc vo VDec: using Planar YV12 as output csp (no 0) Movie-Aspect is 1.36:1 - prescaling to correct movie aspect. ID_VIDEO_ASPECT=1.3636 VO Config (720x576->786x576,flags=0,'MPlayer',0x32315659) [mpeg1video @ 0x8968a00]removing common factors from framerate REQ: flags=0x103 req=0x0 VO: [mpegpes] 720x576 => 786x576 Mpeg PES VO: Description: Mpeg-PES to DVB card VO: Author: A'rpi *** [lavc] Exporting mp_image_t, 720x576x12bpp YUV planar, 622080 bytes *** [vo] Exporting mp_image_t, 720x576x0bpp RGB packed, 0 bytes A:92658.3 V:92659.8 A-V: -1.555 ct: -0.016 5/ 5 ??% ??% ??,?% 0 0
http://bugzilla.mplayerhq.hu/show_bug.cgi?id=867
here is answer from MPlayer's developper
=================================================================== Huh? Why did you put that in the summary, it doesn't even appear anywhere in the output you pasted (and it is irrelevant to the problem anyway). MPEG-TS container does not specify the the resolution, since -identify relies on container info it can't give you the width and height. So I can see no real bug here, you could at most add a feature request to make -identify also print the resolution the decoder detects. ===================================================================
what do you think about this answer ?
Igor goga777@bk.ru wrote:
Well, besides the fact, that it is a bit harsh, I must admit I didn't know that.
By the way: why *are* you trying to play a transport stream with the vdr/mplayer combination?
Cheers, Juri
Because I have a satellite receiver dreambox 7000 and some records (.ts files) from it I coped to VDR.
Igor
-----Original Message----- From: Juri Haberland list-linux.vdr@koschikode.com To: vdr@linuxtv.org Date: Thu, 26 Jul 2007 20:56:17 +0000 (UTC) Subject: Re: [vdr] mplayer-plugin can't play h264 .ts file