You are not logged in.

#1 2018-05-28 14:56:33

idoki05
Member
Registered: 2018-05-28
Posts: 4

[solved] gstreamer / Pitivi / encoding

Hello,

I am trying to encode a video cut with Pitivi, the goal is to be able to view it on TV via a Synology NAS. Target format is MP4-container with H.264 and AAC. Rendering with Shotcut and UBUNTU worked, but I'd like to use Pitivi for editing under Arch Linux. Pitivi produces a file with a codec shown in Nautilus as H.264 (High 4:4:4 Profile), while Shutcut produces a H.264 (Main Profile), and I don't know how to change this (not documented?)

I found on Planet Pitivi a command line that kind of gives the desired result, except that the sound codec is mp3:

ges-launch-1.0 -l pitivi-project.xges -o out.mp4 -f "video/quicktime,variant=iso:video/x-h264:audio/mpeg,mpegversion=1,layer=3"

I just need to replace the last part of the command (the audio) to get the AAC. codec. Very difficult for me to find documentation wink, as I don't want to stream live.

Thx for helping,
Olivier

Last edited by idoki05 (2018-05-29 11:14:10)

Offline

#2 2018-05-29 07:33:27

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,074

Re: [solved] gstreamer / Pitivi / encoding

You want to remove the layer and instead use mpegversion=4

gst-launch-1.0 -l pitivi-project.xges -o out.mp4 -f "video/quicktime,variant=iso:video/x-h264:audio/mpeg,mpegversion=4"

Ref: https://gstreamer.freedesktop.org/data/ … -faac.html -- look at the src definitions. You will need to have gst-plugins-bad installed.

Offline

#3 2018-05-29 11:14:34

idoki05
Member
Registered: 2018-05-28
Posts: 4

Re: [solved] gstreamer / Pitivi / encoding

Hi,

Thank you very much, this works perfectly for the audio part smile

(I just have to use ges-launch-1.0, because gst-launch-1.0 does not accept the -l (timeline) parameter)

Offline

Board footer

Powered by FluxBB