I'm trying to convert a set of DVB-S (MPEG-2 SD) .ts files that have the aspect ratio incorrectly set to 4:3 to .dv files - and I can't force FFmpeg to encode the video as 16:9.
My command is as follows:
ffmpeg -i 08-09-20_-_CBS_1.ts -aspect 16:9 -target ntsc-dv test.dv
During encoding, the PAR and DAR reflect the '-aspect 16:9' option:
Output #0, dv, to 'test.dv':
Metadata:
encoder : Lavf52.84.0
Stream #0.0: Video: dvvideo, yuv411p, 720x480 [PAR 32:27 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 29.97 tbc
Stream #0.1: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
But the converted video still has the aspect set to 4:3:
I'm using a recent version of FFmpeg (SVN-r25702).Code:General Complete name : test.dv Format : DV Format_Commercial_IfAny : DVCPRO File size : 19.8 MiB Duration : 5s 772ms Overall bit rate : 28.8 Mbps Recorded date : 1970-01-01 00:00:00 Video Format : DV Format_Commercial_IfAny : DVCPRO Duration : 5s 772ms Bit rate mode : Constant Bit rate : 24.4 Mbps Width : 720 pixels Height : 480 pixels Display aspect ratio : 4:3 Frame rate mode : Constant Frame rate : 29.970 fps Standard : NTSC Chroma subsampling : 4:1:1 Bit depth : 8 bits Scan type : Interlaced Bits/(Pixel*Frame) : 2.357 Stream size : 16.8 MiB (85%)
If I encode to mpeg4 video in a .mp4 container, the '-aspect' option works as expected - so it seems to be a specific problem with encoding to DV.
Anyone have any ideas?
+ Reply to Thread
Results 1 to 2 of 2
-
-
Update: I've also tried dropping the -target option and manually specifying the parameters.
ffmpeg -i 08-09-20_-_CBS_1.ts -vcodec dvvideo -acodec pcm_s16le -pix_fmt yuv411p -aspect 16:9 test_02.dv
No difference, although changing the -aspect value is reflected in the info on the command prompt.
Setting -aspect 4:3 gives:
Code:Output #0, dv, to 'test_02.dv': Metadata: encoder : Lavf52.84.0 Stream #0.0: Video: dvvideo, yuv411p, 720x480 [PAR 8:9 DAR 4:3], q=2-31, 200 kb/s, 90k tbn, 29.97 tbc Stream #0.1: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 Press [q] to stop encoding
Code:Output #0, dv, to 'test_02.dv': Metadata: encoder : Lavf52.84.0 Stream #0.0: Video: dvvideo, yuv411p, 720x480 [PAR 32:27 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 29.97 tbc Stream #0.1: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 Press [q] to stop encoding
Similar Threads
-
FFmpeg's Bitrate Tolerance Option...
By raymng in forum Video ConversionReplies: 1Last Post: 13th Mar 2012, 09:08 -
[FFmpeg] libxvid - Invalid aspect ratio
By Klagar in forum Video ConversionReplies: 4Last Post: 26th Nov 2010, 16:52 -
ffmpeg: HowTo add option for a 'delay -x' in the param string ?
By vhelp in forum AudioReplies: 1Last Post: 17th Feb 2008, 12:52 -
player that ignores PUO
By lieven in forum DVD & Blu-ray PlayersReplies: 3Last Post: 20th Sep 2007, 13:48 -
ffmpeg faststart option? for progressive dl viewing
By kosso in forum ffmpegX general discussionReplies: 0Last Post: 22nd Aug 2007, 06:21