How to programmatically concatenate two aac files - iphone

Does any one know how concatenate two aac audio files into one. I can do this with mp3 using ffmpeg but no luck with files with an m4a extension.
I tried the following with no luck:ffmpeg -i concat:"file1.m4a\|file2.m4a" -c copy output.m4a'

Just use cat:
cat file1.m4a file2.m4a >output.m4a

Related

Powershell ffmpeg

I am successfully u sing ffmpeg via powershell to compress video files, however I can't get the compression to occur in a single location, I only have success when I make separate inputs and outputs.
For example, this command will be successful:
ffmpeg -y -i \\path\$x -vf scale=1920:1080 \\diff_path\$x
this will not do anyhting or will corrupt the file:
ffmpeg -y -i \\path\$x -vf scale=1920:1080 \\path\$x
I think I understand why this doesn't work, but I'm having a hard time finding a solution. I want the script to address a file and compress it in it's current location, leaving only a single compressed video file.
Thanks all
Not possible. Not the answer you want, but FFmpeg is not able to perform in-place file editing, which means it has to make a new output file.

How to convert .ogg files inside a directory to .wav files by using some console utility [duplicate]

This question already has answers here:
How do you convert an entire directory with ffmpeg?
(34 answers)
Closed 2 years ago.
I have a bunch of files:
dir/file1.ogg
dir/file2.ogg
...
How could I convert them to .wav files
dir/wav/file1.wav
dir/wav/file2.wav
...
by using a console command? Now I'm using OSX, but I need the answer for Windows as well.
Your sample code is close.
for i in *.ogg; do
ffmpeg -acodec libvorbis -i "$i" -acodec pcm_s16le "${i%ogg}wav"
done
This decodes with ffmpeg and generates an output file name that removes the trailing ogg and appends a trailing wav.

FFMPEG: only get audio compressed frames / packets. command line

I would like a command like for FFMPEG that will create a file which contains only uncompressed audio frames/packets from a file.
Example:
ffmpeg -i in.mp3 --no-decompress out
Something like this would be fantastic.

how to create a mpd file using MP4Box

I am new to this GPAC's MP4Box tool. Using this we can create MPD(Media Presentation Description) files for DASH. I dont know how to do this.
Have anyone created a MPD for a video file using this tool?
MP4Box -dash 2000 -profile dashavc264:live -bs-switching multi -url-template sample.mp4#trackID=1:id=vid0:role=vid0 sample.mp4#trackID=2:id=aud0:role=aud0 -out sample_200.mpd
sample.mp4 is mp4 file which you want to dashing.
sample.mpd is output file
They Very basic command will do
MP4Box -dash <segment length in msec> sample.mp4
For more information read here: DASH Support in MP4Box
or
MP4Box -h dash

ffmpeg command line tool remove all metadata information after converting a file codec

I am converting abc.flac file to abc.mp3 using ffmpeg command line tool. But when abc.mp3 is created all metadata information get clear like artist name , album name etc. all field get empty.
i am using this command
ffmpeg -i "abc.flac" -acodec mp3 -ab 256 "abc.mp3"
this give me abc.mp3 i also try -map_metadata tag but it is not working
Have you any idea about this
Thanks in advance.