Cannot transcode to mp2v/mp4v

Bug #304887 reported by Robstarusa
24
This bug affects 2 people
Affects Status Importance Assigned to Milestone
vlc (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

After installing the latest (ibex) cvlc 0.94, I cannot capture & transcode to mp2v or mp4v. The error is that libavcodec cannot find the encoder. libavcodec is installed. If I install libavcodec-unstripped-51, there are weird dependency problems, but then I can transcode to mp2v/mp4v, however if I try transcoding the output of an hdtv card (hvr-1600), vlc segfaults. I can give more info when I get home. Here is what happens when I try to install libavcodec-unstripped-51. I'm not sure what state this leaves the system in, however after this, I can then transcode video from a pvr-250. With JUST libavcodec, the mp2/4v encoders are not found by vlc.

hendero@ev-hendelmanlx01:~$ sudo apt-get install libavcodec-unstripped-51
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libraw1394-dev libavutil-dev libdc1394-22-dev libtheora-dev libgsm1-dev
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  libavcodec-dev libavcodec51 libavformat-dev libpostproc-dev
The following NEW packages will be installed:
  libavcodec-unstripped-51
0 upgraded, 1 newly installed, 4 to remove and 25 not upgraded.
Need to get 1782kB of archives.
After this operation, 7594kB disk space will be freed.
Do you want to continue [Y/n]? y
Get:1 http://us.archive.ubuntu.com intrepid/multiverse libavcodec-unstripped-51 3:0.svn20080206-12ubuntu3+unstripped5 [1782kB]
Fetched 1782kB in 2s (682kB/s)
(Reading database ... 185018 files and directories currently installed.)
Removing libpostproc-dev ...
Removing libavformat-dev ...
Removing libavcodec-dev ...
dpkg: libavcodec51: dependency problems, but removing anyway as you request:
 libavformat52 depends on libavcodec51 (>= 3:0.svn20080206-8) | libavcodec-unstripped-51 (>= 3:0.svn20080206-8); however:
  Package libavcodec51 is to be removed.
  Package libavcodec-unstripped-51 is not installed.
 gstreamer0.10-ffmpeg depends on libavcodec51 (>= 3:0.svn20080206-8) | libavcodec-unstripped-51 (>= 3:0.svn20080206-8); however:
  Package libavcodec51 is to be removed.
  Package libavcodec-unstripped-51 is not installed.
 libxine1-ffmpeg depends on libavcodec51 (>= 3:0.svn20080206-8) | libavcodec-unstripped-51 (>= 3:0.svn20080206-8); however:
  Package libavcodec51 is to be removed.
  Package libavcodec-unstripped-51 is not installed.
Removing libavcodec51 ...
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Selecting previously deselected package libavcodec-unstripped-51.
(Reading database ... 184980 files and directories currently installed.)
Unpacking libavcodec-unstripped-51 (from .../libavcodec-unstripped-51_3%3a0.svn20080206-12ubuntu3+unstripped5_amd64.deb) ...
Setting up libavcodec-unstripped-51 (3:0.svn20080206-12ubuntu3+unstripped5) ...

Processing triggers for libc6 ...
ldconfig deferred processing now taking place

Revision history for this message
Robstarusa (rob-naseca) wrote :

This bug makes vlc basically a media player and disables roughly 1/2 or more of the functionality it should have.

Revision history for this message
Brett A. Taylor (realbt) wrote :

I agree. The vlc package provided is quite useless for me. I use vlc with the telnet interface with mvpmc to transcode divx on the fly to mpeg to stream to my Hauppage MediaMVP set-top box. I get a similar error.

[00000404] telnet interface: using the VLM interface plugin...
[00000404] telnet interface: telnet interface started on interface 4212
[00000416] [Media: mvpmc] main access out: creating httpd
[00000497] [Media: mvpmc] avcodec encoder error: cannot open encoder
[00000409] [Media: mvpmc] stream_out_transcode stream out error: cannot find video encoder (module:ffmpeg fourcc:mp2v)
*** glibc detected *** vlc: double free or corruption (out): 0x00007fd3c3ee7cb0 ***
======= Backtrace: =========
/lib/libc.so.6[0x7fd3c3bf3938]
/lib/libc.so.6(cfree+0x76)[0x7fd3c3bf5f86]
/usr/lib/vlc/stream_out/libstream_out_transcode_plugin.so[0x7fd3c0be0e32]
/usr/lib/vlc/stream_out/libstream_out_transcode_plugin.so[0x7fd3c0be0e7c]
/usr/lib/libvlccore.so.0[0x7fd3c3f83f4c]
/usr/lib/libvlccore.so.0(filter_chain_Delete+0x1f)[0x7fd3c3f845af]
/usr/lib/vlc/stream_out/libstream_out_transcode_plugin.so[0x7fd3c0be3ef4]
/usr/lib/vlc/stream_out/libstream_out_transcode_plugin.so[0x7fd3c0be4bf6]
/usr/lib/libvlccore.so.0[0x7fd3c3f86014]
/usr/lib/libvlccore.so.0[0x7fd3c3f27e2c]
/usr/lib/libvlccore.so.0[0x7fd3c3f2fbc0]
/usr/lib/vlc/demux/libavi_plugin.so[0x7fd3ba046bb8]
/usr/lib/libvlccore.so.0[0x7fd3c3f347c1]
/usr/lib/libvlccore.so.0[0x7fd3c3f37e51]
/usr/lib/libvlccore.so.0[0x7fd3c3f71116]
/lib/libpthread.so.0[0x7fd3c39653ea]
/lib/libc.so.6(clone+0x6d)[0x7fd3c3c60c6d]

Revision history for this message
Seppe vanden Broucke (macuyiko) wrote :

I can confirm this. Even after installing libavcodec-unstripped-51, I get segmentation faults e.g.:

*** glibc detected *** vlc: corrupted double-linked list: 0x091d0468 ***
Segmentation fault

Revision history for this message
JB VideoLAN (jb-videolan) wrote :

Your VLC doesn't seem to have been linked to this new libavcodec.

Revision history for this message
glenstewart (glen-stewart) wrote :

This problem is affecting a growing number of VLC users as more migrate to the newer version. Like Brett, I useD VLC for MVPMC, and cannot any longer due to this bug.

 Jean-Baptiste mentions a linking problem...if that is the real solution, how do we test to confirm and implement it?

Revision history for this message
Sergio Zanchetta (primes2h) wrote :

If you install ubuntu-restricted-extra package it automatically replaces libavcodec51 with libavcodec-unstripped-51.

Using libavcodec51 instead of libavcodec-unstripped-51 leads to other serious problems like Bug #294502.

To fix all these problem, we should change packages dependencies from libavcodec51 to libavcodec-unstripped-51.

In fact every package depending on libavcodec51 could work with libavcodec-unstripped-51, if you look at dependencies you find

libavformat52 depends on libavcodec51 (>= 3:0.svn20080206-8) | libavcodec-unstripped-51
gstreamer0.10-ffmpeg depends on libavcodec51 (>= 3:0.svn20080206-8) | libavcodec-unstripped-51
libxine1-ffmpeg depends on libavcodec51 (>= 3:0.svn20080206-8) | libavcodec-unstripped-51

ffmpeg itself has the same dependence.

That '|' means 'OR' so it doesn't care which of them is going to be installed, both works well with them.

Revision history for this message
Hew (hew) wrote :

There have been a large number of bugfixes with the latest VLC release, 1.0.1-1ubuntu1. Can you reproduce your issue with this latest version? You can test this in Ubuntu Karmic, or Ubuntu Jaunty with the MOTU Media PPA at https://launchpad.net/~motumedia/+archive/ppa . Thanks in advance.

Changed in vlc (Ubuntu):
status: New → Incomplete
Revision history for this message
Leo Arias (elopio) wrote :

We'd like to figure out what's causing this bug for you, but we haven't heard back from you in a while. Could you please provide the requested information? Thanks!

Revision history for this message
Leo Arias (elopio) wrote :

 We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks again!

Changed in vlc (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.