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

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.

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.

ffmpeg concat command not reading input file correctly

I am trying to concatenate two video files using ffmpeg, and I am receiving an error.
ffmpeg -f concat -safe 0 -i list.txt -c copy concat.mp4
And the error output I receive is....
[concat # 0x7ff922000000] Line 1: unknown keyword '43.mp4'
list.txt: Invalid data found when processing input
It looks like that the file names in the list have to be specially formatted to look like:
file '/path/to/file1.wav'
with a word file included. I spent a lot of time trying to guess why ffmpeg encountered an error trying to read the file names. It didn't matter if they were in the list or in the command line. So only after I utilized a command
for f in *.wav; do echo "file '$f'" >> mylist.txt; done
to make list from ffmpeg's manual I had success. The only difference was an additional word file.
Here you can read it yourself: https://trac.ffmpeg.org/wiki/Concatenate#demuxer

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.

Using libav without generating output file

I use libav for an application in which transform coefficients of video should extracted. But the output file of libav is not important in this application. There is memory limitation and I don't want produce the output file.
I read some documentations about libav along with its help. But I couldn't solve this issue. How can force libav from producing the output file?
If you want to decode your file without output, you can use the following approaches:
1: specify its output format as null
2: specify its output as null:
In windows and linux you can use this command:
avconv.exe -i input.mkv -f null null
./avconv -i input.mkv -f null /dev/null
Base on (ffmpeg description) -f Force input or output file format. The format is normally auto detected for input files and guessed from the file extension for output files, so this option is not needed in most cases.
And The second null specify its output as null.

How to programmatically concatenate two aac files

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