ffmpeg transcode twice compress further?

I have a collection of avi videos (say A). I first convert them into MPEG4 Part2 (say B) using ffmpeg -i ${inname} -vf scale=340:256,setsar=1:1 -q:v 1 -c:v mpeg4 -g 12 -f rawvideo ${outname}. The total file size is 3.5G. Then using B as input, I apply the same command to transcode B again into C, … Read more

How to let ffmpeg use back same bitrate when encode video?

I have an mp4 file encoded using mpeg4 with a size of 20MB When I checked the details of it, it said it has a 308k variable bitrate Then, when I encoded it into h264, ffmpeg converted it with a constant 800k bitrate As a result, the file size became 60MB How do I get … Read more

ffmpeg: How to repair Non-monotonous DTS in output mpeg4 stream

I have an mpeg4 stream contained in a matroska container which appears to give: $ ffmpeg -y -hide_banner -i input.mkv -c copy output.mkv [mpeg4 @ 0x5623e5204900] Failed to parse extradata Input #0, matroska,webm, from ‘input.mkv’: Metadata: ENCODER : Lavf58.20.100 Duration: 01:07:47.92, start: 0.000000, bitrate: 1433 kb/s Stream #0:0: Video: mpeg4 (Advanced Simple Profile), yuv420p, 688×512 … Read more

FFMpeg Mp4 cover art shows on Windows but not in Android

I’m decrypting an audible audiobook using this command: ffmpeg -audible_key KEY -audible_iv IV -i book.aax -c copy out.m4b The output file seems fine on my Windows machine. Metadata and cover are are present. But when I copy the file to my android device, the cover art isn’t loaded (CX File Explorer and Smart Audiobook Player). … Read more

Synchronizing audio and video using MP4Box / ffmpeg to concatenate files

I have two H.264 encoded MPEG-4 files that I need to concatenate. I have been using MP4Box for this task by first ensuring the files are encoded identically (even went so far as to compare output from h264_parse on their video tracks) and then concatenating with this command: MP4Box -cat file1.mp4 -cat file2.mp4 output_file.mp4 This … Read more

What do the numbers 240 and 360 mean when downloading video? How can I tell which video is more compressed?

I have downloaded some computer science lectures from YouTube recently. There is usually more than one choice of file size and file format to download. I noticed that for the same video, the downloadable one with FLV 240 extension is larger than another one with MPEG4 360 extension. What does the number (240 and 360) mean? … Read more