FAQ  •  Register  •  Login

GoPro HD Hero 2 - MP4 videos on Panasonic TX-PF42G20S

<<

ScratMan

Serviio newbie

Posts: 9

Joined: Sun Aug 19, 2012 10:25 pm

Post Sun Aug 19, 2012 10:44 pm

GoPro HD Hero 2 - MP4 videos on Panasonic TX-PF42G20S

Hello,

I'm new to Serviio, and I'm trying to play my footage shot with a GoPro HD Hero 2 on my Panasonic TX-PF42G20S

The issue is that the video is choppy, and the sound doesn't play immediately. And when the sound comes, it is choppy too.
If I set the serviio console not to produce the best video quality, the sound comes immediately at video start, but the video is still choppy for several seconds, then it plays OK, and becomes choppy again...

I have another MP4 file, from internet, that plays correctly, so it seems the difference comes from the video original encoding and transcoding profile.

I'm using Panasonic Viera 2010 profile, and these are the mediainfo log for both videos :

GoPro video that doesn't work :
  Code:
General
Complete name                            : D:\GOPR0061.MP4
Format                                   : MPEG-4
Format profile                           : JVT
Codec ID                                 : avc1
File size                                : 1.55 GiB
Duration                                 : 14mn 42s
Overall bit rate mode                    : Variable
Overall bit rate                         : 15.1 Mbps
Encoded date                             : UTC 2012-08-16 11:26:54
Tagged date                              : UTC 2012-08-16 11:26:54
AMBA                                     : 

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : Main@L4.2
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 4 frames
Format settings, GOP                     : M=1, N=15
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 14mn 42s
Bit rate mode                            : Constant
Bit rate                                 : 15.0 Mbps
Nominal bit rate                         : 5 120 bps
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 25.000 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.289
Stream size                              : 1.54 GiB (99%)
Title                                    : GoPro AVC
Language                                 : English
Encoded date                             : UTC 2012-08-16 11:26:54
Tagged date                              : UTC 2012-08-16 11:26:54
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709

Audio
ID                                       : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : 40
Duration                                 : 14mn 42s
Bit rate mode                            : Variable
Bit rate                                 : 128 Kbps
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Compression mode                         : Lossy
Delay relative to video                  : 40ms
Stream size                              : 13.5 MiB (1%)
Title                                    : GoPro AAC
Language                                 : English
Encoded date                             : UTC 2012-08-16 11:26:54
Tagged date                              : UTC 2012-08-16 11:26:54



Video that works :
  Code:
General
Complete name                            : D:\working_video.mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom
File size                                : 612 MiB
Duration                                 : 21mn 45s
Overall bit rate mode                    : Variable
Overall bit rate                         : 3 930 Kbps
Writing application                      : Lavf53.4.0
Comment                                  : FlixEngineLinux_8.0.17.1 (www.on2.com)

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L5.1
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 16 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 21mn 45s
Bit rate mode                            : Variable
Bit rate                                 : 3 868 Kbps
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 29.970 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.062
Stream size                              : 603 MiB (99%)
Writing library                          : x264 core 115
Encoding settings                        : cabac=1 / ref=16 / deblock=1:-1:-1 / analyse=0x3:0x133 / me=umh / subme=10 / psy=1 / psy_rd=1.00:0.15 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-3 / threads=4 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=8 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=abr / mbtree=1 / bitrate=3868 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Tagged date                              : UTC 2011-08-18 03:48:35

Audio
ID                                       : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : 40
Duration                                 : 21mn 45s
Bit rate mode                            : Variable
Bit rate                                 : 48.0 Kbps
Maximum bit rate                         : 64.0 Kbps
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Compression mode                         : Lossy
Stream size                              : 7.59 MiB (1%)
Tagged date                              : UTC 2011-08-18 03:48:35


Is there something I should do to have GoPro videos playing fine on my TV ?

Thanks for help
<<

ScratMan

Serviio newbie

Posts: 9

Joined: Sun Aug 19, 2012 10:25 pm

Post Tue Aug 21, 2012 6:41 pm

Re: GoPro HD Hero 2 - MP4 videos on Panasonic TX-PF42G20S

Here are the FFmpeg info for the files :

Not working video from GoPro :
===========================

  Code:
ffmpeg version N-42368-gbf53863 Copyright (c) 2000-2012 the FFmpeg developers
  built on Jul 10 2012 03:40:45 with gcc 4.6.3
  configuration: --enable-static --disable-shared --disable-ffplay --disable-ffs
