View Full Version : how to demux a H.264 .TS file?
a19a
22nd April 2006, 12:15
I am trying to demux a H.264 .TS file recorded with AltDvb2.
The problem is that Projectx (i use the latest version) doesn't see the video pid...
Please help me!
thanks,
a19a
bob0r
22nd April 2006, 17:58
Is this Sample 1080p or 1080i? If so can you please upload a sample?
I got a FTP or use rapidshare (http://rapidshare.de) up to 100mb.
I can't find a h264 (mpeg4 AVC) 1080i or 1080p sample anywhere.....
(then when i have it, i can try demux it also, if not, we can ask neuron2, creator of dgmpgdec)
bond
24th April 2006, 18:02
mplayer
Revgen
25th April 2006, 07:36
There is a sample here. http://mighty83.interfree.it/anixe/anixeHD.ts
Revgen
25th April 2006, 19:51
mplayer
mencoder not mplayer:p
The mencoder command is "mencoder -yourdrive:\yourfile -of rawvideo -nosound -ovc copy -o yourdrive:\yourmuxedfile.h264"
Then use YAMB to put the raw .h264 file into an .MP4 container in order to play.
emmel
25th April 2006, 20:59
mplayer -dumpvideo -dumpfile clip.264 clip.ts works ok too.
k-c-ksum
21st May 2006, 02:12
got a ts file i want to demux that mplayer craps out on :Cannot seek backward in linear streams.
any ideas?
unixfs
21st May 2006, 08:48
you are piping the file to mplayer, are you?
don't do it. As adviced by emmel the best way to demux the stream is
mplayer -dumpvideo -dumpfile clip.264 clip.ts
k-c-ksum
21st May 2006, 10:33
mplayer clip.264 clip.ts -dumpvideo -dumpfile
and/or
mplayer -dumpvideo -dumpfile clip.264 clip.ts
still not working, is there a file size limit?
k-c-ksum
21st May 2006, 13:44
fixed - using a newer build.
demux vid and audio but how to demux multi audio? so far it only demux's 1
Demux each audio track separately with -aid/-alang.
k-c-ksum
21st May 2006, 14:45
thanks, could you give an example
mplayer FILE.ts -dumpaudio -dumpfile RAW.AC3
thats what i use to get the first audio track (pid 1020) but for the next
(pid 1021) what command is needed ?
thanks for this
mplayer FILE.ts -dumpaudio -dumpfile RAW.AC3 -aid 1021
To see what tracks or pids the file contains, read through the output of:
mplayer -v -novideo file.ts
Here -v means verbose output and -novideo will make MPlayer quit without starting video playback.
You should really take a look at MPlayer documentation and the manual page (run "man mplayer" on Linux and other Unix-like systems):
http://www.mplayerhq.hu/DOCS/HTML/en/index.html
http://www.mplayerhq.hu/DOCS/man/en/mplayer.1.html
For example, -aid is explained (http://www.mplayerhq.hu/DOCS/man/en/mplayer.1.html#DEMUXER/STREAM OPTIONS) very nicely in the manual.
k-c-ksum
21st May 2006, 16:21
much appreciated
idbirch2
30th November 2006, 21:57
I am trying to demux a H264 BBC MBAFF stream using mplayer and not having much luck. If I use:
mplayer -dumpvideo -dumpfile "F:\PE-demux.ts" "H:\Planet Earth.ts"
I get lots of errors spewing out about "Cannot seek backward in linear streams" and "Seek Failed" and the occasional "VIDEO MPEG2(pid=49) AUDIO MPA(pid=52) NO SUBS (yet)!"
From the one that mentions MPEG2, it seems its mis-detecting the stream type so then I tried:
mplayer -demuxer h264es -dumpvideo -dumpfile "F:\PE-demux.ts" "H:\Planet Earth.ts"
This time it looked much better as I got "H264-ES file format detected" and no errors during processing. However, the resulting file was an exact byte-for-btye copy of the original TS, audio and all. What am I doing wrong? Thanks.
edit: OK, I'm sorry, I found this (http://forum.doom9.org/showthread.php?t=118350) thread shortly after posting regarding how to find the latest version of Mencoder and the new version, updated 9th Nov has solved the problem, I no longer have to specify the demuxer and it outputs just video. I was using RC1 from the main mplayer site before.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.