FAQ  •  Register  •  Login

Add Video transcoding match attribute for variable framerate

<<

JezzaT

Streaming enthusiast

Posts: 32

Joined: Fri Oct 28, 2011 9:49 am

Location: Wellington, New Zealand

Post Fri Apr 26, 2013 11:48 am

Add Video transcoding match attribute for variable framerate

My Bravia doesn't play variable framerate h264 at the right speed (Files like the one below play something like 4X fast) so I want to transcode those files rather then remuxing but I still want the constant frame rate h264 to just remux

  Code:
C:\Program Files (x86)\WinFF>"C:\Program Files (x86)\WinFF\ffmpeg.exe" -threads 4  -y -i "E:\Video\T
est\Aspect\Cats And Dogs.m4v"
ffmpeg version N-49757-g969039e Copyright (c) 2000-2013 the FFmpeg developers
  built on Feb  9 2013 20:28:03 with gcc 4.7.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzli
b --enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray --enable-li
bcaca --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-l
ibopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --e
nable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enabl
e-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxv
id --enable-zlib
  libavutil      52. 17.101 / 52. 17.101
  libavcodec     54. 91.102 / 54. 91.102
  libavformat    54. 62.100 / 54. 62.100
  libavdevice    54.  3.103 / 54.  3.103
  libavfilter     3. 37.101 /  3. 37.101
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'E:\Video\Test\Aspect\Cats And Dogs.m4v':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42isomavc1
    creation_time   : 2012-10-21 21:43:29
    encoder         : HandBrake 0.9.8 2012071700
  Duration: 01:23:36.88, start: 0.000000, bitrate: 2725 kb/s
    Chapter #0.0: start -0.160000, end 262.600000
    Metadata:
      title           : Chapter 1
    Chapter #0.1: start 262.600000, end 406.120000
    Metadata:
      title           : Chapter 2
    Chapter #0.2: start 406.120000, end 636.360000
    Metadata:
      title           : Chapter 3
    Chapter #0.3: start 636.360000, end 768.040000
    Metadata:
      title           : Chapter 4
    Chapter #0.4: start 768.040000, end 1026.320000
    Metadata:
      title           : Chapter 5
    Chapter #0.5: start 1026.320000, end 1146.120000
    Metadata:
      title           : Chapter 6
    Chapter #0.6: start 1146.120000, end 1385.200000
    Metadata:
      title           : Chapter 7
    Chapter #0.7: start 1385.200000, end 1725.320000
    Metadata:
      title           : Chapter 8
    Chapter #0.8: start 1725.320000, end 1837.000000
    Metadata:
      title           : Chapter 9
    Chapter #0.9: start 1837.000000, end 2064.200000
    Metadata:
      title           : Chapter 10
    Chapter #0.10: start 2064.200000, end 2166.280000
    Metadata:
      title           : Chapter 11
    Chapter #0.11: start 2166.280000, end 2307.920000
    Metadata:
      title           : Chapter 12
    Chapter #0.12: start 2307.920000, end 2507.880000
    Metadata:
      title           : Chapter 13
    Chapter #0.13: start 2507.880000, end 2640.040000
    Metadata:
      title           : Chapter 14
    Chapter #0.14: start 2640.040000, end 2857.560000
    Metadata:
      title           : Chapter 15
    Chapter #0.15: start 2857.560000, end 3090.480000
    Metadata:
      title           : Chapter 16
    Chapter #0.16: start 3090.480000, end 3269.080000
    Metadata:
      title           : Chapter 17
    Chapter #0.17: start 3269.080000, end 3429.960000
    Metadata:
      title           : Chapter 18
    Chapter #0.18: start 3429.960000, end 3631.840000
    Metadata:
      title           : Chapter 19
    Chapter #0.19: start 3631.840000, end 3913.440000
    Metadata:
      title           : Chapter 20
    Chapter #0.20: start 3913.440000, end 4144.560000
    Metadata:
      title           : Chapter 21
    Chapter #0.21: start 4144.560000, end 4259.440000
    Metadata:
      title           : Chapter 22
    Chapter #0.22: start 4259.440000, end 4444.400000
    Metadata:
      title           : Chapter 23
    Chapter #0.23: start 4444.400000, end 4654.200000
    Metadata:
      title           : Chapter 24
    Chapter #0.24: start 4654.200000, end 4712.680000
    Metadata:
      title           : Chapter 25
    Chapter #0.25: start 4712.680000, end 5016.880000
    Metadata:
      title           : Chapter 26
    Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 720x576 [SAR 64:45 DAR 16:9],
 2083 kb/s, 25 fps, 25 tbr, 90k tbn, 180k tbc
    Metadata:
      creation_time   : 2012-10-21 21:43:29
    Stream #0:1(eng): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, 5.1(side), fltp, 640 kb/s
    Metadata:
      creation_time   : 2012-10-21 21:43:29
    Stream #0:2(und): Subtitle: mov_text (text / 0x74786574)
    Metadata:
      creation_time   : 2012-10-21 21:43:29.
