LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Debian Wheezy ffmpeg version 1.2.5 and OpenVC (https://www.linuxquestions.org/questions/programming-9/debian-wheezy-ffmpeg-version-1-2-5-and-openvc-4175496304/)

lindylex 02-26-2014 12:39 PM

Debian Wheezy ffmpeg version 1.2.5 and OpenVC
 
I recently installed "ffmpeg version 1.2.5" from "deb ftp://ftp.deb-multimedia.org wheezy-backports main" on my Debian Wheezy. It was a general "aptitude update" and "apttiude upgrade" and then OpenCV started to push out this error.

I wrote some code with OpenCV and now I get the following error when I try to open a video.


Code:

[NULL @ 0x21e2ec0] Value -4616189618054758400.000000 for parameter 'request_sample_fmt' out of range
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x282d580] decoding for stream 0 failed
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x282d580] Could not find codec parameters (Video: h264 (avc1 / 0x31637661), 23069 kb/s)
[IMGUTILS @ 0x7ffff1da3fd0] Picture size 0x0 is invalid
[IMGUTILS @ 0x7ffff1da3fe0] Picture size 0x0 is invalid


lindylex 02-27-2014 01:00 AM

I speculated the problem started after I added the following two source to my /etc/apt/sources.list file on Debian Wheezy. I did this procure a newer version of FFMPEG.

deb ftp://ftp.deb-multimedia.org wheezy main non-free
deb ftp://ftp.deb-multimedia.org wheezy-backports main

It was then all my code written using the OpenVC started to break. I had a hunch it was my recent upgrade but not sure until I read the following.

“Make sure proper versions of ffmpeg or gstreamer is installed. Sometimes, it is a headache to work with Video Capture mostly due to wrong installation of ffmpeg/gstreamer.” ~ http://opencv-python-tutroals.readth...o_display.html

[ SOLUTION ]

This search will tell you what installed packages come from Debian Multimedia:

Code:

*aptitude search '~i ?origin(Unofficial Multimedia Packages)'

And this command removes them:

Code:

*aptitude purge '~i ?origin(Unofficial Multimedia Packages)'
Remove the deb-multimedia.org repository from the source.list file. Install FFMPEG and OpenVC and any additional packages that you need, since much was purged from your system during the downgrade.

Code:

sudo aptitude install python-opencv  ffmpeg

Drakeo 02-27-2014 02:49 AM

hey Thanks for the info. Like you the ever changing ffmpeg and the x264 have left me high and dry many times. To the point I just stick with the 1.2.2 for a while longer. sometimes newer just isn't better lol.

lindylex 02-28-2014 01:09 AM

Drakeo, it was emotionally devastating. I ended up just download the binary.


All times are GMT -5. The time now is 11:57 AM.