<div dir="ltr"><div><div><div><div><div>Hi Kazuko.<br><br></div>Your first pipeline is missing linking output of h264parse to matroskamux and missing linking matroskamux to filesink. Perhaps something like<br><br><div style="margin-left:40px">gst-launch-1.0 -v filesrc location=1.ts ! tsdemux<br>
parse-private-sections=false name=demux ! queue ! ac3parse ! matroskamux<br>
name=stream streamable=true ! queue ! filesink location=1.mkv demux. ! queue ! h264parse ! omxh264dec !<br>
omxh264enc target-bitrate=1572864 control-rate=variable !<br>
video/x-h264,stream-format=<wbr>byte-stream,profile=high,<wbr>width=480,height=270,<wbr>framerate=25/1<br>
! h264parse ! stream.<br></div><br></div>For your second pipeline, which video size do you convert from and convert to? omxh264enc can only accept certain geometries (at least on RasPi).<br></div>Try convert to something likeĀ  480x288, but make sure you keep pixel aspect ratio of 1:1.<br><br></div>Regards<br></div>Peter Maersk-Moller<br><div><div><div><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Oct 15, 2017 at 10:01 PM, fufu5000 <span dir="ltr"><<a href="mailto:kazuko.nakamura@interia.pl" target="_blank">kazuko.nakamura@interia.pl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I'm using RPi2 with Raspbian. I'm trying to find best solution for<br>
transcoding .ts files from tvheadend. At the moment the best is using<br>
Gstreamer because I can handle best performace. With Gssreamer I can<br>
transcode 1 minute .ts FHD video file to .mkv 480x270 in 30 secons which is<br>
in my opinion very good performance and I want to keep it.<br>
<br>
But I have problem with Gstreamer to make conversion .ts to mkv (or .mp4)<br>
with audio. Importand is that I have to have output video resized.<br>
<br>
Here is example which is working but no audio:<br>
<br>
*gst-launch-1.0 -v filesrc location=1.ts ! tsdemux<br>
parse-private-sections=false name=demux ! queue ! ac3parse ! matroskamux<br>
name=stream streamable=true demux. ! queue ! h264parse ! omxh264dec !<br>
omxh264enc target-bitrate=1572864 control-rate=variable !<br>
video/x-h264,stream-format=<wbr>byte-stream,profile=high,<wbr>width=480,height=270,<wbr>framerate=25/1<br>
! h264parse ! filesink location=1.mkv*<br>
<br>
Here is another example which working, this time with with audio, but I<br>
can't resize video by changing omxh264enc parameters from example above:<br>
<br>
*gst-launch-1.0 filesrc location=1.ts ! decodebin name=demux demux. ! queue<br>
! audioresample ! "audio/x-raw,rate=44100" ! audioconvert !<br>
"audio/x-raw,format=F32LE" ! vorbisenc ! mux. matroskamux name=mux !<br>
filesink location=1.mkv demux. ! queue ! videoconvert ! omxh264enc !<br>
"video/x-h264,profile=high" ! h264parse ! mux.*<br>
<br>
Anyone has some command for gst-launch-1.0 to nice converting .ts to mkv (or<br>
mp4) with audio working?<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://gstreamer-devel.966125.n4.nabble.com/" rel="noreferrer" target="_blank">http://gstreamer-devel.966125.<wbr>n4.nabble.com/</a><br>
______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
</blockquote></div><br></div>