Problem with encoding MPEG2

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
Brutus_
New Cone
New Cone
Posts: 3
Joined: 02 Dec 2008 12:39

Problem with encoding MPEG2

Postby Brutus_ » 02 Dec 2008 12:52

Hello,
Its my first post here, so please be kind to me :D

I'm trying to come up with a commandline which is as simple as possible. I don't want to get into setting every single parameter there is. :D

I have a problem with forcing VLC to encode a mpeg2 file with VBR. What I've tried with is this.

Code: Select all

cvlc "input_movie" --sout '#transcode{vcodec=mpgv,vb=2000,acodec=a52,ab=128,channels=2,width=720,height=576}:duplicate{dst=std{access=file,mux=ts,dst=/test.mpg}}' vlc://quit
But it comes out as CBR, so i google and added "venc=ffmpeg{qscale=10}"

Code: Select all

cvlc "input_movie" --sout '#transcode{vcodec=mpgv,vb=2000,acodec=a52,ab=128,channels=2,width=720,height=576,venc=ffmpeg{qscale=10}}:duplicate{dst=std{access=file,mux=ts,dst=/test.mpg}}' vlc://quit
Is this really the right way to do it? I'd rather skip the whole venc part.

I've also got problem with the video that VLC outputs. The first 2-3secs of the movie are grey (green in some cases). If I convert the same movie with ffmpeg or mencoder its all fine and the picture is fine from the start.

Regards
Johan

Brutus_
New Cone
New Cone
Posts: 3
Joined: 02 Dec 2008 12:39

Re: Problem with encoding MPEG2

Postby Brutus_ » 04 Dec 2008 09:17

Anybody know anything about this qscale and why it doesnt use VBR without it?

I've tried with both ffmpeg and mencoder and both set qmin=2 qmax=31 by default and still get a VBR.

wmcbrine
New Cone
New Cone
Posts: 3
Joined: 18 Sep 2008 05:11

Re: Problem with encoding MPEG2

Postby wmcbrine » 07 Dec 2008 23:45

What version and platform?

Brutus_
New Cone
New Cone
Posts: 3
Joined: 02 Dec 2008 12:39

Re: Problem with encoding MPEG2

Postby Brutus_ » 09 Dec 2008 12:01

VLC media player - version 0.9.4 Grishenko
Ubuntu 8.10 Intrepid

Thanks for looking into it.

Edit:
Maybe you want this also?

Code: Select all

libvlc was configured with ./configure '--build=i486-linux-gnu' '--enable-maintaner-mode' '--enable-release' '--prefix=/usr' '--enable-libtool' '--enable-fast-install' '--with-binary-version=1ubuntu3' '--disable-update-check' '--disable-gnome' '--disable-gtk' '--disable-familiar' '--disable-fb' '--enable-ggi' '--enable-sdl' '--enable-esd' '--enable-mad' '--enable-arts' '--enable-jack' '--enable-pulse' '--enable-lirc' '--enable-a52' '--enable-aa' '--enable-dvbpsi' '--enable-mozilla' '--with-mozilla-pkg=libxul-plugin' '--disable-kde' '--enable-mp4' '--enable-dvb' '--disable-satellite' '--enable-ogg' '--enable-vorbis' '--enable-shout' '--enable-qt4' '--disable-slp' '--enable-flac' '--disable-skins' '--disable-basic-skins' '--enable-skins2' '--enable-freetype' '--enable-mkv' '--enable-speex' '--enable-caca' '--enable-live555' '--enable-libmpeg2' '--enable-fribidi' '--enable-cdio' '--enable-mod' '--enable-theora' '--enable-modplug' '--enable-dvdnav' '--enable-gnutls' '--enable-ffmpeg' '--enable-ncurses' '--enable-smb' '--disable-gnomevfs' '--enable-bonjour' '--enable-mpc' '--enable-vcd' '--enable-vcdx' '--enable-notify' '--enable-twolame' '--enable-x264' '--enable-faad' '--disable-zvbi' '--enable-telx' '--enable-mediacontrol-bindings' '--disable-atmo' '--enable-taglib' '--enable-libass' '--enable-libdca' '--enable-alsa' '--enable-dv' '--enable-v4l' '--enable-v4l2' '--enable-pvr' '--enable-svgalib' '--enable-dvd' '--without-dvdcss' 'build_alias=i486-linux-gnu' 'CFLAGS=-g -O2' 'LDFLAGS=-Wl,--as-needed' 'CPPFLAGS=' 'CXXFLAGS=-g -O2'

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Problem with encoding MPEG2

Postby Rémi Denis-Courmont » 09 Dec 2008 17:28

Ubuntu has stripped MPEG encoding from ffmpeg. No surprise it's not working.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 20 guests