Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


View this topic in a long page with up to 500 replies per page Create new topic
1 | 2 
722 posts

Ultimate Geek


  Reply # 287573 6-Jan-2010 20:54
Send private message

I am not looking to hi-jack this thread: I just have one question. I have been monitoring, passively, for some time now about FreeviewHD *.ts transcoding -both on this site, & others. For those of you who have been actively transcoding *.ts files, do you remove the advertising? Or just transcode the entire original file & FF through the ads?

I ask because I have not been able to get any of the apps that have been proffered to work. Just a quick word would be greatly appreciated; if not here, then in a new thread.




Silverstone LC14 HTPC Case/Intel E4600 CPU/GA-EP35-DS3 MOBO/Asus EN9500GT graphics/2GB RAM/total 2TB HDD space/HVR-2200 & 2X 150MCE tuner cards/LG GGC-H20L BD Drive/MCE2005/Mediaportal/TVServer 1.1.0Final/LG 55"3D LED-TV/Denon AVR-1803 receiver/X1 projector

4709 posts

Uber Geek
+1 received by user: 75

Trusted

  Reply # 287659 7-Jan-2010 05:58
Send private message

This is something that doesn't have an easy solution.

If you have a clean signal and so no or few dropouts in the recorded signal, then I think the best option is to edit out ads using H264 Cutter or TS Packet Editor and pass the cut file through Handbrake.

For me that usually works but occasionally because I get dropouts in the signal (maybe need to realign aerial) the H264 cutter programs barf on the bad data.

So another option is to pass the entire file through Handbrake. HB is good at handling bad data and always gives you a file that has audio/video in sync. Then use the aforementioned programs to edit out the ads.

As people say YMMV




System One: Popcorn Hour A200,  PS3 SuperSlim, NPVR and Plex Server running on Gigabyte Brix (Windows 10 Pro), Sony BDP-S390 BD player, Pioneer AVR, Raspberry Pi running Kodi and Plex, Panasonic 60" 3D plasma, Google Chromecast

System Two: Popcorn Hour A200 ,  Oppo BDP-80 BluRay Player with hardware mode to be region free, Vivitek HD1080P 1080P DLP projector with 100" screen. Harman Kardon HK AVR 254 7.1 receiver, Samsung 4K player, Google Chromecast

 


My Google+ page 

 

 

 

https://plus.google.com/+laurencechiu

 

 


 
 
 
 


722 posts

Ultimate Geek


  Reply # 287866 7-Jan-2010 19:05
Send private message

H264 Cutter doesn't like my system: it keeps hanging. As far as I could tell TS Packet Editor is trialware with a cost of around ??$50: far too much for what I want. Looks like I'll be forced into what I was waiting for, anyway: VideoRedo. Cheers.




Silverstone LC14 HTPC Case/Intel E4600 CPU/GA-EP35-DS3 MOBO/Asus EN9500GT graphics/2GB RAM/total 2TB HDD space/HVR-2200 & 2X 150MCE tuner cards/LG GGC-H20L BD Drive/MCE2005/Mediaportal/TVServer 1.1.0Final/LG 55"3D LED-TV/Denon AVR-1803 receiver/X1 projector

4709 posts

Uber Geek
+1 received by user: 75

Trusted

  Reply # 287874 7-Jan-2010 19:44
Send private message

H264 cutter barfs on the raw video but seems to handle the output from Handbrake ok. I have never paid for TS Packet Editor - it was free when I downloaded it many moons ago.




System One: Popcorn Hour A200,  PS3 SuperSlim, NPVR and Plex Server running on Gigabyte Brix (Windows 10 Pro), Sony BDP-S390 BD player, Pioneer AVR, Raspberry Pi running Kodi and Plex, Panasonic 60" 3D plasma, Google Chromecast

System Two: Popcorn Hour A200 ,  Oppo BDP-80 BluRay Player with hardware mode to be region free, Vivitek HD1080P 1080P DLP projector with 100" screen. Harman Kardon HK AVR 254 7.1 receiver, Samsung 4K player, Google Chromecast

 


My Google+ page 

 

 

 

https://plus.google.com/+laurencechiu

 

 




402 posts

Ultimate Geek
+1 received by user: 74


  Reply # 288267 8-Jan-2010 19:48
Send private message

Here is the final script I ended up using if anyone is interested. I have two cards, an analogue for Sky and a DVB-T for Freeview HD so only the Freeview programs needed to be converted.

There are probably better and smarter ways of writing this script but this works for me at the moment. Have tested all the various permutations of error situations and it seems to handle them all okay.

I used the cli version of Mediainfo to check the file to see if it needed to be converted. I added some logging so that I could see what was going on.

Hope someone else can get some use out of this.

@echo off
rem Change to TV drive
e:
cd "\recorded tv"

rem Start logging
echo Starting conversion at %date% %time% > conversionlog.txt
echo You passed me %1 >> conversionlog.txt

rem Check supplied file exists
if not exist %1 goto NOFILE

rem Check current audio codec in file
setlocal
e:\mediainfo\mediainfo.exe --Inform=Audio;%%Format%% %1>audiocodec.txt
set /p TOOLOUTPUT= > conversionlog.txt
if "%TOOLOUTPUT%" == "AAC" goto CONVERT
echo No need to convert %1 >> conversionlog.txt
goto END

:CONVERT
rem Rename original file and delete temp file if necessary
if exist tobeconverted.ts del tobeconverted.ts
rename %1 tobeconverted.ts
echo renamed %1 to tobeconverted.ts >> conversionlog.txt

rem Call VLC to convert renamed file and output as original filename
"g:\Program Files\VideoLAN\VLC\vlc.exe" -vvv -I dummy tobeconverted.ts --sout=#transcode{acodec=a52,ab=256,channels=2,samplerate=48000}:duplicate{dst=std{access=file,mux=ts,dst=%1} vlc://quit
echo Just converted %1 >> conversionlog.txt

rem Check for file and check file length of converted file and if zero back out
if not exist %1 goto DELANDRENAME
if exist %1 for %%i in (%1) do if %%~zi==0 goto DELANDRENAME

rem All okay so delete renamed file
del tobeconverted.ts
echo Converted %1 okay >> conversionlog.txt
goto END

:NOFILE
rem No file exists
echo Error file %1 doesn't exist >> conversionlog.txt
goto END

:DELANDRENAME
rem Delete zerobyte file and backout
echo Problem so rolling back >> conversionlog.txt
if exist %1 del %1
rem Rename file to original
rename tobeconverted.ts %1
goto END

:END
rem Nothing left to do
echo The end at %date% %time% >> conversionlog.txt

1 | 2 
View this topic in a long page with up to 500 replies per page Create new topic



Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

UAV Traffic Management Trial launching today in New Zealand
Posted 12-Dec-2017 16:06


UFB connections pass 460,000
Posted 11-Dec-2017 11:26


The Warehouse Group to adopt IBM Cloud to support digital transformation
Posted 11-Dec-2017 11:22


Dimension Data peeks into digital business 2018
Posted 11-Dec-2017 10:55


2018 Cyber Security Predictions
Posted 7-Dec-2017 14:55


Global Govtech Accelerator to drive public sector innovation in Wellington
Posted 7-Dec-2017 11:21


Stuff Pix media strategy a new direction
Posted 7-Dec-2017 09:37


Digital transformation is dead
Posted 7-Dec-2017 09:31


Fake news and cyber security
Posted 7-Dec-2017 09:27


Dimension Data New Zealand strengthens cybersecurity practice
Posted 5-Dec-2017 20:27


Epson NZ launches new Expression Premium Photo range
Posted 5-Dec-2017 20:26


Eventbrite and Twickets launch integration partnership in Australia and New Zealand
Posted 5-Dec-2017 20:23


New Fujifilm macro lens lands in New Zealand
Posted 5-Dec-2017 20:16


Cyber security not being taken seriously enough
Posted 5-Dec-2017 20:13


Sony commences Android 8.0 Oreo rollout in New Zealand
Posted 5-Dec-2017 20:08



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.