Converting a MPEG2 PS to a TS

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
kmescher
New Cone
New Cone
Posts: 2
Joined: 04 Jan 2009 22:42

Converting a MPEG2 PS to a TS

Postby kmescher » 04 Jan 2009 22:58

Hello all,

I am attemping to create an MPEG2 transport stream file, as I had heard that they were more compatible with the Popcorn Hour media player (rewind supported, etc).

I have been unsuccessful in creating the transport stream. Here is the command I used:

cvlc (mpeg ps file) --sout '#standard{access=file,mux=ts,dst=(mpeg ts filename)}'

VLC sits for the length of time that it takes the video to play, but I get no file output. I also thought that it would be a bit faster, since it doesn't have to display any video or play any audio. The debug output shows that the file is being opened, but I don't see any stream output module running at all.

What's going on? Am I missing something critical? I was kinda hoping to use this in a batch mode, but I can't seem to convert even one file.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Converting a MPEG2 PS to a TS

Postby Jean-Baptiste Kempf » 04 Jan 2009 23:11

To help you, we need messages, to completely understand what your problems is.
To fix this, please be sure before you start the playback to:
  1. Open: Tools -> Messages.
  2. Set Verbosity to 2
  3. Start playback to reproduce your issue
  4. Save text in a file or copy into clipboard
  5. Then paste the full resulting log here between [​code]and[​/code] (or use Pastebin.com if it's too long)
Also don't forget to name your Operating System and provide the VLC media player version.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

kmescher
New Cone
New Cone
Posts: 2
Joined: 04 Jan 2009 22:42

Re: Converting a MPEG2 PS to a TS

Postby kmescher » 05 Jan 2009 22:55

My mistake. I figured that since they were very long, I would wait until someone asked:

The command:
cvlc --verbose 2 ge_wanton_ways.mpg --sout '#standard{access=file,mux=ts,dst=ge_wanton_ways.ts}'

Below is the entire output from cvlc running on Gentoo Linux (config flags shown below)

At the bottom, there are messages about 'output date isn't PTS date'. I'm not sure what those messages are, but I get a few of them during playback. The output also shows that it is creating a dummy vout and using the ALSA aout driver. I want neither of these turned on, since I am using VLC strictly for the demux-remux process (and nothing else at this time). I would also think that if they were turned off, the file would process at faster-than-realtime, since I'm only converting. But I'm not sure.

VLC media player 0.9.8a Grishenko
[00000001] main libvlc debug: VLC media player - version 0.9.8a Grishenko - (c) 1996-2008 the VideoLAN team
[00000001] main libvlc debug: libvlc was configured with ./configure '--prefix=/usr' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--enable-a52' '--disable-aa' '--enable-faad' '--enable-alsa' '--disable-altivec' '--disable-arts' '--disable-asademux' '--disable-atmo' '--disable-bonjour' '--disable-fribidi' '--disable-cdda' '--disable-cddax' '--disable-libcddb' '--disable-libcdio' '--disable-csri' '--disable-dbus' '--disable-dbus-control' '--disable-dirac' '--disable-directfb' '--disable-dc1394' '--disable-debug' '--enable-dca' '--disable-dv' '--enable-dvb' '--enable-dvdread' '--enable-dvdnav' '--disable-esd' '--disable-fb' '--enable-avcodec' '--enable-avformat' '--enable-swscale' '--disable-imgresample' '--enable-postproc' '--enable-flac' '--disable-fluidsynth' '--disable-fontconfig' '--disable-ggi' '--disable-gnomevfs' '--disable-gnutls' '--disable-hal' '--disable-httpd' '--disable-id3tag' '--disable-jack' '--disable-kate' '--disable-libass' '--disable-caca' '--enable-libgcrypt' '--disable-notify' '--disable-libproxy' '--disable-libtar' '--disable-libsysfs' '--disable-libv4l2' '--disable-lirc' '--disable-live555' '--disable-lua' '--enable-mkv' '--enable-mmx' '--disable-mod' '--enable-mad' '--enable-libmpeg2' '--enable-mpc' '--enable-ncurses' '--disable-mozilla' '--with-mozilla-pkg=' '--enable-ogg' '--disable-glx' '--disable-opengl' '--disable-galaktos' '--disable-optimize-memory' '--disable-oss' '--enable-png' '--disable-portaudio' '--disable-pulse' '--disable-pvr' '--enable-qt4' '--disable-realrtsp' '--disable-run-as-root' '--disable-smb' '--disable-schroedinger' '--disable-sdl' '--disable-sdl-image' '--disable-shout' '--disable-speex' '--enable-sse' '--disable-sout' '--disable-svg' '--disable-svgalib' '--disable-taglib' '--disable-theora' '--disable-freetype' '--disable-twolame' '--disable-upnp' '--enable-v4l' '--disable-v4l2' '--disable-vcd' '--disable-vcdinfo' '--disable-vcdx' '--enable-vorbis' '--enable-loader' '--enable-x11' '--enable-screen' '--enable-x264' '--disable-xinerama' '--disable-libxml2' '--disable-xosd' '--disable-xvideo' '--disable-xvmc' '--disable-zvbi' '--disable-snapshot' '--disable-growl' '--disable-optimizations' '--enable-fast-install' '--disable-vlm' '--disable-skins2' '--disable-remoteosd' '--build=i686-pc-linux-gnu' 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' 'CFLAGS=-march=pentium4 -fomit-frame-pointer -O2 -pipe' 'LDFLAGS=' 'CPPFLAGS=' 'CXXFLAGS=-O2 -mcpu=i686 -pipe'
[00000001] main libvlc debug: translation test: code is "C"
[00000001] main libvlc debug: checking builtin modules
[00000001] main libvlc debug: checking plugin modules
[00000001] main libvlc debug: loading plugins cache file /home/kmescher/.cache/vlc/plugins-04041e.dat
[00000001] main libvlc debug: recursively browsing `/usr/lib/vlc'
[00000001] main libvlc debug: module bank initialized, found 204 modules
[00000001] main libvlc debug: opening config file (/home/kmescher/.config/vlc/vlcrc)
[00000001] main libvlc debug: CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU
[00000001] main libvlc debug: looking for memcpy module: 3 candidates
[00000001] main libvlc debug: using memcpy module "memcpymmxext"
[00000283] main interaction debug: thread 3083352976 (Interaction control) created at priority 0 (interface/interaction.c:382)
[00000285] main input debug: Creating an input for 'Media Library'
[00000285] main input debug: Input is a meta file: disabling unneeded options
[00000285] main input debug: `file/xspf-open:///home/kmescher/.local/share/vlc/ml.xspf' gives access `file' demux `xspf-open' path `/home/kmescher/.local/share/vlc/ml.xspf'
[00000285] main input debug: creating access 'file' path='/home/kmescher/.local/share/vlc/ml.xspf'
[00000286] main access debug: looking for access module: 3 candidates
[00000286] access_file access debug: opening file `/home/kmescher/.local/share/vlc/ml.xspf'
[00000286] main access debug: using access module "access_file"
[00000286] main access debug: TIMER module_Need() : 1.081 ms - Total 1.081 ms / 1 intvls (Avg 1.081 ms)
[00000291] main stream debug: Using AStream*Stream
[00000291] main stream debug: pre-buffering...
[00000291] main stream debug: received first data for our buffer
[00000285] main input debug: creating demux: access='file' demux='xspf-open' path='/home/kmescher/.local/share/vlc/ml.xspf'
[00000292] main demux debug: looking for demux module: 1 candidate
[00000292] playlist demux debug: using XSPF playlist reader
[00000292] main demux debug: using demux module "playlist"
[00000292] main demux debug: TIMER module_Need() : 0.794 ms - Total 0.794 ms / 1 intvls (Avg 0.794 ms)
[00000285] main input debug: `file/xspf-open:///home/kmescher/.local/share/vlc/ml.xspf' successfully opened
[00000307] main xml debug: looking for xml module: 1 candidate
[00000307] main xml debug: using xml module "xtag"
[00000307] main xml debug: TIMER module_Need() : 0.461 ms - Total 0.461 ms / 1 intvls (Avg 0.461 ms)
[00000292] playlist demux debug: parsed 0 tracks successfully
[00000307] main xml debug: removing module "xtag"
[00000285] main input debug: EOF reached
[00000285] main input debug: control type=1
[00000292] main demux debug: removing module "playlist"
[00000286] main access debug: removing module "access_file"
[00000285] main input debug: TIMER input launching for 'Media Library' : 5.801 ms - Total 5.801 ms / 1 intvls (Avg 5.801 ms)
[00000283] main interaction debug: thread started
[00000309] main preparser debug: waiting for thread initialization
[00000309] main preparser debug: thread started
[00000309] main preparser debug: thread 3074960272 (preparser) created at priority 0 (playlist/thread.c:79)
[00000310] main fetcher debug: waiting for thread initialization
[00000310] main fetcher debug: thread started
[00000310] main fetcher debug: thread 3062303632 (fetcher) created at priority 0 (playlist/thread.c:108)
[00000284] main playlist debug: waiting for thread initialization
[00000284] main playlist debug: thread started
[00000284] main playlist debug: thread 3053910928 (playlist) created at priority 0 (playlist/thread.c:117)
[00000311] main interface debug: looking for interface module: 1 candidate
[00000311] main interface debug: using interface module "hotkeys"
[00000311] main interface debug: TIMER module_Need() : 0.432 ms - Total 0.432 ms / 1 intvls (Avg 0.432 ms)
[00000311] main interface debug: thread 3045518224 (interface) created at priority 0 (interface/interface.c:168)
[00000313] main interface debug: looking for interface module: 1 candidate
[00000313] main interface debug: using interface module "screensaver"
[00000313] main interface debug: TIMER module_Need() : 0.398 ms - Total 0.398 ms / 1 intvls (Avg 0.398 ms)
[00000313] main interface debug: thread 3037125520 (interface) created at priority 0 (interface/interface.c:168)
[00000284] main playlist debug: adding item `ge_wanton_ways.mpg' ( ge_wanton_ways.mpg )
[00000315] main interface debug: looking for interface module: 13 candidates
[00000284] main playlist debug: rebuilding array of current - root Playlist
[00000284] main playlist debug: rebuild done - 1 items, index -1
[00000311] main interface debug: thread started
[00000313] main interface debug: thread started
[00000315] main interface debug: using interface module "signals"
[00000315] main interface debug: TIMER module_Need() : 6.033 ms - Total 6.033 ms / 1 intvls (Avg 6.033 ms)
[00000315] main interface debug: thread 3020340112 (interface) created at priority 0 (interface/interface.c:168)
[00000317] main interface debug: looking for interface module: 13 candidates
[00000317] dummy interface: using the dummy interface module...
[00000317] main interface debug: using interface module "dummy"
[00000317] main interface debug: TIMER module_Need() : 0.702 ms - Total 0.702 ms / 1 intvls (Avg 0.702 ms)
[00000317] main interface debug: thread 3011947408 (interface) created at priority 0 (interface/interface.c:168)
[00000284] main playlist debug: starting new item
[00000284] main playlist debug: processing request item null node Playlist skip 0
[00000284] main playlist debug: creating new input thread
[00000326] main input debug: Creating an input for 'ge_wanton_ways.mpg'
[00000326] main input debug: waiting for thread initialization
[00000326] main input debug: thread started
[00000326] main input debug: `ge_wanton_ways.mpg' gives access `' demux `' path `ge_wanton_ways.mpg'
[00000326] main input debug: creating demux: access='' demux='' path='ge_wanton_ways.mpg'
[00000327] main demux debug: looking for access_demux module: 2 candidates
[00000327] main demux debug: TIMER module_Need() : 1.042 ms - Total 1.042 ms / 1 intvls (Avg 1.042 ms)
[00000326] main input debug: creating access '' path='ge_wanton_ways.mpg'
[00000330] main access debug: looking for access module: 3 candidates
[00000330] access_file access debug: opening file `ge_wanton_ways.mpg'
[00000330] main access debug: using access module "access_file"
[00000330] main access debug: TIMER module_Need() : 0.485 ms - Total 0.485 ms / 1 intvls (Avg 0.485 ms)
[00000331] main stream debug: Using AStream*Stream
[00000331] main stream debug: pre-buffering...
[00000331] main stream debug: received first data for our buffer
[00000331] main stream debug: pre-buffering done 1408981 bytes in 0s - 428780 kbytes/s
[00000326] main input debug: creating demux: access='' demux='' path='ge_wanton_ways.mpg'
[00000332] main demux debug: looking for demux module: 48 candidates
[00000326] main input debug: thread 3003554704 (input) created at priority 10 (input/input.c:370)
[00000315] main interface debug: thread started
[00000317] main interface debug: thread started
[00000332] main demux debug: using demux module "ps"
[00000332] main demux debug: TIMER module_Need() : 20.210 ms - Total 20.210 ms / 1 intvls (Avg 20.210 ms)
[00000326] main input debug: looking for a subtitle file in /exports/scratch/tystreams/
[00000326] main input debug: `ge_wanton_ways.mpg' successfully opened
[00000332] ps demux warning: garbage at input, trying to resync...
[00000332] ps demux warning: found sync code
[00000332] ps demux debug: we found a length of: 1860444000
[00000332] ps demux debug: we found a length of: 1860692167
[00000326] main input debug: control type=1
[00000326] main input debug: selecting program id=0
[00000362] main decoder debug: looking for decoder module: 26 candidates
[00000362] main decoder debug: using decoder module "libmpeg2"
[00000362] main decoder debug: TIMER module_Need() : 1.613 ms - Total 1.613 ms / 1 intvls (Avg 1.613 ms)
[00000362] main decoder debug: thread 2981350288 (decoder) created at priority 0 (input/decoder.c:217)
[00000362] main decoder debug: thread started
[00000362] libmpeg2 decoder debug: 352x480 (display 352,480), aspect 576000, sar 20:11, 29.971 fps
[00000362] main decoder debug: no usable vout present, spawning one
[00000367] main video output debug: window size: 640x480
[00000367] main video output debug: looking for video output module: 5 candidates
[00000367] main video output debug: using video output module "dummy"
[00000367] main video output debug: TIMER module_Need() : 0.210 ms - Total 0.210 ms / 1 intvls (Avg 0.210 ms)
[00000367] main video output debug: waiting for thread initialization
[00000367] main video output debug: thread started
[00000367] main video output debug: got 8 direct buffer(s)
[00000367] main video output debug: picture in 352x480 (0,0,352x480), chroma I420, ar 4:3, sar 20:11
[00000367] main video output debug: picture user 352x480 (0,0,352x480), chroma I420, ar 4:3, sar 20:11
[00000367] main video output debug: picture out 352x480 (0,0,352x480), chroma I420, ar 4:3, sar 20:11
[00000367] main video output debug: direct render, mapping render pictures 0-6 to system pictures 1-7
[00000367] main video output debug: thread 2972957584 (video output) created at priority 15 (video_output/video_output.c:502)
[00000362] main decoder warning: dts != current_pts (-140917)
[00000369] main decoder debug: looking for decoder module: 26 candidates
[00000369] main decoder debug: using decoder module "mpeg_audio"
[00000369] main decoder debug: TIMER module_Need() : 1.485 ms - Total 1.485 ms / 1 intvls (Avg 1.485 ms)
[00000369] main decoder debug: thread 2962533264 (decoder) created at priority 5 (input/decoder.c:217)
[00000362] main decoder warning: backward_pts != current_pts (-33368)
[00000369] main decoder debug: thread started
[00000369] mpeg_audio decoder debug: MPGA channels:2 samplerate:32000 bitrate:192
[00000369] main decoder debug: no aout present, spawning one
[00000375] main audio output debug: looking for audio output module: 2 candidates
[00000375] alsa audio output debug: opening ALSA device `default'
[00000375] main audio output debug: thread 2952788880 (aout) created at priority 15 (alsa.c:687)
[00000375] main audio output debug: using audio output module "alsa"
[00000375] main audio output debug: TIMER module_Need() : 14.225 ms - Total 14.225 ms / 1 intvls (Avg 14.225 ms)
[00000375] main audio output debug: output 'fl32' 32000 Hz Stereo frame=1 samples/8 bytes
[00000375] main audio output debug: mixer 'fl32' 32000 Hz Stereo frame=1 samples/8 bytes
[00000375] main audio output debug: no need for any filter
[00000375] main audio output debug: looking for audio mixer module: 3 candidates
[00000375] main audio output debug: using audio mixer module "float32_mixer"
[00000375] main audio output debug: TIMER module_Need() : 0.526 ms - Total 0.526 ms / 1 intvls (Avg 0.526 ms)
[00000375] main audio output debug: input 'mpga' 32000 Hz Stereo frame=1152 samples/1737 bytes
[00000375] main audio output debug: thread started
[00000375] main audio output debug: filter(s) 'mpga'->'fl32' 32000 Hz->32000 Hz Stereo->Stereo
[00000377] main audio output debug: looking for audio filter module: 24 candidates
[00000377] main audio output debug: using audio filter module "mpgatofixed32"
[00000377] main audio output debug: TIMER module_Need() : 1.558 ms - Total 1.558 ms / 1 intvls (Avg 1.558 ms)
[00000375] main audio output debug: found a filter for the whole conversion
[00000375] main audio output debug: filter(s) 'fl32'->'fl32' 35200 Hz->32000 Hz Stereo->Stereo
[00000384] main audio output debug: looking for audio filter module: 24 candidates
[00000384] main audio output debug: using audio filter module "bandlimited_resampler"
[00000384] main audio output debug: TIMER module_Need() : 1.369 ms - Total 1.369 ms / 1 intvls (Avg 1.369 ms)
[00000375] main audio output debug: found a filter for the whole conversion
[00000388] main spu text debug: looking for text renderer module: 1 candidate
[00000388] main spu text debug: using text renderer module "dummy"
[00000388] main spu text debug: TIMER module_Need() : 0.315 ms - Total 0.315 ms / 1 intvls (Avg 0.315 ms)
[00000375] main audio output warning: output date isn't PTS date, requesting resampling (40008)
[00000375] main audio output warning: buffer is 40008 late, triggering upsampling
[00000375] main audio output warning: resampling stopped after 9647573 usec (drift: 399)
[00000375] main audio output warning: output date isn't PTS date, requesting resampling (40063)


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 19 guests