erver --enable-memalign-hack --enable-libmp3lame --enable-librtmp --extra-libs='
-lrtmp -lpolarssl -lws2_32 -lwinmm' --arch=x86 --enable-runtime-cpudetect --enab
le-pthreads --target-os=mingw32 --cross-prefix=i686-w64-mingw32- --pkg-config=pk
g-config
  libavutil      51. 64.100 / 51. 64.100
  libavcodec     54. 33.100 / 54. 33.100
  libavformat    54. 15.102 / 54. 15.102
  libavdevice    54.  1.100 / 54.  1.100
  libavfilter     3.  1.100 /  3.  1.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'D:\DivX\GoPro\GOPR0061.mp4':
  Metadata:
    major_brand     : avc1
    minor_version   : 0
    compatible_brands: avc1isom
  Duration: 00:14:42.04, start: 0.000000, bitrate: 15138 kb/s
    Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080
 [SAR 1:1 DAR 16:9], 15004 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Metadata:
      handler_name    :  GoPro AVC
    Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, s16, 128
 kb/s
    Metadata:
      handler_name    :  GoPro AAC
At least one output file must be specified





Working Video :
===============

  Code:
ffmpeg version N-42368-gbf53863 Copyright (c) 2000-2012 the FFmpeg developers
  built on Jul 10 2012 03:40:45 with gcc 4.6.3
  configuration: --enable-static --disable-shared --disable-ffplay --disable-ffs
erver --enable-memalign-hack --enable-libmp3lame --enable-librtmp --extra-libs='
-lrtmp -lpolarssl -lws2_32 -lwinmm' --arch=x86 --enable-runtime-cpudetect --enab
le-pthreads --target-os=mingw32 --cross-prefix=i686-w64-mingw32- --pkg-config=pk
g-config
  libavutil      51. 64.100 / 51. 64.100
  libavcodec     54. 33.100 / 54. 33.100
  libavformat    54. 15.102 / 54. 15.102
  libavdevice    54.  1.100 / 54.  1.100
  libavfilter     3.  1.100 /  3.  1.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'D:\DivX\GoPro\working_video.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    creation_time   : 1970-01-01 00:00:00
    encoder         : Lavf53.4.0
    comment         : FlixEngineLinux_8.0.17.1 (www.on2.com)
  Duration: 00:21:45.55, start: 0.000000, bitrate: 3930 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080
 [SAR 1:1 DAR 16:9], 3877 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc
    Metadata:
      creation_time   : 1970-01-01 00:00:00
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, s16, 48
kb/s
    Metadata:
      creation_time   : 1970-01-01 00:00:00
      handler_name    : SoundHandler
At least one output file must be specified
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Tue Aug 21, 2012 6:46 pm

Re: GoPro HD Hero 2 - MP4 videos on Panasonic TX-PF42G20S

That could be due to video bitrate. Could you check with this tool : http://wiki.serviio.org/doku.php?id=vbitrate
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
<<

ScratMan

Serviio newbie

Posts: 9

Joined: Sun Aug 19, 2012 10:25 pm

Post Tue Aug 21, 2012 8:08 pm

Re: GoPro HD Hero 2 - MP4 videos on Panasonic TX-PF42G20S

I made some captures with bitrate viewer on 3 different videos from the GoPro (all videos have same playing issues) :

GoPro1.jpg
GoPro Video 1
GoPro1.jpg (59.11 KiB) Viewed 6674 times


GoPro2.jpg
GoPro Video 2
GoPro2.jpg (61.43 KiB) Viewed 6674 times


GoPro3.jpg
GoPro Video 3
GoPro3.jpg (57.78 KiB) Viewed 6674 times
<<

ScratMan

Serviio newbie

Posts: 9

Joined: Sun Aug 19, 2012 10:25 pm

Post Tue Aug 21, 2012 8:10 pm

Re: GoPro HD Hero 2 - MP4 videos on Panasonic TX-PF42G20S

And the working video, with a much lower bitrate...

working_vid.jpg
The downloaded working video : much lower bitrate...
working_vid.jpg (63.01 KiB) Viewed 6674 times
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Thu Aug 23, 2012 3:35 pm

Re: GoPro HD Hero 2 - MP4 videos on Panasonic TX-PF42G20S

The high video bitrate is probably the reason of the choppy video.

