LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-04-2011, 11:32 AM   #1
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
ffmpeg script fails after Squeeze upgrade


Seems that my custom ffmpeg transcoding script has started failing ever since I upgraded to Squeeze. I ended up just installing handbrake-cli and it works now, but I'm curious why ffmpeg was failing. Here's the ffmpeg line
Code:
ffmpeg -i "${inputfile}" -acodec libfaac -ab 128k -vcodec libx264 -vpre normal -crf 22 -threads 0 -title "${title}" -f mp4 "${outputfile}"
And here's the relevant lines from mythbackend.log
Code:
FFmpeg version SVN-r25838, Copyright (c) 2000-2010 the FFmpeg developers
  built on Jan 21 2011 09:10:31 with gcc 4.4.5
  configuration: --enable-libdc1394 --prefix=/usr --extra-cflags='-Wall -g ' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-avfilter --enable-libdirac --disable-decoder=libdirac --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-libvpx --enable-librtmp --extra-libs=-lgcrypt --disable-altivec --disable-armv5te --disable-armv6 --disable-vis
  libavutil     50.33. 0 / 50.33. 0
  libavcore      0.14. 0 /  0.14. 0
  libavcodec    52.97. 2 / 52.97. 2
  libavformat   52.87. 1 / 52.87. 1
  libavdevice   52. 2. 2 / 52. 2. 2
  libavfilter    1.65. 0 /  1.65. 0
  libswscale     0.12. 0 /  0.12. 0
  libpostproc   51. 2. 0 / 51. 2. 0
[mpeg @ 0x9169ca0] max_analyze_duration reached
Input #0, mpeg, from '/mnt/mythtv/1025_20110403221100.mpg':
  Duration: 00:22:19.70, start: 0.233722, bitrate: 5222 kb/s
    Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x480 [PAR 8:9 DAR 4:3], 9800 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, 2 channels, s16, 384 kb/s
Unrecognized option 'me'
The problem I have with the unrecognized option line is that I can't find 'me' anywhere in my input command. The input file is always something like /mnt/mythtv/1025_20110403221100.mpg, the output file is something like /var/www/mythroku/1025_20110403221100.mp4, and the title is something like "Sportscenter".
 
Old 04-06-2011, 10:27 AM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Original Poster
Rep: Reputation: 281Reputation: 281Reputation: 281
So I dug around a bit more and found out what's going on. ffmpeg uses some files called preset files (the -vpre normal from the script above) that contain additional settings for each type of codec. The previous version preset files were stored in /home/mythtv/.ffmpeg and contained switches (like -me) that are now deprecated. So I deleted the files in the mythtv home directory and had to choose a new preset file because "normal" is no longer one of the default presets.

Now I just have to fiddle with the different presets until I get the quality/compression ratio that's acceptable.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Squeeze: Bootloader Install Fails UZ64 Debian 8 03-23-2011 05:52 PM
Debian/Squeeze fails to get DHCP address on startup garydale Linux - Networking 5 03-04-2010 12:10 PM
ffmpeg Slackbuild fails in current multilib damgar Slackware 4 01-09-2010 09:12 PM
Debain Squeeze, LaTex installation fails mike11 Linux - Software 2 10-29-2009 01:44 AM
HowTo: Custom ffmpeg with x264 support for AMD64 on Debian Squeeze propofol Linux - Software 0 10-09-2009 12:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration