On Thu, Oct 30, 2008 at 10:32 AM, Vladimir Mosgalin <mosgalin at vm10124.spb.edu> wrote: >> Hi all, >> I have been trying to solve this problem of sync, but I could not find >> any switch to help me. >> I play the TS file or open a stream in Mplayer and I got problem of sync. >> Output: >> http://pastebin.com/m68debb9a > > Have you tried -demuxer lavf? > > For example, mpeg ts files produced by my canon camcorder are unplayable > without this option. I tried this with a recording from atsc hdtv here in the US and live with latest svn. neither will play. The recording starts using cpu and reading the file and has to be killed. The live file will exit on its own and never plays. ---------------------------------->8---------------------------------------- > mplayer -v -demuxer lavf 2008_09_30_Tue_20:00_Fringe_-_recorder0.mpeg MPlayer dev-SVN-r27867 (C) 2000-2008 MPlayer Team CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ (Family: 15, Model: 43, Stepping: 1) CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1 Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2 get_path('codecs.conf') -> '/home/jisom/.mplayer/codecs.conf' Reading /home/jisom/.mplayer/codecs.conf: Can't open '/home/jisom/.mplayer/codecs.conf': No such file or directory Reading /etc/mplayer/codecs.conf: Can't open '/etc/mplayer/codecs.conf': No such file or directory Using built-in default codecs.conf. Configuration: --cc=x86_64-pc-linux-gnu-gcc --host-cc=x86_64-pc-linux-gnu-gcc --prefix=/usr --confdir=/etc/mplayer --datadir=/usr/share/mplayer --libdir=/usr/lib64 --enable-menu --enable-network --disable-tv-bsdbt848 --disable-ivtv --disable-fribidi --disable-enca --disable-nemesi --disable-vstream --disable-libcdio --disable-cdparanoia --disable-cddb --disable-dvdread-internal --with-dvdread-config=/usr/bin/dvdread-config --with-dvdnav-config=/usr/bin/dvdnav-config --disable-ass --charset=UTF-8 --disable-joystick --disable-unrarexec --disable-tv-teletext --disable-radio-v4l2 --disable-radio-bsdbt848 --disable-live --disable-musepack --disable-pnm --disable-speex --disable-tga --disable-xanim --disable-xvid --disable-libamr_nb --disable-libamr_wb --disable-libdirac-lavc --disable-libdca --disable-libdv --disable-faac --disable-faac-lavc --disable-faad --disable-faad-internal --disable-liblzo --disable-twolame --disable-toolame --disable-libschroedinger-lavc --disable-tremor --disable-tremor-internal --disable-x264-lavc --realcodecsdir=/usr/lib64/codecs --disable-directfb --disable-ggi --disable-md5sum --disable-aa --disable-dga1 --disable-dga2 --disable-fbdev --disable-caca --disable-vidix --disable-vidix-pcidb --disable-zr --disable-gui --enable-xvmc --with-xvmclib=XvMCW --disable-3dfx --disable-tdfxvid --disable-tdfxfb --disable-arts --disable-esd --disable-jack --disable-ladspa --disable-nas --disable-pulse --disable-ossaudio --disable-altivec CommandLine: '-vo' 'xv' '-ao' 'alsa' '-xineramascreen' '0' '-v' '-demuxer' 'lavf' '2008_09_30_Tue_20:00_Fringe_-_recorder0.mpeg' init_freetype Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay Using nanosleep() timing get_path('input.conf') -> '/home/jisom/.mplayer/input.conf' Parsing input config file /home/jisom/.mplayer/input.conf Input config file /home/jisom/.mplayer/input.conf parsed: 2 binds Setting up LIRC support... get_path('2008_09_30_Tue_20:00_Fringe_-_recorder0.mpeg.conf') -> '/home/jisom/.mplayer/2008_09_30_Tue_20:00_Fringe_-_recorder0.mpeg.conf' Playing 2008_09_30_Tue_20:00_Fringe_-_recorder0.mpeg. get_path('sub/') -> '/home/jisom/.mplayer/sub/' [file] File size is 5982136312 bytes STREAM: [file] 2008_09_30_Tue_20:00_Fringe_-_recorder0.mpeg STREAM: Description: File STREAM: Author: Albeu STREAM: Comment: based on the code from ??? (probably Arpi) LAVF_check: MPEG audio libavformat file format detected. MPlayer interrupted by signal 2 in module: demux_open MPlayer interrupted by signal 2 in module: demux_open Time spent in user mode (CPU seconds) : 73.668s Time spent in kernel mode (CPU seconds) : 6.359s Total time : 1:22.84s CPU utilisation (percentage) : 96.5% Times of major page faults : 93 Times of minor page faults : 3004 Exit 1 --------------------------------->8-------------------------------- --------------------------------->8-------------------------------- > mplayer -vo xv -v -demuxer lavf dvb://WCCU-2 MPlayer dev-SVN-r27867 (C) 2000-2008 MPlayer Team CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ (Family: 15, Model: 43, Stepping: 1) CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1 Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2 get_path('codecs.conf') -> '/home/jisom/.mplayer/codecs.conf' Reading /home/jisom/.mplayer/codecs.conf: Can't open '/home/jisom/.mplayer/codecs.conf': No such file or directory Reading /etc/mplayer/codecs.conf: Can't open '/etc/mplayer/codecs.conf': No such file or directory Using built-in default codecs.conf. Configuration: --cc=x86_64-pc-linux-gnu-gcc --host-cc=x86_64-pc-linux-gnu-gcc --prefix=/usr --confdir=/etc/mplayer --datadir=/usr/share/mplayer --libdir=/usr/lib64 --enable-menu --enable-network --disable-tv-bsdbt848 --disable-ivtv --disable-fribidi --disable-enca --disable-nemesi --disable-vstream --disable-libcdio --disable-cdparanoia --disable-cddb --disable-dvdread-internal --with-dvdread-config=/usr/bin/dvdread-config --with-dvdnav-config=/usr/bin/dvdnav-config --disable-ass --charset=UTF-8 --disable-joystick --disable-unrarexec --disable-tv-teletext --disable-radio-v4l2 --disable-radio-bsdbt848 --disable-live --disable-musepack --disable-pnm --disable-speex --disable-tga --disable-xanim --disable-xvid --disable-libamr_nb --disable-libamr_wb --disable-libdirac-lavc --disable-libdca --disable-libdv --disable-faac --disable-faac-lavc --disable-faad --disable-faad-internal --disable-liblzo --disable-twolame --disable-toolame --disable-libschroedinger-lavc --disable-tremor --disable-tremor-internal --disable-x264-lavc --realcodecsdir=/usr/lib64/codecs --disable-directfb --disable-ggi --disable-md5sum --disable-aa --disable-dga1 --disable-dga2 --disable-fbdev --disable-caca --disable-vidix --disable-vidix-pcidb --disable-zr --disable-gui --enable-xvmc --with-xvmclib=XvMCW --disable-3dfx --disable-tdfxvid --disable-tdfxfb --disable-arts --disable-esd --disable-jack --disable-ladspa --disable-nas --disable-pulse --disable-ossaudio --disable-altivec CommandLine: '-vo' 'xv' '-ao' 'alsa' '-xineramascreen' '0' '-vo' 'xv' '-v' '-demuxer' 'lavf' 'dvb://WCCU-2' init_freetype Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay Using nanosleep() timing get_path('input.conf') -> '/home/jisom/.mplayer/input.conf' Parsing input config file /home/jisom/.mplayer/input.conf Input config file /home/jisom/.mplayer/input.conf parsed: 2 binds Setting up LIRC support... get_path('WCCU-2.conf') -> '/home/jisom/.mplayer/WCCU-2.conf' Playing dvb://WCCU-2. get_path('sub/') -> '/home/jisom/.mplayer/sub/' TUNER TYPE SEEMS TO BE DVB-ATSC get_path('channels.conf.atsc') -> '/home/jisom/.mplayer/channels.conf.atsc' CONFIG_READ FILE: /home/jisom/.mplayer/channels.conf.atsc, type: 4 ATSC, NUM: 0, NUM_FIELDS: 4, NAME: WILL-1, FREQ: 189028615 PIDS: 49 52 0 ATSC, NUM: 1, NUM_FIELDS: 4, NAME: WILL-2, FREQ: 189028615 PIDS: 65 68 0 ATSC, NUM: 2, NUM_FIELDS: 4, NAME: WILL-3, FREQ: 189028615 PIDS: 81 84 0 ATSC, NUM: 3, NUM_FIELDS: 4, NAME: WAND-2, FREQ: 497028615 PIDS: 65 68 0 ATSC, NUM: 4, NUM_FIELDS: 4, NAME: WAND-1, FREQ: 497028615 PIDS: 49 52 0 ATSC, NUM: 5, NUM_FIELDS: 4, NAME: WBUI-1, FREQ: 521028615 PIDS: 49 52 0 ATSC, NUM: 6, NUM_FIELDS: 4, NAME: WBUI-2, FREQ: 521028615 PIDS: 65 68 0 ATSC, NUM: 7, NUM_FIELDS: 4, NAME: WCCU-1, FREQ: 545028615 PIDS: 49 52 0 ATSC, NUM: 8, NUM_FIELDS: 4, NAME: WCCU-2, FREQ: 545028615 PIDS: 65 68 0 ATSC, NUM: 9, NUM_FIELDS: 4, NAME: WICD-1, FREQ: 635028615 PIDS: 49 52 0 ATSC, NUM: 10, NUM_FIELDS: 4, NAME: WCIA-1, FREQ: 677028615 PIDS: 49 52 0 ATSC, NUM: 11, NUM_FIELDS: 4, NAME: WCFN-2, FREQ: 677028615 PIDS: 65 68 0 ATSC, NUM: 12, NUM_FIELDS: 4, NAME: WRSP-1, FREQ: 653028615 PIDS: 49 52 0 ATSC, NUM: 13, NUM_FIELDS: 4, NAME: WICS-1, FREQ: 641028615 PIDS: 49 52 0 TUNER TYPE SEEMS TO BE DVB-ATSC get_path('channels.conf.atsc') -> '/home/jisom/.mplayer/channels.conf.atsc' CONFIG_READ FILE: /home/jisom/.mplayer/channels.conf.atsc, type: 4 ATSC, NUM: 0, NUM_FIELDS: 4, NAME: WILL-1, FREQ: 189028615 PIDS: 49 52 0 ATSC, NUM: 1, NUM_FIELDS: 4, NAME: WILL-2, FREQ: 189028615 PIDS: 65 68 0 ATSC, NUM: 2, NUM_FIELDS: 4, NAME: WILL-3, FREQ: 189028615 PIDS: 81 84 0 ATSC, NUM: 3, NUM_FIELDS: 4, NAME: WAND-2, FREQ: 497028615 PIDS: 65 68 0 ATSC, NUM: 4, NUM_FIELDS: 4, NAME: WAND-1, FREQ: 497028615 PIDS: 49 52 0 ATSC, NUM: 5, NUM_FIELDS: 4, NAME: WBUI-1, FREQ: 521028615 PIDS: 49 52 0 ATSC, NUM: 6, NUM_FIELDS: 4, NAME: WBUI-2, FREQ: 521028615 PIDS: 65 68 0 ATSC, NUM: 7, NUM_FIELDS: 4, NAME: WCCU-1, FREQ: 545028615 PIDS: 49 52 0 ATSC, NUM: 8, NUM_FIELDS: 4, NAME: WCCU-2, FREQ: 545028615 PIDS: 65 68 0 ATSC, NUM: 9, NUM_FIELDS: 4, NAME: WICD-1, FREQ: 635028615 PIDS: 49 52 0 ATSC, NUM: 10, NUM_FIELDS: 4, NAME: WCIA-1, FREQ: 677028615 PIDS: 49 52 0 ATSC, NUM: 11, NUM_FIELDS: 4, NAME: WCFN-2, FREQ: 677028615 PIDS: 65 68 0 ATSC, NUM: 12, NUM_FIELDS: 4, NAME: WRSP-1, FREQ: 653028615 PIDS: 49 52 0 ATSC, NUM: 13, NUM_FIELDS: 4, NAME: WICS-1, FREQ: 641028615 PIDS: 49 52 0 DVB_CONFIG, can't open device /dev/dvb/adapter2/frontend0, skipping DVB_CONFIG, can't open device /dev/dvb/adapter3/frontend0, skipping OPEN_DVB: prog=WCCU-2, card=1, type=4 dvb_streaming_start(PROG: WCCU-2, CARD: 1, FILE: (null)) PROGRAM NUMBER 8: name=WCCU-2, freq=545028615 DVB_OPEN_DEVICES(3) OPEN(0), file /dev/dvb/adapter0/demux0: FD=5, CNT=0 OPEN(1), file /dev/dvb/adapter0/demux0: FD=6, CNT=1 OPEN(2), file /dev/dvb/adapter0/demux0: FD=7, CNT=2 DVB_SET_CHANNEL: new channel name=WCCU-2, card: 0, channel 8 dvb_tune Freq: 545028615 TUNE_IT, fd_frontend 4, fd_sec 0 freq 545028615, srate 0, pol 0, tone 32767, specInv, diseqc 2379212590, fe_modulation_t modulation,fe_code_rate_t HP_CodeRate, fe_transmit_mode_t TransmissionMode,fe_guard_interval_t guardInterval, fe_bandwidth_t bandwidth Using DVB card "Nextwave NXT200X VSB/QAM frontend" tuning ATSC to 545028615, modulation=7 Getting frontend status Bit error rate: 208 Signal strength: 65520 SNR: 60000 UNC: 194 FE_STATUS: FE_HAS_SIGNAL FE_HAS_LOCK FE_HAS_CARRIER FE_HAS_VITERBI FE_HAS_SYNC SET PES FILTER ON PID 65 to fd 5, RESULT: 0, ERRNO: 0 SET PES FILTER ON PID 68 to fd 6, RESULT: 0, ERRNO: 0 SET PES FILTER ON PID 0 to fd 7, RESULT: 0, ERRNO: 0 SUCCESSFUL EXIT from dvb_streaming_start STREAM: [dvbin] dvb://WCCU-2 STREAM: Description: Dvb Input STREAM: Author: Nico STREAM: Comment: based on the code from ??? (probably Arpi) LAVF_check: MPEG-2 transport stream format libavformat file format detected. LAVF: Program 3 LAVF: Program 4 LAVF: 0 audio and 0 video streams found LAVF: build 3413761 LAVF: no audio or video headers found - broken file? DVBIN_CLOSE, close(2), fd=7, COUNT=2 DVBIN_CLOSE, close(1), fd=6, COUNT=1 DVBIN_CLOSE, close(0), fd=5, COUNT=0 vo: x11 uninit called but X11 not initialized.. Exiting... (End of file) ----------------------------------------->8------------------------- later Jonathan