If you want to change the video bitrate, you have to force transcoding to mpeg2video with a lower bitrate (5Mb or 10Mb).

I will post you an exmple...
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
<<

ScratMan

Serviio newbie

Posts: 9

Joined: Sun Aug 19, 2012 10:25 pm

Post Thu Aug 23, 2012 3:40 pm

Re: GoPro HD Hero 2 - MP4 videos on Panasonic TX-PF42G20S

How can I do this ? :|
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Thu Aug 23, 2012 3:47 pm

Re: GoPro HD Hero 2 - MP4 videos on Panasonic TX-PF42G20S

Illico wrote:I will post you an exemple...

I'm at work now...I'll post you a new profile that force transoding with a lower bitrate.
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
<<

ScratMan

Serviio newbie

Posts: 9

Joined: Sun Aug 19, 2012 10:25 pm

Post Thu Aug 23, 2012 4:31 pm

Re: GoPro HD Hero 2 - MP4 videos on Panasonic TX-PF42G20S

I looked in the forum and the Wiki, and it seems I managed to kick my problem out of my TV :D

I added the following to all video transcoding sections of all Panasonic viera profiles
  Code:
maxVBitrate="17000" forceVTranscoding="true"


Now, I can keep the "produce max video quality" parameter activated, and the GoPro videos are played perfectly with very nice picture quality.

It gives the following :

  Code:
   <Profile id="viera2011a" name="Panasonic Viera G/GT/DT/UT/VT (2011/2012)" extendsProfileId="1">
      <!-- Panasonic Viera G30, GT30, DT30, UT30 With avi (2011), xx50 (2012)  With AVI Support -->
      <Detection>
         <UPnPSearch>
            <FriendlyName>(VIERA (G|D|U)T?(3|5)0?.*)|(VIERA VT50.*)</FriendlyName>
            <Manufacturer>Panasonic</Manufacturer>
         </UPnPSearch>
      </Detection>
      <ContentDirectoryMessageBuilder>org.serviio.upnp.service.contentdirectory.PacketVideoDLNAMessageBuilder</ContentDirectoryMessageBuilder>
      <SubtitlesMimeType>text/srt</SubtitlesMimeType>
      <MediaFormatProfiles>
         <MediaFormatProfile mime-type="video/divx">AVI</MediaFormatProfile>
      </MediaFormatProfiles>
      <Transcoding>
         <!-- Transcode h264 videos with profile level > 4.1 to mpegts with ac3 audio -->
         <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" maxVBitrate="17000" forceVTranscoding="true" forceInheritance="true">
            <Matches container="*" vCodec="h264" profile="high" levelGreaterThan="4.1" />
            <Matches container="*" vCodec="h264" profile="main" levelGreaterThan="4.1" />
         </Video>
         <!-- remux VORBIS/FLAC/LPCM in MKV/MP4 to AC3 -->
         <Video targetContainer="mpegts" targetACodec="ac3" forceInheritance="true">
             <!-- Some models support DTS natively, so the folowing line can be removed for those -->
             <Matches container="matroska" vCodec="h264" aCodec="dca" />
            <Matches container="matroska" vCodec="h264" aCodec="flac" />
            <Matches container="matroska" vCodec="h264" aCodec="vorbis" />
            <Matches container="matroska" vCodec="h264" aCodec="truehd" />
            <Matches container="mp4" vCodec="h264" aCodec="lpcm" />
            <Matches container="mp4" vCodec="h264" aCodec="aac" />
            <Matches container="3gp" vCodec="h264" />
         </Video>
         <!-- Remux MPEG-TS with no transcoding -->
         <Video targetContainer="mpegts" maxVBitrate="17000" forceVTranscoding="true" forceInheritance="true">
            <Matches container="avi" vCodec="h264" />
            <Matches container="mp4" vCodec="h264" />
            <Matches container="matroska" vCodec="mpeg2video" />
         </Video>
         <!-- Remux WTV files to MPEG-PS with no transcoding -->
         <Video targetContainer="mpeg" forceInheritance="true">
            <Matches container="wtv" />
         </Video>
         <!-- unsupported codecs will be transcoded into mpeg-ts, mpeg2 video and ac3 audio -->
         <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" maxVBitrate="17000" forceVTranscoding="true" forceInheritance="true">
            <Matches container="avi" vCodec="mjpeg" />
            <Matches container="avi" vCodec="dvvideo" />
            <Matches container="mp4" vCodec="mjpeg" />
            <Matches container="mp4" vCodec="mpeg4" />
            <Matches container="mpeg" vCodec="mpeg1video" />
            <Matches container="matroska" vCodec="mpeg4" />
            <Matches container="matroska" vCodec="vp8" />            
            <Matches container="asf" />
            <Matches container="flv" />
            <Matches container="ogg" />
            <Matches container="3gp" />
         </Video>
         <!-- unsupported audio will be transcoded into lpcm audio -->
         <Audio targetContainer="lpcm" forceInheritance="true">
            <Matches container="flac" />
            <Matches container="ogg" />
            <Matches container="asf" />
            <Matches container="adts" />
         </Audio>
      </Transcoding>
   </Profile>

   <Profile id="viera2011" name="Panasonic Viera E/S/ST/VT (2011)" extendsProfileId="viera2011a">
      <!-- Panasonic Viera E3, E30, S30, ST30, VT30 (2011), E50 (2012)  Without AVI Support -->
      <Detection>
         <UPnPSearch>
            <FriendlyName>(VIERA (E|S)T?(3|5)0?.*)|(VIERA VT30.*)</FriendlyName>
            <Manufacturer>Panasonic</Manufacturer>
         </UPnPSearch>
      </Detection>
      <Transcoding>
         <!-- unsupported codecs will be transcoded into mpeg-ts, mpeg2 video and ac3 audio -->
         <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" maxVBitrate="17000" forceVTranscoding="true">
            <Matches container="avi" />            
         </Video>
      </Transcoding>
   </Profile>
   
   <Profile id="viera2010" name="Panasonic Viera (2010)" extendsProfileId="viera2011a">
      <!-- Panasonic Viera VT20, V20, G20, D25, D28 (2010) -->
      <!-- detection removed as it was interfering with detection of the 2011/2012 Viera profiles
      <Detection>
         <HttpHeaders>
            <User-Agent>.*Panasonic.*</User-Agent>
         </HttpHeaders>
      </Detection> -->
      <Transcoding>
         <!-- unsupported codecs will be transcoded into mpeg-ts, mpeg2 video and ac3 audio -->
         <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" maxVBitrate="17000" forceVTranscoding="true">
            <Matches container="matroska" />            
         </Video>
      </Transcoding>
   </Profile>


