1
1
I am trying to extract a small part from a larger video without changing the codecs, resolution or something else. Therefore, I use FFmpeg with the following settings.
ffmpeg -vcodec copy -acodec copy -ss 01:00:00 -t 00:00:30 -metadata title="Custom title" -metadata artist="Artist Name" -metadata language="English" -i input_file_h264.mp4 output_file.mp4
I am processing the video on Ubuntu 10.10. with FFmpeg version 0.6-4:0.6-2ubuntu6.2.
The output file comes with the same codec information as the input file. Though, it does open up in VLC and other media player as if the resolution of the video changed. The input source comes with a resolution of 720x576. The codec used is H264 - MPEG-4 AVC (part 10) (avc1). When the output video opens up it appears wider (16:9) although the video settings did not change.
I could not find anything like aspect ratio misconfigured in VLC also.
Do you know of a problem with H264 on Ubuntu? As far as I understand libx264 is used. But is that relevant when I simple slice a video?
- Here is the input video file (876MB).
- Here is the FFmpeg output.
- Here is the output video file (1.4MB).
As suggested by slhck I changed the order of arguments.
ffmpeg -ss 01:00:00 -i 28c3-4906-en-lightning_talks_day_3_pecha_kucha_h264.mp4 -vcodec copy -acodec copy -t 00:00:30 output_file_slhck.mp4
- Here is the corresponding FFmpeg output.
1
I can't reproduce the error. It works without problems for me. Please update to FFmpeg 0.9 or newer as explained here and try again. It should just work.
– slhck – 2011-12-31T14:31:08.810I updated FFmpeg and used the argument order as you suggested. Now it works perfectly! Thank you! – JJD – 2011-12-31T15:13:32.620
Glad I could help! – slhck – 2011-12-31T16:16:29.437