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

4891 posts

Uber Geek
+1 received by user: 97

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

4891 posts

Uber Geek
+1 received by user: 97

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

 

 




432 posts

Ultimate Geek
+1 received by user: 82


  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 »

Hawaiki Transpacific cable ready-for-service
Posted 20-Jul-2018 11:29


Microsoft Dynamics 365 Business Central launches
Posted 10-Jul-2018 10:40


Spark completes first milestone in voice platform upgrade
Posted 10-Jul-2018 09:36


Microsoft ices heated developers
Posted 6-Jul-2018 20:16


PB Technologies charged for its extended warranties and warned for bait advertising
Posted 3-Jul-2018 15:45


Almost 20,000 people claim credits from Spark
Posted 29-Jun-2018 10:40


Cove sells NZ's first insurance policy via chatbot
Posted 25-Jun-2018 10:04


N4L helping TAKA Trust bridge the digital divide for Lower Hutt students
Posted 18-Jun-2018 13:08


Winners Announced for 2018 CIO Awards
Posted 18-Jun-2018 13:03


Logitech Rally sets new standard for USB-connected video conference cameras
Posted 18-Jun-2018 09:27


Russell Stanners steps down as Vodafone NZ CEO
Posted 12-Jun-2018 09:13


Intergen recognised as 2018 Microsoft Country Partner of the Year for New Zealand
Posted 12-Jun-2018 08:00


Finalists Announced For Microsoft NZ Partner Awards
Posted 6-Jun-2018 15:12


Vocus Group and Vodafone announce joint venture to accelerate fibre innovation
Posted 5-Jun-2018 10:52


Kogan.com to launch Kogan Mobile in New Zealand
Posted 4-Jun-2018 14:34



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.