[FFmpeg-user] Replacing audio track failing

JULIAN GARDNER joolzg at btinternet.com
Mon Dec 3 19:47:35 CET 2012





----- Original Message -----
> From: JULIAN GARDNER <joolzg at btinternet.com>
> To: FFmpeg user questions <ffmpeg-user at ffmpeg.org>
> Cc: 
> Sent: Monday, 3 December 2012, 17:32
> Subject: Re: [FFmpeg-user] Replacing audio track failing
> 
> 
> 
>> ________________________________
>>  From: Carl Eugen Hoyos <cehoyos at ag.or.at>
>> To: ffmpeg-user at ffmpeg.org 
>> Sent: Monday, 3 December 2012, 17:25
>> Subject: Re: [FFmpeg-user] Replacing audio track failing
>> 
>> JULIAN GARDNER <joolzg <at> btinternet.com> writes:
>> 
>>>   $FFMPEG -threads 0 -i "$file" -i normal.wav -map 0:0 -map 1 
> -vcodec 
>>>  libx264 -preset superfast -x264opts keyint=75 -x264opts vbv-maxrate=900 
> 
>>>  -vf scale=720:288 -bufsize 2M -r 25 -acodec libfaac -ab 128k -ar 32k 
> -ac
>>>   2 -async 1 -f mpegts "$DEST_DIR/$tsfile"
>> 
>> You should try as hard as possible not to use variables 
>> in the command lines you post here.
>> (I don't see the problem in above line although there 
>> obviously is one - perhaps you can change your script
>> so it does print what it executes or add -report)
>> 
>>>  Unknown decoder 'libx264'
>> 
>> Carl Eugen
>> 
> 
> OK will do, but as you have everything including command line and UNCUT output i 
> did not see this as a problem.
> replace "$file" with "/mnt/media1/Jukebox_upload/Front 242 - 
> Headhunter.mpg"
> replace "$DEST_DIR/$tsfile" with "/mnt/media1/Jukebox/Front 242 - 
> Headhunter.ts" 
> 
> or to be pedantic
> 
> replace "$DEST_DIR" with "/mnt/media1/Jukebox"
> and
> replace "$tsfile" with "Front 242 - Headhunter.ts"
> 
> joolz

encoder at encoder21:~/.services/JukeboxC$ /usr/local/bin/ffmpeg -threads 0 -i "/mnt/media1/Jukebox_upload/Front 242 - Headhunter.mpg" -i normal.wav -map 0:0 -map 1 -vcodec libx264 -preset superfast -x264opts keyint=75 -x264opts vbv-maxrate=900 -vf scale=720:288 -bufsize 2M -r 25 -i extracted.wav -acodec libfaac -ab 128k -ar 32k -ac 2 -async 1 -f mpegts a.ts
ffmpeg version N-44994-gf077e1f Copyright (c) 2000-2012 the FFmpeg developers
  built on Oct  3 2012 00:15:57 with gcc 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)
  configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libx264
  libavutil      51. 73.101 / 51. 73.101
  libavcodec     54. 63.100 / 54. 63.100
  libavformat    54. 29.105 / 54. 29.105
  libavdevice    54.  3.100 / 54.  3.100
  libavfilter     3. 19.102 /  3. 19.102
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 16.100 /  0. 16.100
  libpostproc    52.  1.100 / 52.  1.100
[mpeg @ 0x3053340] max_analyze_duration 5000000 reached at 5005000
Input #0, mpeg, from '/mnt/media1/Jukebox_upload/Front 242 - Headhunter.mpg':
  Duration: 00:03:21.03, start: 0.659989, bitrate: 1394 kb/s
    Stream #0:0[0x1e0]: Video: mpeg1video, yuv420p, 352x240 [SAR 200:219 DAR 880:657], 1150 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 29.97 tbc
    Stream #0:1[0x1c0]: Audio: mp2, 44100 Hz, stereo, s16, 224 kb/s
[wav @ 0x305a400] max_analyze_duration 5000000 reached at 5015510
Guessed Channel Layout for  Input Stream #1.0 : stereo
Input #1, wav, from 'normal.wav':
  Duration: 00:03:20.54, bitrate: 1411 kb/s
    Stream #1:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s
Unknown decoder 'libx264'

Its a pretty simple script, take a file, strip the audio, normalize the audio, transcode the file to a lower rate with the normalized audio.

joolz


More information about the ffmpeg-user mailing list