<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
oggdemux, theoradec and vorbisdec aren't going to help with what
you're<br>
trying to do here, I suppose you copy pasted these from some example<br>
command lines?<br>
<br>
uridecodebin is probably your best choice here, eg:<br>
<br>
<pre>uridecodebin uri=<a class="moz-txt-link-freetext" href="file:///path/to/test.ts">file:///path/to/test.ts</a> name=d</pre>
<pre> d. ! audio/x-raw ! queue ! avenc_aac ! [..]</pre>
<pre> d. ! video/x-raw ! queue ! x264enc ! [..]</pre>
<br>
On a separate note, on a jetson xavier you should be able to use
nvidia's<br>
hardware encoders, eg nvv4l2h264enc, not sure where the source for
those<br>
elements lives but their existence is documented in<br>
<a class="moz-txt-link-rfc2396E" href="https://developer.download.nvidia.com/embedded/L4T/r32-2_Release_v1.0/Accelerated_GStreamer_User_Guide.pdf"><https://developer.download.nvidia.com/embedded/L4T/r32-2_Release_v1.0/Accelerated_GStreamer_User_Guide.pdf></a><br>
<br>
<div class="moz-cite-prefix">On 12/23/20 2:54 AM, KN wrote:<br>
</div>
<blockquote type="cite"
cite="mid:1608688453141-0.post@n4.nabble.com">
<pre class="moz-quote-pre" wrap="">I am learning about GStreamer, and I have trouble putting together a basic
MPEG-TS to MP4 code.
Here is what I have for discover:
Analyzing <a class="moz-txt-link-freetext" href="file:///mnt/videos/stream5/test.ts">file:///mnt/videos/stream5/test.ts</a>
Done discovering <a class="moz-txt-link-freetext" href="file:///mnt/videos/stream5/test.ts">file:///mnt/videos/stream5/test.ts</a>
Topology:
container: MPEG-2 Transport Stream
audio: MPEG-1 Layer 2 (MP2)
video: MPEG-2 Video
Properties:
Duration: 0:40:24.615584629
Seekable: yes
Live: no
Tags:
audio codec: MPEG-1 Audio
has crc: false
channel mode: stereo
nominal bitrate: 384000
video codec: MPEG-2 Video
I want to transcode it to MP4 and make it 480p(or i is fine too).
I think I am close but something is off. I suspect I should not have
theoradec and oggdemux ... but confused what it needs to be)
(note: I am running on Jetson Xavier thus need to stay away from omxh264enc,
etc).
This is what I have so far...
sudo gst-launch-1.0 filesrc location=test.ts ! oggdemux name=demux qtmux
name=mux ! filesink location=test.mp4 demux. ! theoradec ! x264enc ! mux.
demux. ! queue max-size-time=5000000000 max-size-buffers=10000 ! vorbisdec !
avenc_aac compliance=-2 ! mux.
Please help!
--
Sent from: <a class="moz-txt-link-freetext" href="http://gstreamer-devel.966125.n4.nabble.com/">http://gstreamer-devel.966125.n4.nabble.com/</a>
_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
</blockquote>
</body>
</html>