mp4 file in MPEG-2 transport stream

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
kazmihusnain
New Cone
New Cone
Posts: 4
Joined: 12 Oct 2011 16:31

mp4 file in MPEG-2 transport stream

Postby kazmihusnain » 12 Oct 2011 16:36

Dear all,

I am new to video streaming. I want to encapsulate .mp4 file in mpeg-2 ts to calculate the overhead this encapsulation adds to the file. I don't want to re-encode the data. Please guide me how to do it. Any advice, tutorial or documentation is welcomed.

Regards,
Husnain

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: mp4 file in MPEG-2 transport stream

Postby Jean-Baptiste Kempf » 12 Oct 2011 23:49

You can't do that...
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.

Rémi Denis-Courmont
Developer
Developer
Posts: 15324
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: mp4 file in MPEG-2 transport stream

Postby Rémi Denis-Courmont » 13 Oct 2011 09:17

You can encapsulate audio and video tracks from an MP4 file into an MPEG2-TS file, if the codecs are supported by MPEG2-TS. But you cannot encapsulate the MP4 per se. That does not even make sense.

Code: Select all

vlc myfile.mp4 --sout-all --sout '#standard{access=file,mux=ts,dst=myfile.ts}'
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

kazmihusnain
New Cone
New Cone
Posts: 4
Joined: 12 Oct 2011 16:31

Re: mp4 file in MPEG-2 transport stream

Postby kazmihusnain » 13 Oct 2011 13:40

Thanks Remi and Jean,

I still am a little confused. Do you people mean to say that I need to first extract the audio and video streams from my mp4 file and then encapsulate them into MPEG-2 TS individually ???

and then what will this command do?

Code: Select all

vlc myfile.mp4 --sout-all --sout '#standard{access=file,mux=ts,dst=myfile.ts}'
isn't it taking an mp4 file and encapsulating it into MPEG-2 TS?

Thanks

Rémi Denis-Courmont
Developer
Developer
Posts: 15324
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: mp4 file in MPEG-2 transport stream

Postby Rémi Denis-Courmont » 13 Oct 2011 15:01

No. It's decapsulating MP4 content and then encapsulating it into TS.

You cannot encapsulate a container into a container, at least not into TS.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

kazmihusnain
New Cone
New Cone
Posts: 4
Joined: 12 Oct 2011 16:31

Re: mp4 file in MPEG-2 transport stream

Postby kazmihusnain » 13 Oct 2011 17:18

Thanks I get it now,

But the problem is that when i use this command, nothing happens. I don't know why but when I replace the quotes with double quotes or just insert '=' sign, it does something, right or wrong I don't know. I am talking about the following commands:

Code: Select all

vlc rep128.mp4 --sout-all --sout "#standard{access=file,mux=ts,dst=myfile.ts}"
or

Code: Select all

vlc rep128.mp4 --sout-all --sout=#standard{access=file,mux=ts,dst=myfile.ts}
Please tell me if the output they are giving is the right output. Thanks.

kazmihusnain
New Cone
New Cone
Posts: 4
Joined: 12 Oct 2011 16:31

Re: mp4 file in MPEG-2 transport stream

Postby kazmihusnain » 17 Oct 2011 17:42

Hi all,

I am able to encapsulate the streams into mpeg-2 ts. Can someone tell me whether the output stream is Constant Bit rate or Variable Bit Rate?


Thanks


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 113 guests