Should I avoid copying codecs when cropping padding, ... ?
Hi, Are my speculations correct that I'd better avoid copying the original video codec of a file when cropping and padding and avoid both codecs for changing the duration and start point?
----- Original Message ----- From: "Jamie Green" <jamiesgreen at gmail.com> To: <ffmpeg-user at mplayerhq.hu> Sent: Sunday, April 11, 2010 3:27 PM Subject: [FFmpeg-user] Should I avoid copying codecs when cropping padding,... ?
Hi,
Are my speculations correct that I'd better avoid copying the original video codec of a file when cropping and padding and avoid both codecs for changing the duration and start point? _______________________________________________
No, you're incorrect. And yes, you are correct :-) It highly depends on the codecs. Some codecs have a fixed resolution, so you cannot alter it without creating incompatible files. Chaning start point is another thing, also depends on the actual codec used. What are you trying to do? Bouke
Bouke <bouke <at> editb.nl> writes:
It highly depends on the codecs. Some codecs have a fixed resolution, so you cannot alter it without creating incompatible files. Chaning start point is another thing, also depends on the actual codec used. What are you trying to do? _______________________________________________
I was just trying to pad a video. The video codec was H.264 and I used -vcodec copy and opened the new movie in QuickTime and the new resolution wasn't really like it was supposed to be but MediaInfo reported the correct width and height. Then I converted it again but with -vcodec libx264 and it was normal. I thought cropping would have the same problem but I never really tried. I asked it to see if it had anything to do with my video or with FFmpeg but like you said, it's the codec. Do you mean that changing the start point and the duration should work? Because it kind of didn't with another movie I converted (actually to verify my above speculations but the video was a bit too long to convert so I added -ss and -t to make it only convert 10 seconds). Again I used -vcodec copy and - acodec copy. The video codec was XviD and the audio MP3. Regards, Jamie.
On Sun, Apr 11, 2010 at 9:02 PM, Jamie Green <jamiesgreen at gmail.com> wrote:
I was just trying to pad a video. The video codec was H.264 and I used -vcodec copy and opened the new movie in QuickTime and the new resolution wasn't really like it was supposed to be but MediaInfo reported the correct width and height. Then I converted it again but with -vcodec libx264 and it was normal. I thought cropping would have the same problem but I never really tried. I asked it to see if it had anything to do with my video or with FFmpeg but like you said, it's the codec.
Mind DAR, PAR and requirements of some codecs for the dimensions to be divisible by 2,4 or 16. A. -- __ /.)\ +48 695 600 936 \(./ abodera at gmail.com
participants (3)
-
abodera@gmail.com -
bouke@editb.nl -
jamiesgreen@gmail.com