FAQ  •  Register  •  Login

New tool to change Level in H264 bitstream

<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Wed Jan 05, 2011 1:54 pm

New tool to change Level in H264 bitstream

I found these projects from roozhou, the modified(patch) ffmpeg can easily change the h264 level in the same step.
http://forum.doom9.org/showthread.php?t=152419

I download this modified ffmpeg.
and try this following command line to change AVC High@L4.0 to High@L3.0
C:\Serviio\lib\ffmpeg.exe -i BigBuckBunny-DivXPlusHD.mkv -vcodec copy -acodec copy -vbsf h264_changesps=level=30 BigBuckBunny-DivXPlusHD_HL30.mkv

Zip do you think this option could be included in serviio ffmpeg to change H264/AVC profile Level for device like Sony TV/Bluray that only supported <4.1 level?
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
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Jan 05, 2011 2:12 pm

Re: New tool to change Level in H264 bitstream

Will have a look. The difficult bit is to find out what level the file is, so that we can match it in transcoding config
<<

Zek

User avatar

Serviio lover

Posts: 72

Joined: Wed Nov 24, 2010 11:03 am

Location: Boulder, Colorado, USA

Post Mon Jan 10, 2011 7:06 am

Re: New tool to change Level in H264 bitstream

This is what I use instead. It patches the level on a 264 bitstream or a Matroska container with the bitstream. It works in many cases where the level was set too high in the first place. However there are other bitstream factors such as reference frame count that may fail the file even if you lower the level. It worked for most of my old L5.1 MKV files, especially the 720p variety, and they now play on my Bravia fine.
http://coolsoft.altervista.org/en/h264leveleditor

Pretty much instant on 10Gb+ videos.

Cheers,
Zek
Sony Bravia KDL-55NX810 | Serviio 0.5 (rev. 975aa458693c) | Synology DS-1010+
<<

Zek

User avatar

Serviio lover

Posts: 72

Joined: Wed Nov 24, 2010 11:03 am

Location: Boulder, Colorado, USA

Post Mon Jan 10, 2011 7:34 am

Re: New tool to change Level in H264 bitstream

I forgot to say that there is another method to fix unplayable files that I use. This will get the file playing on my Bravia 95% of the time but it may have artifacts if the device can't handle the high level features. The demux/remux takes a few minutes for a multi gigabyte file but does no transcoding.

1. Demux the file using tsMuxeR_1.10.6 and keep the window open. You can change level here too and be sure to keep "Add timing info" and "Insert SPS/PPS"
2. Remux the streams using mkvtoolnix's mmg.exe into a Matroska container. Be sure to set the FPS manually here by reading what tsMuxeR reported.
3. Profit.

Cheers,
Zek
Sony Bravia KDL-55NX810 | Serviio 0.5 (rev. 975aa458693c) | Synology DS-1010+

Return to Transcoding

Who is online

Users browsing this forum: No registered users and 11 guests

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