LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ffmpeg - psp [] Need help encoding to mp4 (https://www.linuxquestions.org/questions/linux-software-2/ffmpeg-psp-%5B%5D-need-help-encoding-to-mp4-516080/)

nomb 01-03-2007 10:39 PM

ffmpeg - psp [] Need help encoding to mp4
 
Hey guys I'm hopeing someone can give me some help with this task.

This is the version I have: FFmpeg version SVN-r6835
and this is the command I used (well one of them):

ffmpeg -i South.Park.S10E08.World_of_Warcraft.avi -acodec aac -ab 128 -vcodec mpeg4 -b 1200kb -ar 24000 -mbd 2 -flags +4mv+trell -aic 2 -cmp 2 -subcmp 2 -s 320x240 -r 30000/1001 -title X -f psp output.mp4

Thats from the ffmpeg site. My problem is every time I try to play a video that ive made with the above I get "This video cannot be played." I know there is a ffmpeg version with psp support and I did download the most recent version with the svn. They don't use cvs anymore. I've not installed it yet cause well 1) its source and I don't want it to interfere with the version that is installed and I'd have to uninstall a few programs to be able to uninstall ffmpeg because of the dependencies. (well there is that nodep thingy) and 2) when I run ./configure on the new version it says aac enabled - no. Which I know I need.

Any help would be great thanks guys. (and girls)

Nomb

Benanzo 01-04-2007 08:31 PM

Have a look as PSPVC

http://pspvc.sourceforge.net/

I had some trouble with the install until I upgraded FFMPEG, which it sounds like you've done. It works like a charm. I can't help you with the ffmpeg commands though. I wish I could figure it out myself so that I could write a script to transcode all my vids.

johnson_steve 01-04-2007 11:52 PM

here's the script I use:
Code:

#! /bin/bash
# Encode video to psp format

# Default Settings
WORK_DIR="/home/steve/Movies"

# Make Screenshot
ffmpeg -y -i $1 -f image2 -ss 5 -vframes 1 -s 160x120 -an M4V00001.THM

# Encode Video
ffmpeg -i $1 -f psp -b 768 -ar 24000 -ab 64 -s 368x208 M4V00001.MP4

mv M4V00001.* $WORK_DIR

It encodes the video and makes a screenshot with names that work for my psp. it names the files the same everytime: this is because I can only fit one show at a time on my memory stick anyways so I never had a problem. you can rename the files replacing 'M4V00001' with 'M4V00002' and so on. hope it helps. :)

nomb 01-06-2007 12:11 AM

I do have the src but I haven't installed it yet because I can't uninstall the old version without it uninstalling the dependencies as well. Can I install the src over the yum'd version?

nomb

johnson_steve 01-06-2007 12:34 PM

It should install over the other version fine unless your distro (which isn't in your profile) does something goofy with the paths.

Quote:

when I run ./configure on the new version it says aac enabled - no. Which I know I need.
Try it like this:
Code:

./configure --enable-faad --enable-faac
Note: this may add a few dependancies.

dive 01-06-2007 01:57 PM

There are lot of options to enable in the configure. Try doing

./configure --help to see them all

Pretty much all support options are disabled by default and you need to enable the ones you need.

nomb 01-08-2007 05:49 PM

Ok got the configure options and everything and I even got it to work. YaY. The problem is now the ffmpeg is using more updated libraries. so when I uninstall the old ffmpeg and install the new one mplayer and vlc wont work cause its missing the old library files...

Any idea how to fix this?

nomb

johnson_steve 01-08-2007 07:42 PM

Simple gentoo-minded answer: recompile mplayer and vlc. Many programs depend on ffmpeg and the libraries it provides. In order to work they must be compiled against the version you have installed.


All times are GMT -5. The time now is 04:17 PM.