To get around not having this attribute I remux constant frame rate 16:9 videos into m2ts and transcocde h264 in all other containers which is not ideal
Sony Bravia KDL-32V5500 | Panasonic Viera TH-P42U30Z | Panasonic DMP-BD75 | Windows 7 |
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Fri Apr 26, 2013 12:00 pm

Re: Add Video transcoding match attribute for variable frame

Could you try to remux your file with TSMuxer tool (Tsmux/h264/ac3/sub), and then change/force fps value on "General Track options" tab ?
Illico
Sony 2010 KDL-46EX501 | BDP-S373 | SMP-N100 | Windows 8-i7 | Network DD HD-CE1.5TLU2 | Livebox2-UHD86 | ServiiDroid | ServiiGo | BubbleUPnP
Serviio beta tester - Moderator
<<

JezzaT

Streaming enthusiast

Posts: 32

Joined: Fri Oct 28, 2011 9:49 am

Location: Wellington, New Zealand

Post Fri Apr 26, 2013 12:16 pm

Re: Add Video transcoding match attribute for variable frame

Illico wrote:Could you try to remux your file with TSMuxer tool (Tsmux/h264/ac3/sub), and then change/force fps value on "General Track options" tab ?
I drop the file onto tsMuxerGUI and get this error -
---------------------------
Unsupported format
---------------------------
Can't detect stream type. File name: "E:\Video\Test\Aspect\Cats And Dogs.m4v"
---------------------------
OK
---------------------------
Presumably because it is a mp4 file - I could remux it into mkv first I guess. I'll let you know how that goes.
Sony Bravia KDL-32V5500 | Panasonic Viera TH-P42U30Z | Panasonic DMP-BD75 | Windows 7 |
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Fri Apr 26, 2013 1:48 pm

Re: Add Video transcoding match attribute for variable frame

JezzaT wrote:Presumably because it is a mp4 file - I could remux it into mkv first I guess. I'll let you know how that goes.

Yep
Illico
Sony 2010 KDL-46EX501 | BDP-S373 | SMP-N100 | Windows 8-i7 | Network DD HD-CE1.5TLU2 | Livebox2-UHD86 | ServiiDroid | ServiiGo | BubbleUPnP
Serviio beta tester - Moderator
<<

JezzaT

Streaming enthusiast

Posts: 32

Joined: Fri Oct 28, 2011 9:49 am

Location: Wellington, New Zealand

Post Sat Apr 27, 2013 1:05 pm

Re: Add Video transcoding match attribute for variable frame

Setting FPS to 25 worked! (I suspect any FPS setting other than 90000 would).
I even had a video my Viera wouldn't play (it played all the other 10 or so) which got sorted by doing this remux. Wish I had thought of trying it myself.
I did have one mkv TSMuxer wouldn't read - gave me
  Code:
---------------------------
tsMuxeR error
---------------------------
Matroska parse error: invalid H264 NAL unit size. NAL unit truncated.
Matroska parse error: invalid H264 NAL unit size. NAL unit truncated.
Matroska parse error: invalid H264 NAL unit size. NAL unit truncated.
Error: Unknnown exception. It does not have to be! Plase contact the application support team for more information.
  Code:
Input #0, matroska,webm, from 'S:\Videos\SingleFiles\Movies\AVC\Variable Framerate\Argo (2012) [720p
] [R] [voted 8.0] [Thriller].mkv':
  Metadata:
    creation_time   : 2013-02-02 17:05:24
  Duration: 02:00:23.22, start: 0.000000, bitrate: 7395 kb/s
    Stream #0:0(eng): Video: h264 (High), yuv420p, 1280x528, SAR 1:1 DAR 80:33, 23.98 fps, 23.98 tbr
, 1k tbn, 180k tbc (default)
    Stream #0:1: Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s (default)
But that's OK - actually scrap that, file has a constant Frame rate.

Sadly, in a lot of cases, the files still need transcoding on the Bravia anyway because the aspect ratio >16:9: viewtopic.php?f=5&t=5403&p=68524#p68524 and for the Viera they need remuxing back into mkv or mp4 for the same reason.
Sony Bravia KDL-32V5500 | Panasonic Viera TH-P42U30Z | Panasonic DMP-BD75 | Windows 7 |

Return to Feature requests

Who is online

Users browsing this forum: Google Adsense [Bot] and 51 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.