A freelance videographer who had been jailed longer than any other journalist in US history for refusing to testify to a grand jury was freed from federal prison Tuesday after reaching a deal with prosecutors. Joshua Wolf, 24, posted online unaired videotape that he had refused to give authorities, federal prosecutor Jeffrey Finigan said in court papers. US District Judge William Alsup, who had jailed Wolf for 226 days in a California prison, approved his release. "I will not under any circumstances testify before a grand jury," Wolf said as he left the prison. Wolf had been held for refusing a subpoena to turn over videotape he shot of a chaotic 2005 San Francisco street protest against the G-8 summit happening a continent away in Scotland. The government was investigating how a San Francisco police officer got his skull fractured during the melee and the alleged torching of a police car. The footage Wolf posted Tuesday does not capture the alleged crimes authorities are investigating, defense lawyer David Greene said.