LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 08-04-2013, 08:56 PM   #1
funnsoup
LQ Newbie
 
Registered: Apr 2012
Posts: 14

Rep: Reputation: Disabled
Reencode avi files


Hello all,

I have a collection of Sony Bluray players that will not play some avi files that I have. The files are not corrupted and will play on a computer fine. I have tried to use ffmpeg and handbrake to reencode these files into another format but so far no luck.

Here is a sample of the ffmpeg batch conversion that I am trying to do.

for name in *.avi; do ffmpeg -vcodec libx264 -i "$name" "${name/.avi/.mp4}"; done;

Needless to say it is not working...

Thanks!
 
Old 08-04-2013, 09:17 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
What error messages, if any, do you get when you run this?
 
Old 08-04-2013, 09:53 PM   #3
funnsoup
LQ Newbie
 
Registered: Apr 2012
Posts: 14

Original Poster
Rep: Reputation: Disabled
Sorry I thought I posted that.

ffmpeg version 0.8.6-4:0.8.6-0ubuntu0.12.04.1, Copyright (c) 2000-2013 the Libav developers
built on Apr 2 2013 17:02:36 with gcc 4.6.3
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
Unknown decoder 'libx264'
 
Old 08-05-2013, 12:12 AM   #4
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Quote:
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
So I have you tried doing that?
jdk
 
Old 08-05-2013, 02:24 AM   #5
funnsoup
LQ Newbie
 
Registered: Apr 2012
Posts: 14

Original Poster
Rep: Reputation: Disabled
avconv is just going to replace ffmpeg as far as I know but at this point it is just as functional.

Anyway I have been testing on a single file with the following witch gives a working mp4 file however nothing that I can play from my dlna server to my blurays.

avconv -i ./'Cancun 2006'.avi -r 23.98 -vcodec libx264 -acodec libvo_aacenc -ab 128 ./'Cancun 2006'.mp4

Any thoughts?
 
Old 08-05-2013, 04:08 AM   #6
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
You should look in the manual for the player and see what codecs and formats it supports.
 
Old 08-05-2013, 07:32 PM   #7
funnsoup
LQ Newbie
 
Registered: Apr 2012
Posts: 14

Original Poster
Rep: Reputation: Disabled
From the manual...

MPEG-4 AVC (.mkv, .mp4, .m4v, .m2ts, .mts)

I have been trying to get the results of the reencoded avi file to match up to a pull from a dvd using ffprobe or avprobe. Getting close but so far the dlna bluray players are still not liking the files.

The libx264 is compliant with mpeg4 avc so I am not sure of the hangup

Here is the most recent command.

avconv -i ./'Cancun 2006'.avi -r 23.98 -s 720x360 -c:v libx264 -preset slow -crf 22 -c:a libvo_aacenc -ar 48000 -ac 2 -ab 128 ./'Cancun 2006'.mp4

Thanks!
 
Old 08-06-2013, 03:09 AM   #8
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Try the .mkv container. You may also want to try constant bitrate if the manual states any such limits.
 
Old 08-07-2013, 12:59 AM   #9
funnsoup
LQ Newbie
 
Registered: Apr 2012
Posts: 14

Original Poster
Rep: Reputation: Disabled
It didn't say but I needed a constrained baseline not the main as it was defaulting to using.

Thanks for all the help!
 
  


Reply



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
Bash script to convert .mpg files to .avi files? Mike_Snyder Linux - Newbie 5 09-19-2009 01:33 PM
Is it possible for media files such as ogg mp3 avi files to be infected with a virus? christianunix Linux - Newbie 1 03-21-2009 05:15 AM
Gui that convert AVI to AVI DivX, with telling final avi target final size ? frenchn00b Linux - General 5 03-02-2008 05:37 AM
is it possible to convert avi files to BUP files? santiagosilva Linux - Desktop 5 12-20-2007 01:23 PM
change uploaded files from filename.avi to filename.avi.html like www.rapidshare.de latheesan Linux - Newbie 3 06-16-2005 04:33 AM

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

All times are GMT -5. The time now is 12:57 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