xvidenc

classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

xvidenc

Jerry Geis-2
I used to use xvidenc in the 0.10 series...

I just grapped 1.11.1 and there is no longer and xvidenc at all in gst-plugins-bad

What am I to use instead ?
Thanks,

Jerry

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: xvidenc

Sebastian Dröge-3
On Wed, 2017-02-08 at 10:38 -0500, Jerry Geis wrote:
> I used to use xvidenc in the 0.10 series...
>
> I just grapped 1.11.1 and there is no longer and xvidenc at all in
> gst-plugins-bad
>
> What am I to use instead ?

The code was removed from GIT because it was not ported to the 1.x
release series in the last 4+ years. If someone wants to take it and
port it to 1.x, which shouldn't be that much work after all, we can
resurrect it from the GIT history.

An alternative to the xvidenc element would be avenc_mpeg4.

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (981 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: xvidenc

Jerry Geis-2
In reply to this post by Jerry Geis-2
>The code was removed from GIT because it was not ported to the 1.x
>release series in the last 4+ years. If someone wants to take it and
>port it to 1.x, which shouldn't be that much work after all, we can
>resurrect it from the GIT history.

>An alternative to the xvidenc element would be avenc_mpeg4.


Thanks Sebastian,

from gst-inspect-1.0 I do not have avenc_mpeg4 either on my system. (centos 7.3)

The command I used to use is:
./test-launch "( v4l2src device=/dev/video0 ! queue ! video/x-raw-yuv,width=640,height=480,framerate=(fraction)30/1 ! xvidenc pass=0 me-vhq=0 me-quarterpel=true max-key-interval=-1 motion=0 bitrate=6000000 ! queue ! rtpmp4vpay pt=96 name=pay0 pulsesrc ! audioresample ! audioconvert ! vorbisenc !  rtpvorbispay pt=0 name=pay1 )

Is there something more updated I can use? gst-inspect-1.0 | grep enc shows
frei0r:  frei0r-mixer-difference: difference
frei0r:  frei0r-filter-transparency: Transparency
dtls:  dtlsenc: DTLS Encoder
dtls:  dtlssrtpenc: DTLS-SRTP Encoder
coretracers:  latency (GstTracerFactory)
gstsiren:  sirenenc: Siren Encoder element
fsrtpconference:  fsrtpconference: Farstream RTP Conference
mulaw:  mulawenc: Mu Law audio encoder
fsrawconference:  fsrawconference: Generic bin
fsmsnconference:  fsmsncamsendconference: Farstream MSN Sending Conference
fsmsnconference:  fsmsncamrecvconference: Farstream MSN Reception Conference
y4menc:  y4menc: YUV4MPEG video encoder
wavpack:  wavpackenc: Wavpack audio encoder
wavenc:  wavenc: WAV audio muxer
vpx:  vp8enc: On2 VP8 Encoder
vpx:  vp9enc: On2 VP9 Encoder
speex:  speexenc: Speex audio encoder
png:  pngenc: PNG image encoder
jpeg:  jpegenc: JPEG image encoder
flac:  flacenc: FLAC audio encoder
alaw:  alawenc: A Law audio encoder
bz2:  bz2enc: BZ2 encoder
audiovisualizers:  spectrascope: Frequency spectrum scope
subenc:  srtenc: Srt encoder
subenc:  webvttenc: WebVTT encoder
adpcmenc:  adpcmenc: ADPCM encoder
srtp:  srtpenc: SRTP encoder
gsm:  gsmenc: GSM audio encoder
vorbis:  vorbisenc: Vorbis audio encoder
theora:  theoraenc: Theora video encoder
removesilence:  removesilence: RemoveSilence
pnm:  pnmenc: PNM image encoder
opus:  opusenc: Opus audio encoder
encoding:  encodebin: Encoder Bin
opengl:  gldifferencematte: Gstreamer OpenGL DifferenceMatte

Thanks,

Jerry

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: xvidenc

Sebastian Dröge-3
On Wed, 2017-02-08 at 11:00 -0500, Jerry Geis wrote:

> >The code was removed from GIT because it was not ported to the 1.x
> >release series in the last 4+ years. If someone wants to take it and
> >port it to 1.x, which shouldn't be that much work after all, we can
> >resurrect it from the GIT history.
>
> >An alternative to the xvidenc element would be avenc_mpeg4.
>
>
> Thanks Sebastian,
>
> from gst-inspect-1.0 I do not have avenc_mpeg4 either on my system.
> (centos 7.3)
You have to install gst-libav for that.

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (981 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: xvidenc

Jerry Geis-2
In reply to this post by Jerry Geis-2
> You have to install gst-libav for that.

I cannot install this package as legal issue in USA.

Anyway Xvid can be resurrected ?

Thanks,

Jerry


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: xvidenc

Sebastian Dröge-3
On Wed, 2017-02-08 at 11:30 -0500, Jerry Geis wrote:
> > You have to install gst-libav for that.
>
> I cannot install this package as legal issue in USA.

The situation for ffmpeg/gst-libav should be exactly the same as for
xvid (or many parts of gst-plugins-ugly in general) in that regard, but
that's for your lawyers to confirm if you want to know for sure.

> Anyway Xvid can be resurrected ?

Yes, once someone ports it to 1.x.

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (981 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: xvidenc

Jerry Geis-2
In reply to this post by Jerry Geis-2
Hi Sebastian,

Unfortunately I am not the one to do a port to xvid....

However - using other things that were not available way back when I started... like vp8.
I tried this command for vp8.

./test-launch "( v4l2src device=/dev/video0 ! queue ! video/x-raw-yuv,width=640,height=480,framerate=(fraction)30/1 \
        ! videoconvert ! vp8enc ! queue ! rtpvp8vpay pt=96 name=pay0 pulsesrc ! audioresample ! audioconvert \
        ! vorbisenc ! rtpvorbispay pt=0 name=pay1 )

And it does not seem to work.

What would be the correct command to take the v4l2src and encode to vp8 with pulse audio.

Thanks,

Jerry

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: xvidenc

Nicolas Dufresne-5
In reply to this post by Jerry Geis-2
Le mercredi 08 février 2017 à 11:30 -0500, Jerry Geis a écrit :
> > You have to install gst-libav for that.
>
> I cannot install this package as legal issue in USA.

Xvid is most likely having the same legal issue.

>
> Anyway Xvid can be resurrected ?

Someone, maybe you, should propose a patch.

regards,
Nicolas
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (188 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: xvidenc

Nicolas Dufresne-5
In reply to this post by Jerry Geis-2
Le mercredi 08 février 2017 à 13:34 -0500, Jerry Geis a écrit :

> Hi Sebastian,
>
> Unfortunately I am not the one to do a port to xvid....
>
> However - using other things that were not available way back when I
> started... like vp8.
> I tried this command for vp8.
>
> ./test-launch "( v4l2src device=/dev/video0 ! queue ! video/x-raw-
> yuv,width=640,height=480,framerate=(fraction)30/1 \
>         ! videoconvert ! vp8enc ! queue ! rtpvp8vpay pt=96 name=pay0
> pulsesrc ! audioresample ! audioconvert \
>         ! vorbisenc ! rtpvorbispay pt=0 name=pay1 )
You should set the deadline property on the vp8encoder. Something like
"deadline=0".

>
> And it does not seem to work.

In general you should describe how this does not work.

regards,
Nicolas
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (188 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: xvidenc

Jerry Geis-2
In reply to this post by Jerry Geis-2
>You should set the deadline property on the vp8encoder. Something like
>"deadline=0".

>> 
>> And it does not seem to work.

>In general you should describe how this does not work.

Thanks Nicholas,

I added the deadline=0 to the vp8enc and restarted...

I then use "totem rtsp://127.0.0.1:16200/camera.sdp" to try to play and I get no video - it also does not display any error.

Thanks,

Jerry

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: xvidenc

Nicolas Dufresne-5
In reply to this post by Nicolas Dufresne-5
Le mercredi 08 février 2017 à 13:55 -0500, Nicolas Dufresne a écrit :
> > ./test-launch "( v4l2src device=/dev/video0 ! queue ! video/x-raw-
> > yuv,width=640,height=480,framerate=(fraction)30/1 \

Another thing I notice is that you are using "video/x-raw-yuv", that
type was used in 0.10 and no longer exist in 1.0+. Should be video/x-
raw,... Are you trying to use obsolete 0.10 rather then 1.0+ (e.g.
1.10.3) ?

And another error you did, "rtpvp8vpay" is named "rtpvp8pay". You have
an extra v in there.

Final note, Opus is more common then vorbis these days, but both should
work.

> I added the deadline=0 to the vp8enc and restarted...

Actually, I meant to set this to it's minimum, try deadline=1. 0 is the
default, it means no deadline, and is really slow.


> I then use "totem rtsp://127.0.0.1:16200/camera.sdp" to try to play
> and I get no video - it also does not display any error.

Have you enabled debug traces ? E.g. for warning and error, set the
environment GST_DEBUG=3.

Nicolas

p.s. A working 1.0 example using test-launch:

GST_DEBUG=2 ./test-launch \
  "v4l2src device=/dev/video0 \
     ! videoconvert ! vp8enc deadline=1 end-usage=cbr \
     ! rtpvp8pay pt=96  name=pay0 \
   pulsesrc ! audioresample ! audioconvert ! vorbisenc \
     ! rtpvorbispay pt=0 name=pay1"




_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (188 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: xvidenc

Jerry Geis-2
In reply to this post by Jerry Geis-2
>Another thing I notice is that you are using "video/x-raw-yuv", that
>type was used in 0.10 and no longer exist in 1.0+. Should be video/x-
>raw,... Are you trying to use obsolete 0.10 rather then 1.0+ (e.g.
>1.10.3) ?

Hi Nicholas,

Your Correct... I had a MIX of 0.10 and 1.0. I changed the two above and it worked.
My audio "sucks" very loud and noisy - so not sure pulsesrc is doing what its supposed to do.

Thanks for the tips. 

Jerry

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: xvidenc

Nicolas Dufresne-5
Le mercredi 08 février 2017 à 15:05 -0500, Jerry Geis a écrit :

> >Another thing I notice is that you are using "video/x-raw-yuv", that
> >type was used in 0.10 and no longer exist in 1.0+. Should be
> video/x-
> >raw,... Are you trying to use obsolete 0.10 rather then 1.0+ (e.g.
> >1.10.3) ?
>
> Hi Nicholas,
>
> Your Correct... I had a MIX of 0.10 and 1.0. I changed the two above
> and it worked.
Great.

> My audio "sucks" very loud and noisy - so not sure pulsesrc is doing
> what its supposed to do.

It was clean here, but depends on your internal mic quality. With
headphone, you may test your audio quality with:

  gst-launch-1.0 pulsesrc ! pulsesink

You should probably have a look at the mixer (e.g. gnome controls or
pavucontrol). You might have some settings that cause saturation. If
it's just noise, you may try using webrtcdsp, it's an echo canceller
but also provide noise reduction.

good luck,
Nicolas
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (188 bytes) Download Attachment