Gstreamer - converting .ts to mkv. No audio.
fufu5000
kazuko.nakamura at interia.pl
Fri Oct 20 10:21:21 UTC 2017
Finally I have command working !!!
This is syntax (queue changed to queue2):
gst-launch-1.0 -v filesrc location=1.ts \
! tsdemux parse-private-sections=false name=demux \
! queue2 \
! ac3parse \
! matroskamux name=stream streamable=true \
! queue2 \
! filesink location=1.mkv demux. \
! queue2 \
! 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.
Now.
This is important part:
Peter wrote: /"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."/
Input 1.ts file has video track (listing from ffmpeg):
Stream #0:0[0x2c8]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv,
bt709), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn, 50 tbc
Oryginal picture looks:
https://i.imgur.com/Jq8Cupj.png
When I resize to 480x270 picture has red lines on bottom:
https://i.imgur.com/24U8pCV.png
When I resize to 480x288, picture has wrong height aspect and looks like
this:
https://i.imgur.com/a1hh8UN.png
How to fix this? I would like to have 480p from 1920x1080.
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
More information about the gstreamer-devel
mailing list