felx / ffmbc

Automatically exported from code.google.com/p/ffmbc
0 stars 0 forks source link

MPEG-2 TS Aspect incorrect #117

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When reading TS with TS Reader Lite, aspect shows as 1:1. Aspect is ok in most 
other programs (VLC, Mediainfo, etc), but TS Reader shows what most set top 
boxes will read.

C:\>ffmbc -i "88888.mov" -vcodec mpeg2video -vb 12000k -profile 1 -minrate 
12000k -maxrate 12000k -bufsize 2000k -s 1280x720 -r 29.97 -pix_fmt yuv420p 
-aspect 16:9 -acodec mp2 -ab 384k -ar 48000 -ss 9.95 -t 10 -y -f mpegts 
"D:\88888.mov.mpg
"
FFmbc version 0.7-rc7
Copyright (c) 2008-2012 Baptiste Coudurier and the FFmpeg developers
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '88888.mov':
  Metadata:
    creation_time: 2011-08-08 21:20:46
    timecode: 01:00:14:13
  Duration: 00:00:40.04, start: 0.000000, bitrate: 59131 kb/s
    Stream #0.0(eng): Audio: pcm_s16be, 48000 Hz, 2 channels, s16, 1536 kb/s
    Stream #0.1(eng): Video: dvvideo, yuv422p, 960x720i tff [PAR 1:1 DAR 4:3], 5
7542 kb/s, 29.97 fps
    Metadata:
      codec_name: DV100  RGB
    Stream #0.2(eng): Data: unknown (tmcd)
[scale @ 02A4EAC0] w:960 h:720 fmt:yuv422p -> w:1280 h:720 fmt:yuv420p flags:0x4

[mp2 @ 03293600] The requested thread algorithm is not supported with this threa
d library.
[mpegts @ 0177B9A0] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt every
40 pkts
Output #0, mpegts, to 'D:\88888.mov.mpg':
  Metadata:
    encoder: FFmbc 0.7
    Stream #0.0(und): Video: mpeg2video, yuv420p, 1280x720p [PAR 1:1 DAR 16:9],
cbr, 12000 kb/s, 29.97 fps
    Stream #0.1(und): Audio: mp2, 48000 Hz, 2 channels, s16, 384 kb/s
Stream mapping:
  Stream #0.1 -> #0.0
  Stream #0.0 -> #0.1

Original issue reported on code.google.com by john.dac...@gmail.com on 28 Sep 2012 at 1:01

GoogleCodeExporter commented 8 years ago
Can you send me a file that correctly show 16:9 ? Thanks

Original comment by baptiste...@gmail.com on 12 Oct 2012 at 4:25

GoogleCodeExporter commented 8 years ago
Sure can:

http://71.13.12.26/TS

Please let me know if you need one out of ffmpeg that shows the incorrect 
aspect... though I'm sure you can make one of those.

Original comment by john.dac...@gmail.com on 13 Oct 2012 at 8:39

GoogleCodeExporter commented 8 years ago
So I re-encoded this video using:
ffmbc -i <file> -b 6000M -bf 2 test.ts
and TSReaderLite shows 16:9 as aspect ratio for test.ts

So I think it works as expected

Original comment by baptiste...@gmail.com on 9 Dec 2012 at 2:55

GoogleCodeExporter commented 8 years ago
I just tried doing exactly what you wrote (with the exception of a lower case 
"M" for the bit rate), and I still get 1:1 aspect ratio in TSReaderLite

could you send me a file you made with ffmbc that shows 16:9 in TSReaderLite?

Original comment by john.dac...@gmail.com on 9 Dec 2012 at 3:21

GoogleCodeExporter commented 8 years ago
Here is the info direct out of TSReader:

Elementary Stream PID 256 (0x0100) MPEG-2 Video
MPEG Video: Bitrate 104.857 Mbps Resolution 1280 x 720p
MPEG Video: Framerate 59.94 fps Aspect Ratio 1:1 Chroma Format 4:2:0

Original comment by john.dac...@gmail.com on 9 Dec 2012 at 3:23

GoogleCodeExporter commented 8 years ago
http://sd-10407.dedibox.fr/test.ts

Elementary Stream PID 256 (0x0100) MPEG-2 Video
MPEG Video: Bitrate 104.857 Mbps Resolution 1280 x 720p
MPEG Video: Framerate 59.94 fps Aspect Ratio 16:9 Chroma Format 4:2:0

v2.8.46g

Original comment by baptiste...@gmail.com on 9 Dec 2012 at 8:02

GoogleCodeExporter commented 8 years ago
I'm still getting 1:1... though I do see 16:9 on your file.

I'm using a Windows build of ffmbc, is that what you're using?

C:\Test>ffmbc -i test.ts -bf 2 -b 6M test2.ts
FFmbc version 0.7-rc7
Copyright (c) 2008-2012 Baptiste Coudurier and the FFmpeg developers

Original comment by john.dac...@gmail.com on 9 Dec 2012 at 8:15

GoogleCodeExporter commented 8 years ago
Strange.
No I'm using ubuntu, are you using the build supplied in the downloads section ?
I know it was an issue before rc7 but it was fixed, and I can confirm that it 
was fixed on my side.

Original comment by baptiste...@gmail.com on 9 Dec 2012 at 10:46

GoogleCodeExporter commented 8 years ago
Yes, I was. I just re-downloaded (FFmbc-0.7rc7-win32-120705.zip) and re-tested 
to be sure.

So, does that indicate that it is an issue with the Windows build?

Are you able to test the current Windows build? I'm using the 32-bit, but I 
believe I got the same results with the 64-bit version - though I can test that 
one again if you'd like.

Original comment by john.dac...@gmail.com on 9 Dec 2012 at 10:58

GoogleCodeExporter commented 8 years ago
I just tested 64-bit - 64-bit works! 16:9 aspect is set correctly.

Would you be able to see about getting a fix for the 32-bit version for Windows?

Thanks so much for your help in the development of this.

Original comment by john.dac...@gmail.com on 9 Dec 2012 at 11:09

GoogleCodeExporter commented 8 years ago
Well, rc8 is not too far away so it would be fixed with it I think

Original comment by baptiste...@gmail.com on 10 Dec 2012 at 8:41

GoogleCodeExporter commented 8 years ago
Great, I will look forward to it.

Original comment by john.dac...@gmail.com on 10 Dec 2012 at 8:48

GoogleCodeExporter commented 8 years ago
Would you be able to contact the individual who compiles the Windows builds to 
alert them to the issue?

Or do you think I should open a new ticket for this specifying that it is only 
the 32-bit version that exhibits this problem?

Original comment by john.dac...@gmail.com on 10 Dec 2012 at 9:35