LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 11-25-2012, 06:38 AM   #16
Roberto Neri
LQ Newbie
 
Registered: Nov 2012
Location: Palermo, Italy
Distribution: Slackware
Posts: 9

Rep: Reputation: Disabled

Hi again,
I see you edited src/backup/k9mp4enc.cpp, which is another thing I've been playing with yesterday, because in the FFMpeg documentation (see http://ffmpeg.org/ffmpeg.html#Advanced-options) I read

-async samples_per_second
Audio sync method. "Stretches/squeezes" the audio stream to match the timestamps, the parameter is the maximum samples per second by which the audio is changed. -async 1 is a special case where only the start of the audio stream is corrected without any later correction. This option has been deprecated. Use the asyncts audio filter instead.


which means that in src/backup/k9mp4enc.cpp

cmd << "-async" << "1" ;

should be replaced with something like

cmd << "-af" << "asyncts=..." ;

but I assume you tested your patch, which replaces "-async 1" with "-async 44100", and it worked, which is quite confusing, really.


Now, let's take the instruction that follows, i.e.

cmd << slNewAudio;

this instruction causes k9copy to append the "-newaudio" option as the last argument of the command, like so

/usr/bin/ffmpeg -i /dev/stdin -vcodec copy -acodec copy -f avi -async 1 -y /home/roberto/MYDVD.avi -newaudio

when trying to encode to Mpeg-4 a DVD selecting more that one audio track; in this case the command fails with error

"Missing argument for option 'newaudio'"

and in fact in the FFMPeg ChangeLog for version 0.9 (see https://raw.github.com/FFmpeg/FFmpeg/master/Changelog) they state

* -newvideo/-newaudio/-newsubtitle options were removed. Not only were they irregular and highly confusing, they were also redundant. In avconv the -map option will create new streams in the output file and map input streams to them. E.g. avconv -i INPUT -map 0 OUTPUT will create an output stream for each stream in the first input file.

once again I haven't got the faintest idea how to fix this; definitely, without a new maintainer who knows what they're doing (and with a moving target like FFMpeg), I'm afraid k9copy won't last long, no matter how hard we try to patch it in the SlackBuild.

As for the README note, it's fine for me, but I would also add that default FFmpeg options might be deprecated/obsolete and should be review/changed in the Encoders configuration section.

Cheers
Roberto
 
  


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
K9Copy error DanB_1983 Linux - Software 0 02-23-2007 06:00 PM
no sound with k9copy? mma8x Linux - Software 2 10-10-2006 02:14 PM
k9copy keeps crashing thebiggiantmouse Linux - Software 0 07-23-2006 10:54 AM
K9copy help ElJollyRancher Linux - Software 3 07-18-2006 08:13 AM
k9copy thebiggiantmouse Linux - Software 8 07-16-2006 05:20 PM


All times are GMT -5. The time now is 02:46 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration