AW: AW: AW: Change aspect ratio without transcoding?

Martijn Grendelman martijn at iphion.nl
Wed Apr 4 06:43:11 PDT 2012


On 04-04-12 14:58, Bernhard Graaf wrote:
> Yes, you are right. You need to decode (f.e. decodebin2) at first, before
> using videoscale.
> It is possible to change the 'aspect ratio' on client side?

Ultimately, the video will be displayed on a normal TV, so stretching the
image there (or even on the set-top box in front of it) will certainly
work. However, that requires the viewer's intervention, which is what I'm
trying to prevent.

Thanks,
Martijn.




> 
> -----Ursprüngliche Nachricht-----
> Von: gstreamer-devel-bounces+bernhard.graaf=gmx.de at lists.freedesktop.org
> [mailto:gstreamer-devel-bounces+bernhard.graaf=gmx.de at lists.freedesktop.org]
> Im Auftrag von Martijn Grendelman
> Gesendet: Mittwoch, 4. April 2012 14:02
> An: gstreamer-devel at lists.freedesktop.org
> Betreff: Re: AW: AW: Change aspect ratio without transcoding?
> 
> On 04-04-12 13:11, Bernhard Graaf wrote:
>> have you tried something like 'videoscale'? I've never used this element
>> before, but it's seems to help for fixing your problem.
>> In other case you should decode/encode the stream into the needed format.
>> Sorry.....
> 
> Well, videoscale obviously should do the trick, except that it only works
> on raw video, meaning I have to transcode.
> 
> What I am looking for, is a way to change (overwrite) certain bits in a
> transport stream. More specific: the aspect ratio of the video is present
> in the sequence header of the PES payload packets of the video stream, I
> have been told.
> 
> So, I wonder if that can be manipulated without demuxing the stream. I
> assume no such functionality is present in Gstreamer. Unfortunately, this
> is all I know about the matter, and I just barely understand myself what I
> wrote here, so I guess I'm stuck ;-) Thanks.
> 
> Best regards,
> Martijn Grendelman
> 
> 
> 
> 
> 
> 
> 
> 
> 
>> -----Ursprüngliche Nachricht-----
>> Von: gstreamer-devel-bounces+bernhard.graaf=gmx.de at lists.freedesktop.org
>>
> [mailto:gstreamer-devel-bounces+bernhard.graaf=gmx.de at lists.freedesktop.org]
>> Im Auftrag von Martijn Grendelman
>> Gesendet: Mittwoch, 4. April 2012 12:41
>> An: gstreamer-devel at lists.freedesktop.org
>> Betreff: Re: AW: Change aspect ratio without transcoding?
>>
>> Hi,
>>
>>> which sink-object you are using? Xvimagesink has a parameter for that 
>>>
>>> g_object_set (G_OBJECT (sinkobjectname), "force-aspect-ratio", 1, NULL);
>>
>> Ah, sorry, I should have mentioned that. We don't actually play the video
>> with Gstreamer. We're using a tcpserversink to serve the stream to our
>> distribution network.
>>
>> I'd like the AR of the video to be 16:9 before that. Unfortunately, the
>> input (an analog-to-h.264 encoder) only supports 4:3 for the available
>> signal, even though the source is 16:9.
>>
>> Best regards,
>> Martijn Grendelman
>>
>>
>>
>>
>>
>>>
>>> -----Ursprüngliche Nachricht-----
>>> Von: gstreamer-devel-bounces+bernhard.graaf=gmx.de at lists.freedesktop.org
>>>
>>
> [mailto:gstreamer-devel-bounces+bernhard.graaf=gmx.de at lists.freedesktop.org]
>>> Im Auftrag von Martijn Grendelman
>>> Gesendet: Mittwoch, 4. April 2012 10:21
>>> An: gstreamer-devel at lists.freedesktop.org
>>> Betreff: Change aspect ratio without transcoding?
>>>
>>> Hi,
>>>
>>> I have a feeling that I'm on the wrong track here, but I'm going to ask
>>> anyway.
>>>
>>> I have a MPEG-TS, containing H.264 video, in 4:3 aspect ratio. I'd like
> to
>>> stretch the video to 16:9. Is that possible without transcoding, perhaps
>>> by only remuxing?
>>>
>>> Best regards,
>>> Martijn Grendelman
>>> _______________________________________________
>>> gstreamer-devel mailing list
>>> gstreamer-devel at lists.freedesktop.org
>>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>>
>>> _______________________________________________
>>> gstreamer-devel mailing list
>>> gstreamer-devel at lists.freedesktop.org
>>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>>
>>
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>
> 
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> 
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> 



More information about the gstreamer-devel mailing list