It may not be optimal to force transcoding on all formats, but I was pissed off, and made it quick and dirty :mrgreen:
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Thu Aug 23, 2012 6:55 pm

Re: GoPro HD Hero 2 - MP4 videos on Panasonic TX-PF42G20S

ScratMan wrote:I looked in the forum and the Wiki, and it seems I managed to kick my problem out of my TV :D

Yes this is the solution.

I suggest to keep the original Panasonic profiles and create a custom only for "GoPro" files.
If you confirm that "GoPro" media are always mp4/h264/aac then you can add this at the end of the profiles.xml

  Code:
   <Profile id="custom" name="Panasonic Viera (2010) for GoPro" extendsProfileId="viera2011a">
    <!-- This is a custom profile to force transcoding with lower bitrate of GoPro media files -->
      <Transcoding>
         <Video targetContainer="mpegts" targetVCodec="mpeg2video" maxVBitrate="17000" targetACodec="ac3">
            <Matches container="mp4" vCodec="h264" aCodec="aac" />            
         </Video>
         <!-- unsupported codecs will be transcoded into mpeg-ts, mpeg2 video and ac3 audio -->
         <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3">
            <Matches container="matroska" />            
         </Video>     
      </Transcoding>
   </Profile>
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
<<

ScratMan

Serviio newbie

Posts: 9

Joined: Sun Aug 19, 2012 10:25 pm

Post Thu Aug 23, 2012 9:06 pm

Re: GoPro HD Hero 2 - MP4 videos on Panasonic TX-PF42G20S

It works. Thanks. I enabled the forceVTranscoding, as is was the last thing I did on my profile to make it work, and now everything is fine.

Thanks a lot for your support. :D
<<

av1982

Serviio newbie

Posts: 7

Joined: Mon Nov 26, 2012 11:18 pm

Post Fri Apr 19, 2013 3:58 am

Re: GoPro HD Hero 2 - MP4 videos on Panasonic TX-PF42G20S

Hi, I have the same high bitrate problem with my gopro hero 2 videos however I'm using serviio on Linux (fedora17) and my player is the ps3. will this fix work for me?

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 24 guests

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