Recover file from "failed to download segment"

Alan Milewczyk alan at soulman1949.com
Sat Dec 3 17:56:02 PST 2016


On 04-Dec-16 07:25, Vangelis forthnet wrote:
> On Sat Dec 3 21:32:54 GMT 2016, Nick Payne wrote:
>
>> what do I need to run to convert the partial.mp4.ts file to an mp4?
>
> In all probability, you should still be able to play
> a partial MPEG-TS file (.ts extension, inside the
> MPEG-TS container) with most of the known
> software players (e.g MPC-HC & its fork MPC-BE
> - on Windows - are both known to work),
> especially since the missing segment occurs
> at the end of the partial file (so timestamps
> should be OK by that point).
> Even hardware players with AVC/AAC support
> should also be able to cope with...

Yes, I too have found that the player of my choice, VLC, works most of 
the time playing TS files.

>
> If you MUST  have the MP4 media container, use ffmpeg:

For me, there is a benefit in MP4 in that it allows tags whereas I don't 
think TS does.

>
> ffmpeg -v 8 -stats -i "<fileprefix>.partial.mp4.ts" -c copy -bsf:a 
> aac_adtstoasc "<fileprefix>.partial.mp4"
>
> where "<fileprefix>" is the name/title of your download.
>

Always interested in the structure of these command lines...  I 
understand the basic command but I've been looking through the ffmpeg 
docs and can't find any reference to "-v 8 -stats" and "-bsf:a 
aac_adtstoasc".

Greetings from a hot and humid Sunday morning in the Philippines with 
neighbours blaring out the oldies love ballads so popular here on the 
radio. At least it's more melodic than the thump-thump-thump of videoke 
basslines which are so prevalent at weekends into the small hours when 
eventually the participants fall asleep in a drunken stupour! :-)

kind regards

Alan



More information about the get_iplayer mailing list