Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 AVC / H.264
Register FAQ Today's Posts Search

Reply
 
Thread Tools Search this Thread
Old 22nd April 2006, 12:15   #1  |  Link
a19a
Registered User
 
Join Date: Sep 2005
Posts: 12
how to demux a H.264 .TS file?

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
a19a is offline   Reply With Quote
Old 22nd April 2006, 17:58   #2  |  Link
bob0r
Pain and suffering
 
bob0r's Avatar
 
Join Date: Jul 2002
Posts: 1,337
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)
bob0r is offline   Reply With Quote
Old 24th April 2006, 18:02   #3  |  Link
bond
Registered User
 
Join Date: Nov 2001
Posts: 9,770
mplayer
__________________
Between the weak and the strong one it is the freedom which oppresses and the law that liberates (Jean Jacques Rousseau)
I know, that I know nothing (Socrates)

MPEG-4 ASP FAQ | AVC/H.264 FAQ | AAC FAQ | MP4 FAQ | MP4Menu stores DVD Menus in MP4 (guide)
Ogg Theora | Ogg Vorbis
use WM9 today and get Micro$oft controlling the A/V market tomorrow for free
bond is offline   Reply With Quote
Old 25th April 2006, 07:36   #4  |  Link
Revgen
Registered User
 
Join Date: Sep 2004
Location: Near LA, California, USA
Posts: 1,544
There is a sample here. http://mighty83.interfree.it/anixe/anixeHD.ts
__________________
Pirate: Now how would you like to die? Would you like to have your head chopped off or be burned at the stake?

Curly: Burned at the stake!

Moe: Why?

Curly: A hot steak is always better than a cold chop.
Revgen is offline   Reply With Quote
Old 25th April 2006, 19:51   #5  |  Link
Revgen
Registered User
 
Join Date: Sep 2004
Location: Near LA, California, USA
Posts: 1,544
Quote:
Originally Posted by bond
mplayer
mencoder not mplayer

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.
__________________
Pirate: Now how would you like to die? Would you like to have your head chopped off or be burned at the stake?

Curly: Burned at the stake!

Moe: Why?

Curly: A hot steak is always better than a cold chop.
Revgen is offline   Reply With Quote
Old 25th April 2006, 20:59   #6  |  Link
emmel
Registered User
 
Join Date: Feb 2006
Posts: 133
mplayer -dumpvideo -dumpfile clip.264 clip.ts works ok too.
emmel is offline   Reply With Quote
Old 21st May 2006, 02:12   #7  |  Link
k-c-ksum
Registered User
 
Join Date: Apr 2004
Posts: 268
got a ts file i want to demux that mplayer craps out on :Cannot seek backward in linear streams.

any ideas?
__________________
k-c-ksum
k-c-ksum is offline   Reply With Quote
Old 21st May 2006, 08:48   #8  |  Link
unixfs
Registered User
 
Join Date: May 2002
Posts: 308
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
unixfs is offline   Reply With Quote
Old 21st May 2006, 10:33   #9  |  Link
k-c-ksum
Registered User
 
Join Date: Apr 2004
Posts: 268
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
k-c-ksum is offline   Reply With Quote
Old 21st May 2006, 13:44   #10  |  Link
k-c-ksum
Registered User
 
Join Date: Apr 2004
Posts: 268
fixed - using a newer build.
demux vid and audio but how to demux multi audio? so far it only demux's 1
__________________
k-c-ksum
k-c-ksum is offline   Reply With Quote
Old 21st May 2006, 13:58   #11  |  Link
nm
Registered User
 
Join Date: Mar 2005
Location: Finland
Posts: 2,641
Demux each audio track separately with -aid/-alang.
nm is offline   Reply With Quote
Old 21st May 2006, 14:45   #12  |  Link
k-c-ksum
Registered User
 
Join Date: Apr 2004
Posts: 268
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
__________________
k-c-ksum
k-c-ksum is offline   Reply With Quote
Old 21st May 2006, 15:24   #13  |  Link
nm
Registered User
 
Join Date: Mar 2005
Location: Finland
Posts: 2,641
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 very nicely in the manual.
nm is offline   Reply With Quote
Old 21st May 2006, 16:21   #14  |  Link
k-c-ksum
Registered User
 
Join Date: Apr 2004
Posts: 268
much appreciated
__________________
k-c-ksum
k-c-ksum is offline   Reply With Quote
Old 30th November 2006, 21:57   #15  |  Link
idbirch2
Registered User
 
Join Date: Oct 2002
Location: UK
Posts: 680
I am trying to demux a H264 BBC MBAFF stream using mplayer and not having much luck. If I use:
Code:
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:
Code:
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 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.

Last edited by idbirch2; 30th November 2006 at 22:07. Reason: Found solution
idbirch2 is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 23:12.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.