FAQ  •  Register  •  Login

AVC_TS_MP_HD_AC3 vs. MPEG_TS_HD_NA

<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Sep 23, 2010 2:49 pm

Re: AVC_TS_MP_HD_AC3 vs. MPEG_TS_HD_NA

btw, the 2 ffmpeg outputs above show different video codec (AVC vs DivX). You should try remuxing using something like:

  Code:
ffmpeg -i file.mov -vcodec copy -acodec copy -f mp4 test.mp4


for mpeg4 container and

  Code:
ffmpeg -i file.mov -vcodec copy -acodec copy -f mpegt2 test.ts


for mpeg2ts container.
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Thu Sep 23, 2010 3:17 pm

Re: AVC_TS_MP_HD_AC3 vs. MPEG_TS_HD_NA

zip wrote:btw, the 2 ffmpeg outputs above show different video codec (AVC vs DivX). You should try remuxing using something like:


Command line is good for mpeg4 container (with AVC and AAC)
  Code:
ffmpeg -i trailer_1080p.mov -vcodec copy -acodec copy -f mp4 trailer_1080p_mp4.mp4


For mpeg2ts container (with AVC and AAC) this is better like this:
  Code:
ffmpeg -i trailer_1080p.mov -vcodec copy -acodec copy -vbsf h264_mp4toannexb -f mpegts trailer_1080p_mpeg2ts.ts


I'll check these files tonight on my EX501 TV.
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
<<

Fig

Streaming enthusiast

Posts: 42

Joined: Wed Jul 21, 2010 1:25 pm

Post Fri Sep 24, 2010 3:43 pm

Re: AVC_TS_MP_HD_AC3 vs. MPEG_TS_HD_NA

OK, here goes:
I first downloaded the file (trailer_1080p.mov).
Next I transcoded the container only using the following command line:
ffmpeg -i trailer_1080p.mov -f mp4 containeronly.mp4
I can post the FFMPEG output if that would help. It created a file about a quarter of the size of the original. Playback with VLC was jerky and the audio is distorted.
Third, I transcoded the container but told FFMPEG to copy the audio and video codecs using this command line:
ffmpeg -i trailer_1080p.mov -vcodec copy -acodec copy -f mp4 contchwavcodec.mp4
Fourth, I transcoded to MPEG2 using the command line Zip suggested:
ffmpeg -i trailer_1080p.mov -vcodec copy -acodec copy -f mpegts ziptest.ts
This resulted in FFMPEG complaining about the bitstream ("[mpegts @ 03050050]h264 bitstream malformated, no startcode found, use -vbsf h264_mp4toannexb av_interleaved_write_frame(): Error number -1 occurred"), so it wouldn't transcode.
Fifth, I trancoded to MPEG2 using Illico's command line:
ffmpeg -i trailer_1080p.mov -vcodec copy -acodec copy -vbsf h264_mp4toannexb -f mpegts illicotest.ts

So I was left with 4 files (codecs discovered using VLC): Container only (MP4video, MP4audio MP4 container), container change with audio video codecs set to copy (AVC1 video, mp4a audio, mp4 container), Illico's transcode to Mpeg2 (h.264 video, mp4a audio, MPEG2 transport), and the original (avc1 video, mp4a audio, .mov container). I loaded them all into serviio, and checked my TV. Using the Bravia Profile in 0.42, the only file that was visible on the TV was Container Only, and it did not play (TV said "Video cannot be played"). So none of the files created could play.

So I went back and loaded my own simple bravia profile (which takes any container and transcodes it to MPEGTS, MPEG2 video and AC3 audio. All the files were now visible at the TV (Except for the Illico stream...Really odd). But again, none of them would play. Here is is the error code from Serviio:

2010-09-24 10:59:51,879 WARN [ProcessExecutor] Process C:\Program Files (x86)\Serviio\bin\\..\lib/ffmpeg.exe has a return code of 1! This is a possible error.
2010-09-24 10:59:59,299 ERROR [ResourceTransportRequestHandler] Error while processing resource, sending back 500 error. Message: FFmpeg execution failed
2010-09-24 11:00:09,843 WARN [ProcessExecutor] Process C:\Program Files (x86)\Serviio\bin\\..\lib/ffmpeg.exe has a return code of 1! This is a possible error.
2010-09-24 11:00:17,282 ERROR [ResourceTransportRequestHandler] Error while processing resource, sending back 500 error. Message: FFmpeg execution failed
2010-09-24 11:00:30,151 WARN [ProcessExecutor] Process C:\Program Files (x86)\Serviio\bin\\..\lib/ffmpeg.exe has a return code of 1! This is a possible error.
2010-09-24 11:00:37,578 ERROR [ResourceTransportRequestHandler] Error while processing resource, sending back 500 error. Message: FFmpeg execution failed


So I am somewhat confused. I am really surprised that the container only file would not play, as I have a similarly formatted video clip (same resolution, codecs, and container) that DOES play. I think that the 25 frame rate on trailer_1080p.mov is problematic for this north american TV. It seems to like 29.97 better. Just my observation.

Any ideas at this point? If you have another stream you'd like me tor try, let me know.

Thanks

Fig
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Fri Sep 24, 2010 3:46 pm

Re: AVC_TS_MP_HD_AC3 vs. MPEG_TS_HD_NA

FFmpeg failed the transcode. It should print out the command it was using, can you try run that command manually and post the failure output here?
<<

Fig

Streaming enthusiast

Posts: 42

Joined: Wed Jul 21, 2010 1:25 pm

Post Fri Sep 24, 2010 4:08 pm

Re: AVC_TS_MP_HD_AC3 vs. MPEG_TS_HD_NA

It seemed to go this time...

C:\Program Files (x86)\Serviio\lib>ffmpeg -i contchwavcodec.mp4 -vcodec mpeg2vid
eo -acodec ac3 -f mpegts testmpeg.ts
FFmpeg version SVN-r23012, Copyright (c) 2000-2010 the FFmpeg developers
built on May 3 2010 19:05:24 with gcc 3.4.5 (mingw-vista special r3)
configuration: --enable-static --disable-shared --disable-ffplay --disable-ffs
erver --enable-memalign-hack --enable-libmp3lame --enable-w32threads --extra-ldf
lags=-L/static/lib --extra-cflags=-I/static/include
libavutil 50.15. 0 / 50.15. 0
libavcodec 52.66. 0 / 52.66. 0
libavformat 52.62. 0 / 52.62. 0
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0.10. 0 / 0.10. 0

Seems stream 0 codec frame rate differs from container frame rate: 1200.00 (1200
/1) -> 25.00 (25/1)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'contchwavcodec.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf52.62.0
title : conchgwavcodec
Duration: 00:00:33.00, start: 0.000000, bitrate: 7484 kb/s
Stream #0.0(eng): Video: h264, yuv420p, 1920x1080, 7171 kb/s, 25.03 fps, 25
tbr, 600 tbn, 1200 tbc
Stream #0.1(eng): Audio: aac, 48000 Hz, 5.1, s16, 428 kb/s
[mpegts @ 02ec0050]muxrate 1 bps, pcr every 2 pkts, sdt every 200, pat/pmt every
40 pkts
Output #0, mpegts, to 'testmpeg.ts':
Metadata:
encoder : Lavf52.62.0
Stream #0.0(eng): Video: mpeg2video, yuv420p, 1920x1080, q=2-31, 200 kb/s, 9
0k tbn, 25 tbc
Stream #0.1(eng): Audio: ac3, 48000 Hz, 5.1, s16, 64 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Press [q] to stop encoding
Compiler did not align stack variables. Libavcodec has been miscompiled
and may be very slow or crash. This is not a bug in libavcodec,
but in the compiler. You may try recompiling using gcc >= 4.2.
Do not report crashes to FFmpeg developers.
Bit allocation failed. Try increasing the bitrate.
frame= 812 fps= 45 q=31.0 Lsize= 9929kB time=32.44 bitrate=2507.3kbits/s

video:8848kB audio:258kB global headers:0kB muxing overhead 9.034000%
<<

Fig

Streaming enthusiast

Posts: 42

Joined: Wed Jul 21, 2010 1:25 pm

Post Fri Sep 24, 2010 4:11 pm

Re: AVC_TS_MP_HD_AC3 vs. MPEG_TS_HD_NA

Wait, just playing it back with VLC, no audio.
<<

Fig

Streaming enthusiast

Posts: 42

Joined: Wed Jul 21, 2010 1:25 pm

Post Fri Sep 24, 2010 6:42 pm

Re: AVC_TS_MP_HD_AC3 vs. MPEG_TS_HD_NA

All:
I created a 29.97 frame rate file from the 25 fps input fie. It still would not play. It is now exactly like the file that plays with one exception. Illico's file is 5.1 channel audio (ffmpeg says it is 6 channels). I tried to create an output file that is just two channels, but FFMPEG says it cannot resample 6 channels to 2. If you can tell me how to convert it to 2 channel, then the two files would be the same.
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Fri Sep 24, 2010 7:01 pm

Re: AVC_TS_MP_HD_AC3 vs. MPEG_TS_HD_NA

For my EX501 Bravia:
(1) trailer_1080p.mov --> MP4QT_AVC-M@L4.0_AAC
(2) ffmpeg -i trailer_1080p.mov -f mp4 containeronly.mp4 --> MP4_MP4-S@L1_AAC
(3) ffmpeg -i trailer_1080p.mov -vcodec copy -acodec copy -f mp4 contchwavcodec.mp4 --> MP4_AVC-M@L4.0_AAC
(4) ffmpeg -i trailer_1080p.mov -vcodec copy -acodec copy -vbsf h264_mp4toannexb -f mpegts illicotest.ts --> MPEGTS_AVC-M@L4.0_AAC

Results
(1) Found Format profile for transcoded file trailer_1080p.mov: AVC_TS_MP_HD_AC3_ISO --> Video OK, Audio Failed
(2) Found Format profile for transcoded file containeronly.mp4: MPEG_TS_SD_EU_ISO
Found Format profile for transcoded file containeronly.mp4: MPEG_TS_SD_NA_ISO
Found Format profile for transcoded file containeronly.mp4: MPEG_TS_SD_KO_ISO --> Video OK, very-very compressed, Audio Failed

(3) Found Format profile for transcoded file contchwavcodec.mp4: AVC_TS_MP_HD_AC3_ISO --> Video OK, Audio Failed

(4) Found Format profile for transcoded file illicotest.ts: AVC_TS_MP_HD_AC3_ISO --> Failed
ffmpeg failed to transcode the illicotest.ts file:
[h264 @ 014f80b0]non-existing SPS 0 referenced in buffering period
[NULL @ 014f80b0]non-existing SPS 0 referenced in buffering period

Failure are only due to ffmpeg bug, but EX501 support MPEGTS and AVC, but not your 2009 model.

I'll suggest you to make the same test with another trailer, its bigger but good ;)
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
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Fri Sep 24, 2010 7:03 pm

Re: AVC_TS_MP_HD_AC3 vs. MPEG_TS_HD_NA

Fig wrote:...If you can tell me how to convert it to 2 channel, then the two files would be the same.

Don't know,
We could try with the Harry Potter Trailer, its a stereo audio.
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
<<

Fig

Streaming enthusiast

Posts: 42

Joined: Wed Jul 21, 2010 1:25 pm

Post Fri Sep 24, 2010 8:15 pm

Re: AVC_TS_MP_HD_AC3 vs. MPEG_TS_HD_NA

Ok, I reran all the transcodes with the harry Potter trailer. BTW according to VLC, this is a 24 fps, 1920x798 file. Not 1080?
Conchgonly.mp4 will play (poorly) with the 0.42 Bravia profile
Conchwavcodec will not play with the 0.42 Bravia profile.
Illicotest.ts will not show up in the content list with the 0.42 Bravia Profile.

All 3 will play with the simplebravia profile.
Here's the weird part: The downloaded file (HP7PT1_TRL3_1080.mov) DOES play with the simple profile. The only difference between that and my movie (which won't play) is 24 fps vs. 29.97 and 1920x798 vs 1920x1080.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Fri Sep 24, 2010 9:17 pm

Re: AVC_TS_MP_HD_AC3 vs. MPEG_TS_HD_NA

those that do not show on your TV are probably just mime-type or profile name problem. You could try tweaking the profile to rename the profile that it uses to play the file (see it in the logs or in Intel's AV Media Controller) to e.g. MPEG_TS_NA_ISO or some that your TV might support.
<<

Fig

Streaming enthusiast

Posts: 42

Joined: Wed Jul 21, 2010 1:25 pm

Post Sat Sep 25, 2010 2:56 pm

Re: AVC_TS_MP_HD_AC3 vs. MPEG_TS_HD_NA

I can try that, but I may need some help. I don't see anything in the Serviio log file. Should I be in a debug mode? The uPNP tools, for some reason, never see my TV. If I could figure out why alot of these problems would be relatively easy to fix.
Previous

Return to Transcoding

Who is online

Users browsing this forum: No registered users and 15 guests

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