-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
ffmpeg -i "$i" -f wav -acodec mp2 -ac 2 -ar 48000 -ab 256k "${i%.ext}.wav"
That first loop with the above should do the trick for MPEG-2 wrapped up
in a WAV container.
bwfmetaedit shows the following:
james@perfidy:~$ bwfmetaedit --out-tech wywh-bwf.wav
FileName,FileSize,Format,CodecID,Channels,SampleRate,BitRate,BitPerSample,Duration,UnsupportedChunks,bext,INFO,XMP,aXML,iXML,MD5Stored,MD5Generated,Errors,Information
wywh-bwf.wav,10888016,Wave,0050,2,48000,256000,,00:05:40.248,fact,No,No,No,No,No
Either this or the MP2 file output -should- be compatible with
Rivendell. Try one file and see if it works - I've not got a Rivendell
install to hand, sadly
Cheers,
James Harrison
On 14/10/2012 14:12, Daniel & Lucinda Kahn wrote:
> Thanks James for the replay,
>
> My question is, by using ffmpeg, will I get a mpeg L2 BWF-compatible
wav file? If not I won't get a wave form in RDlibrary, this would be the
same problem I am facing with ogg-vorbis. I really need to have access
to the features in RDlibrary to set markers etc.
>
> Thanks,
> Daniel
>
>> sudo apt-get install ffmpeg (or yum, whichever)
>> Replace .ext with the original extension here (in both places):
>>
>> for i in *.ext;do ffmpeg -i "$i" -acodec mp2 -ab 256k -ar 48000
>> "${i%.ext}.mp2"; done
>>
>> This will use ffmpeg to make a new file next to each .ext file in MPEG
>> Layer 2 audio at 256k with a 48kHz sample rate. Tweak numbers to suit.
>> Anything ffmpeg can read, it'll work. You should also be able to compile
>> ffmpeg with TwoLAME support for even better encoding quality - if you
>> don't fancy recompiling, use ffmpeg to export WAV (just change .mp2 to
>> .wav above and remove the -acodec and -ab parameters) and after the
>> second semicolon, add this: twolame -s 48000 -b 256 "${i%.ext}.wav"
>> "${i%.ext}.mp2";
>>
>> for i in *.ext;do ffmpeg -i "$i" -ar 48000 "${i%.ext}.wav"; twolame -s
>> 48000 -b 256 "${i%.ext}.wav" "${i%.ext}.mp2";rm -rf "${i%.ext}.wav";done
>>
>> Once you've done the conversion you can go ahead and verify the files
>> work, move the old .ext files to offline storage in case you ever need
>> them and you should have an MP2 library.
>>
>> Cheers,
>> James Harrison
>>
>> On 13/10/2012 17:19, Daniel & Lucinda Kahn wrote:
>> >/ Fred,
>> />/
>> />/ We have been running Rivendell for almost three years. When we
started
>> />/ we used a compressed format patch to Rivendell since at the time we
>> />/ didn't have the hard drive space to run the library using wav format.
>> />/
>> />/ You said in the past it wouldn't be hard to make a converter
utility for
>> />/ converting a library to mpeg L2. We are in desperate need of that now
>> />/ so we can update to Rivendell 2.x.
>> />/
>> />/ What is the possibility in the near future that you could make
such an
>> />/ utility available?
>> />/
>> />/ Thanks,
>> />/ Daniel
>> />/
>> />/ Ondas de Esperanza 94.1 FM 1340 AM
>> />/ Loja, Ecuador/
>
>
> _______________________________________________
> Rivendell-dev mailing list
> [email protected]
> http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/
iEYEARECAAYFAlB7BE4ACgkQ22kkGnnJQAyUEQCgmjd3/twCk1JrjMWtlXoXM1ss
cmYAoIY3WkbgTYOkae82aNQDa/bdtUPj
=lBkY
-----END PGP SIGNATURE-----
_______________________________________________
Rivendell-dev mailing list
[email protected]
http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev