<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:΢ÈíÑźÚ
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>that's great. It works. Thanks a lot.<div><br></div><div>Jin<br><br><div>> Date: Sat, 7 Feb 2015 23:30:24 +1100<br>> From: thaytan@noraisin.net<br>> To: gstreamer-devel@lists.freedesktop.org<br>> Subject: Re: How to demux a mp4 file to a encoded 264 video file by qtdemux?<br>> <br>> On 07/02/15 23:23, S¨¦rgio Agostinho wrote:<br>> > Hi,<br>> ><br>> > Assuming you want the demuxed byte stream written to a file you need to modify your pipeline to this<br>> ><br>> > gst-launch-1.0 -e filesrc location=264.mp4 ! qtdemux name=mdemux mdemux.video_0<br>> > ! queue ! filesink location=/path/to/file/filename<br>> <br>> mp4 files don't typically contain a byte-stream format H.264 - they're <br>> AVC packetised. If you write the qtdemux output to a file like that, <br>> you'll end up with a non-decodable binary blob.<br>> <br>> You need to make sure that the data is converted and written as <br>> byte-stream output by using h264parse and a capsfilter:<br>> <br>> gst-launch-1.0 -e filesrc location=264.mp4 ! qtdemux name=mdemux ! <br>> h264parse ! video/x-h264,stream-format=byte-stream ! filesink <br>> location=/path/to/file/filename<br>> <br>> Regards,<br>> Jan.<br>> <br>> ><br>> > This should get your h264 data directly to a file.<br>> ><br>> > Cheers<br>> ><br>> >> On 06 Feb 2015, at 06:40, Jin <xiah_sunny@hotmail.com> wrote:<br>> >><br>> >> I found something like<br>> >><br>> >> gst-launch-1.0 filesrc location=264.mp4 ! qtdemux name=mdemux mdemux.video_0<br>> >> ! queue ! decodebin ! autovideosink<br>> >><br>> >> 264.mp4 has AVC/H264 encoded byte stream and there is no audio data. I need<br>> >> to demux 264.mp4 to get H265 byte stream. I tried the command but there is<br>> >> no output file generated. How could I get the H265 byte stream?<br>> >><br>> >> Thanks.<br>> >> Jin<br>> >><br>> >><br>> >><br>> >> --<br>> >> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/How-to-demux-a-mp4-file-to-a-encoded-264-video-file-by-qtdemux-tp4670614.html<br>> >> Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>> >> _______________________________________________<br>> >> gstreamer-devel mailing list<br>> >> gstreamer-devel@lists.freedesktop.org<br>> >> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel<br>> > _______________________________________________<br>> > gstreamer-devel mailing list<br>> > gstreamer-devel@lists.freedesktop.org<br>> > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel<br>> ><br>> _______________________________________________<br>> gstreamer-devel mailing list<br>> gstreamer-devel@lists.freedesktop.org<br>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel<br></div></div>                                       </div></body>
</html>