VLC 0.8.6d and ffmpeg 0.4.9_p20070616 fails in mp2v, h264 ok

About encoding, codec settings, muxers and filter usage
jesus_
Blank Cone
Blank Cone
Posts: 11
Joined: 12 Feb 2008 16:28

VLC 0.8.6d and ffmpeg 0.4.9_p20070616 fails in mp2v, h264 ok

Postby jesus_ » 12 Feb 2008 16:49

I'm trying to transcode some streams to mpeg2 using the mp2v codec. It works fine on windows, but on my gentoo installation I cannot get it to work. Transcoding to h264 (using x264) works fine, but when I try the exact same setup to transcode to mp2v ffmpeg tells me that it cannot find the encoder.

The vlm file: http://paste.videolan.org/3251 (commented out the two different lines for mp2v/h264 output)
The -vvv output using h264: http://paste.videolan.org/3255
The -vvv output using mp2v: http://paste.videolan.org/3254

Any hints? I read about downgrading to the previous ffmpeg version (on gentoo-wiki.com) because of xvid-divx problems, but that did not do the trick. I also tried adding "fps=25" to the transcode options, but that has no impact.

line 347:

Code: Select all

#ffmpeg warning: Set profile and level # (mpeg2video@0x2aaab40d6560) #ffmpeg error: cannot open encoder
Any hints?

jesus_
Blank Cone
Blank Cone
Posts: 11
Joined: 12 Feb 2008 16:28

Re: VLC 0.8.6d and ffmpeg 0.4.9_p20070616 fails in mp2v, h264 ok

Postby jesus_ » 12 Feb 2008 17:40

Curiously, mp2v does not work, but mpgv does. I though mpgv was mpeg1-video, but it looks like the outgoing stream is mpeg2 :| (will look into that tomorrow)

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLC 0.8.6d and ffmpeg 0.4.9_p20070616 fails in mp2v, h264 ok

Postby Jean-Baptiste Kempf » 12 Feb 2008 19:52

emerge libmpeg2
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

jesus_
Blank Cone
Blank Cone
Posts: 11
Joined: 12 Feb 2008 16:28

Re: VLC 0.8.6d and ffmpeg 0.4.9_p20070616 fails in mp2v, h264 ok

Postby jesus_ » 12 Feb 2008 21:49

Code: Select all

gentoo-VLC ~ # emerge -pv libmpeg2 These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] media-libs/libmpeg2-0.4.1 USE="-X -sdl" 0 kB Total: 1 package (1 reinstall), Size of downloads: 0 kB
libmpeg2 is already installed :( (Could anyone tell me what the difference between mp2v and mpgv is in meantime?)

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLC 0.8.6d and ffmpeg 0.4.9_p20070616 fails in mp2v, h264 ok

Postby Jean-Baptiste Kempf » 12 Feb 2008 21:56

Configure your vlc to use libmpeg2
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

jesus_
Blank Cone
Blank Cone
Posts: 11
Joined: 12 Feb 2008 16:28

Re: VLC 0.8.6d and ffmpeg 0.4.9_p20070616 fails in mp2v, h264 ok

Postby jesus_ » 13 Feb 2008 00:03

I heard on IRC that libmpeg2 is for decoding only, the decoding is not a problem.

I read on the wiki (http://wiki.videolan.org/MPEG-2) that mp2v and mpgv should be the same:
mp2v
This is a video codec. The name to use at the command line is mp2v, but you can also use mpgv.
However, using mp2v does not work (cannot find encoder ((null))), while mpgv does. Should I file a bugreport for this behaviour, or can someone explain it?

jesus_
Blank Cone
Blank Cone
Posts: 11
Joined: 12 Feb 2008 16:28

Re: VLC 0.8.6d and ffmpeg 0.4.9_p20070616 fails in mp2v, h264 ok

Postby jesus_ » 14 Feb 2008 13:01

I still don't know what the difference between mp2v and mpgv is, but mpgv works and generates mpeg2.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 14 guests