ffmpeg - Encode video for ipod classic -


I have finished installing ffmpeg on debian wheezy using these instructions - now I I want to play on my video. The video contains the following information: $ mediainfo in.mp4 General full name: in.mp4 format: mpeg-4 format profile: base media / version 2 codec id: mp42 File size: 1.21 GiB Duration: 55 Mn 10 S Overall bit rate mode: Variable Bit Rate: 3 130 Kbps Encoded Date: UTC 2010-08-25 23:38:59 Tagged Date: UTC 2010-08-25 23:38 : 59 Video ID: 1 Format: AVC Format / Info: Advanced Video Codec Format Profile: High @ L3. 2 format settings, cabac: yes format settings, reframe: 2 frame codec id: avc1 codec ID / info: advanced video coding duration: 55 mn 10 s bit rate mode: convertible bit rate: 3 000 kbps maximum bit rate: 5 000 kbps Width: 1 280 pixels height: 720 pixels Display aspect ratio: 16: 9 frame rate mode: continuous frame rate: 29.970 fps standard: NTSC color space: YUV chroma Submooling: 4: 2: 0 bit depth: 8 bit scan Car: Progressive Bits / (Pixel * Frame): 0.10 9 Stream Size: 1.16 GiB (96%) Language: English Encoded Date: UTC 2010-07-21 13:28:49 Tagge d Date: UTC 2010-07-21 13:28:49 Color Primary: BT705-5, BT.1361, IEC 61966-2-4, SMPTE RP 177 Transfer Features: BT .709-5, BT.1361 Matrix Coefficient: BT.70 9-5 , BT.1361, IEC 61966-2-4 709, SMPTE RP 177 Audio ID: 2 Format: AAC format / information: Advanced audio codec format Profile: LC C Deck ID: 40 Duration: 55 mn 10 bit bit mode: Variable bit rate: 125 kbps Maximum bit rate: 270 kbps Channel: 2 channel channel position: front: LR Sampling rate: 44.1kHh Compression mode: Size of the losel stream: 49.4 MiB (4%) Language: English Encoded Date: UTC 2010-07-21 13:28:49 Tagged Date: UTC 2010-07-21 13:28:49 mdhd_Duration: 3310353 < P> I have already tried copying the video to iPod with banshee but the video is just a black sky What is the best format Rin displays running video on iPod? What should I use the ffmpeg parameter? I want to maximize the resolution while reducing the file size.

You probably have to re-encode because the iPod Classic can be handled up to 640x480 as provided to you. , But your video is 1280x720 Video H.264, Baseline Profile, Level 3.0:

  PhpEG-Eye in MMP 4-vcodec libx264 -crf 23-preset fast -Proofile: v baseline \ - Livel 3-RFS 6 can be -vf "scale = 640: -1, pad = iw: 480: 0: (oh-IH) / 2, format = yuv420p" \ -acodec copy output.mp4  < / pre> 
  • -crf Controlling quality and -preset . See for more information on those options.

  • --Live does not currently set -refs for this encoder, so set it manually There is a pending patch to solve, so it should be fixed soon.

  • In this case, the output will scale to 640x360. The -1 value maintains the original 16: 9 aspect ratio in the height dimension, while the 640 value determines the new width.

  • Specifies the new maximum width and height of the video, as well as side-padding and top-padding in pixels. The original 16: 9 video is required for the letterbox in the 4: 3 aspect ratio required by the iPod Classic. If this is not done, then the iPod will extend the video to fit the height of the screen and during the playback it will cut the side of the video. To calculate the values ​​required for this parameter, consider this:

      1280 * x = 640 # x The size factor in the width dimension x = 640/1280 = 0.5 # Now let us After scaling the original video height by 720 * x + 2 * p = 480 # x, then after adding the same padding p to the top and bottom of the video, you should give up to 480 new desired # video height. Resolve P = 60 for P 360 + 2 * P = 480    
  • This will ensure that the output uses a corresponding chroma subsampling scheme. By using libax264, ffmpeg attempts to avoid or reduce chroma subsampling, but non-FFmpeg based players and devices do not support anything other than yuv420p, thus This will also ensure consistency. This is similar to using the -pix_fmt yuv420p , you can see in other examples, but using the format can be explained to you that in relation to the other Where it will be applied to the filter (it is not really that matters too much in this case).

  • Since audio is probably fine because it can be re-encored instead of encoded < / html>

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -