Gstreamer - converting .ts to mkv. No audio.
Peter Maersk-Moller
pmaersk at gmail.com
Wed Oct 18 17:01:17 UTC 2017
Hi Kazuko.
Your first pipeline is missing linking output of h264parse to matroskamux
and missing linking matroskamux to filesink. Perhaps something like
gst-launch-1.0 -v filesrc location=1.ts ! tsdemux
parse-private-sections=false name=demux ! queue ! ac3parse ! matroskamux
name=stream streamable=true ! queue ! filesink location=1.mkv demux. !
queue ! h264parse ! omxh264dec !
omxh264enc target-bitrate=1572864 control-rate=variable !
video/x-h264,stream-format=byte-stream,profile=high,width=480,height=270,
framerate=25/1
! h264parse ! stream.
For your second pipeline, which video size do you convert from and convert
to? omxh264enc can only accept certain geometries (at least on RasPi).
Try convert to something like 480x288, but make sure you keep pixel aspect
ratio of 1:1.
Regards
Peter Maersk-Moller
On Sun, Oct 15, 2017 at 10:01 PM, fufu5000 <kazuko.nakamura at interia.pl>
wrote:
> Hi,
>
> I'm using RPi2 with Raspbian. I'm trying to find best solution for
> transcoding .ts files from tvheadend. At the moment the best is using
> Gstreamer because I can handle best performace. With Gssreamer I can
> transcode 1 minute .ts FHD video file to .mkv 480x270 in 30 secons which is
> in my opinion very good performance and I want to keep it.
>
> But I have problem with Gstreamer to make conversion .ts to mkv (or .mp4)
> with audio. Importand is that I have to have output video resized.
>
> Here is example which is working but no audio:
>
> *gst-launch-1.0 -v filesrc location=1.ts ! tsdemux
> parse-private-sections=false name=demux ! queue ! ac3parse ! matroskamux
> name=stream streamable=true demux. ! queue ! h264parse ! omxh264dec !
> omxh264enc target-bitrate=1572864 control-rate=variable !
> video/x-h264,stream-format=byte-stream,profile=high,width=480,height=270,
> framerate=25/1
> ! h264parse ! filesink location=1.mkv*
>
> Here is another example which working, this time with with audio, but I
> can't resize video by changing omxh264enc parameters from example above:
>
> *gst-launch-1.0 filesrc location=1.ts ! decodebin name=demux demux. ! queue
> ! audioresample ! "audio/x-raw,rate=44100" ! audioconvert !
> "audio/x-raw,format=F32LE" ! vorbisenc ! mux. matroskamux name=mux !
> filesink location=1.mkv demux. ! queue ! videoconvert ! omxh264enc !
> "video/x-h264,profile=high" ! h264parse ! mux.*
>
> Anyone has some command for gst-launch-1.0 to nice converting .ts to mkv
> (or
> mp4) with audio working?
>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20171018/a05445f5/attachment.html>
More information about the gstreamer-devel
mailing list